@learncard/learn-card-plugin 1.0.13 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3394,8 +3394,8 @@ var ProfileValidator = mod.string().or(mod.object({
3394
3394
  dateOfBirth: mod.string().optional()
3395
3395
  }).catchall(mod.any()));
3396
3396
  var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
3397
- var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() });
3398
- var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() });
3397
+ var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
3398
+ var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
3399
3399
  var RefreshServiceValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
3400
3400
  var UnsignedVCValidator = mod.object({
3401
3401
  "@context": ContextValidator,
@@ -3425,7 +3425,7 @@ var VCValidator = UnsignedVCValidator.extend({
3425
3425
  var UnsignedVPValidator = mod.object({
3426
3426
  "@context": ContextValidator,
3427
3427
  id: mod.string().optional(),
3428
- type: mod.string().array().nonempty(),
3428
+ type: mod.string().or(mod.string().array().nonempty()),
3429
3429
  verifiableCredential: VCValidator.or(VCValidator.array()).optional(),
3430
3430
  holder: mod.string().optional()
3431
3431
  }).catchall(mod.any());