@learncard/helpers 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -3520,8 +3520,8 @@ var require_types_cjs_development = __commonJS({
|
|
3520
3520
|
dateOfBirth: mod.string().optional()
|
3521
3521
|
}).catchall(mod.any()));
|
3522
3522
|
var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
|
3523
|
-
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() });
|
3524
|
-
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() });
|
3523
|
+
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
|
3524
|
+
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
3525
3525
|
var RefreshServiceValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
3526
3526
|
var UnsignedVCValidator = mod.object({
|
3527
3527
|
"@context": ContextValidator,
|
@@ -3551,7 +3551,7 @@ var require_types_cjs_development = __commonJS({
|
|
3551
3551
|
var UnsignedVPValidator = mod.object({
|
3552
3552
|
"@context": ContextValidator,
|
3553
3553
|
id: mod.string().optional(),
|
3554
|
-
type: mod.string().array().nonempty(),
|
3554
|
+
type: mod.string().or(mod.string().array().nonempty()),
|
3555
3555
|
verifiableCredential: VCValidator.or(VCValidator.array()).optional(),
|
3556
3556
|
holder: mod.string().optional()
|
3557
3557
|
}).catchall(mod.any());
|