@learncard/network-plugin 1.5.0 → 1.5.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.
@@ -4225,8 +4225,8 @@ var ProfileValidator = mod.string().or(mod.object({
4225
4225
  dateOfBirth: mod.string().optional()
4226
4226
  }).catchall(mod.any()));
4227
4227
  var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
4228
- var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() });
4229
- var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() });
4228
+ var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
4229
+ var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
4230
4230
  var RefreshServiceValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
4231
4231
  var UnsignedVCValidator = mod.object({
4232
4232
  "@context": ContextValidator,
@@ -4256,7 +4256,7 @@ var VCValidator = UnsignedVCValidator.extend({
4256
4256
  var UnsignedVPValidator = mod.object({
4257
4257
  "@context": ContextValidator,
4258
4258
  id: mod.string().optional(),
4259
- type: mod.string().array().nonempty(),
4259
+ type: mod.string().or(mod.string().array().nonempty()),
4260
4260
  verifiableCredential: VCValidator.or(VCValidator.array()).optional(),
4261
4261
  holder: mod.string().optional()
4262
4262
  }).catchall(mod.any());