@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.
@@ -4249,8 +4249,8 @@ var ProfileValidator = mod.string().or(mod.object({
4249
4249
  dateOfBirth: mod.string().optional()
4250
4250
  }).catchall(mod.any()));
4251
4251
  var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
4252
- var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() });
4253
- var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() });
4252
+ var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
4253
+ var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
4254
4254
  var RefreshServiceValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
4255
4255
  var UnsignedVCValidator = mod.object({
4256
4256
  "@context": ContextValidator,
@@ -4280,7 +4280,7 @@ var VCValidator = UnsignedVCValidator.extend({
4280
4280
  var UnsignedVPValidator = mod.object({
4281
4281
  "@context": ContextValidator,
4282
4282
  id: mod.string().optional(),
4283
- type: mod.string().array().nonempty(),
4283
+ type: mod.string().or(mod.string().array().nonempty()),
4284
4284
  verifiableCredential: VCValidator.or(VCValidator.array()).optional(),
4285
4285
  holder: mod.string().optional()
4286
4286
  }).catchall(mod.any());