@learncard/helpers 1.0.7 → 1.0.8
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.
package/dist/helpers.esm.js
CHANGED
@@ -3515,8 +3515,8 @@ var require_types_cjs_development = __commonJS({
|
|
3515
3515
|
dateOfBirth: mod.string().optional()
|
3516
3516
|
}).catchall(mod.any()));
|
3517
3517
|
var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
|
3518
|
-
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() });
|
3519
|
-
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() });
|
3518
|
+
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
|
3519
|
+
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
3520
3520
|
var RefreshServiceValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
3521
3521
|
var UnsignedVCValidator = mod.object({
|
3522
3522
|
"@context": ContextValidator,
|
@@ -3546,7 +3546,7 @@ var require_types_cjs_development = __commonJS({
|
|
3546
3546
|
var UnsignedVPValidator = mod.object({
|
3547
3547
|
"@context": ContextValidator,
|
3548
3548
|
id: mod.string().optional(),
|
3549
|
-
type: mod.string().array().nonempty(),
|
3549
|
+
type: mod.string().or(mod.string().array().nonempty()),
|
3550
3550
|
verifiableCredential: VCValidator.or(VCValidator.array()).optional(),
|
3551
3551
|
holder: mod.string().optional()
|
3552
3552
|
}).catchall(mod.any());
|