@learncard/learn-card-plugin 1.1.0 → 1.1.2

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.
@@ -3417,8 +3417,8 @@ var ProfileValidator = mod.string().or(mod.object({
3417
3417
  dateOfBirth: mod.string().optional()
3418
3418
  }).catchall(mod.any()));
3419
3419
  var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
3420
- var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() });
3421
- var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() });
3420
+ var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
3421
+ var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
3422
3422
  var RefreshServiceValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
3423
3423
  var UnsignedVCValidator = mod.object({
3424
3424
  "@context": ContextValidator,
@@ -3448,7 +3448,7 @@ var VCValidator = UnsignedVCValidator.extend({
3448
3448
  var UnsignedVPValidator = mod.object({
3449
3449
  "@context": ContextValidator,
3450
3450
  id: mod.string().optional(),
3451
- type: mod.string().array().nonempty(),
3451
+ type: mod.string().or(mod.string().array().nonempty()),
3452
3452
  verifiableCredential: VCValidator.or(VCValidator.array()).optional(),
3453
3453
  holder: mod.string().optional()
3454
3454
  }).catchall(mod.any());