diff --git a/src/4.0/jsonSchemas/__generated__/v4-document.schema.json b/src/4.0/jsonSchemas/__generated__/v4-document.schema.json index a112453a..0b68998b 100644 --- a/src/4.0/jsonSchemas/__generated__/v4-document.schema.json +++ b/src/4.0/jsonSchemas/__generated__/v4-document.schema.json @@ -216,6 +216,18 @@ "type" ], "additionalProperties": false + }, + { + "type": "object", + "properties": { + "type": { + "type": "string" + } + }, + "required": [ + "type" + ], + "additionalProperties": true } ] }, diff --git a/src/4.0/jsonSchemas/__generated__/v4-signed-wrapped-document.schema.json b/src/4.0/jsonSchemas/__generated__/v4-signed-wrapped-document.schema.json index 720aceba..61bba2d6 100644 --- a/src/4.0/jsonSchemas/__generated__/v4-signed-wrapped-document.schema.json +++ b/src/4.0/jsonSchemas/__generated__/v4-signed-wrapped-document.schema.json @@ -216,6 +216,18 @@ "type" ], "additionalProperties": false + }, + { + "type": "object", + "properties": { + "type": { + "type": "string" + } + }, + "required": [ + "type" + ], + "additionalProperties": true } ] }, diff --git a/src/4.0/jsonSchemas/__generated__/v4-wrapped-document.schema.json b/src/4.0/jsonSchemas/__generated__/v4-wrapped-document.schema.json index 4593f440..f8699651 100644 --- a/src/4.0/jsonSchemas/__generated__/v4-wrapped-document.schema.json +++ b/src/4.0/jsonSchemas/__generated__/v4-wrapped-document.schema.json @@ -216,6 +216,18 @@ "type" ], "additionalProperties": false + }, + { + "type": "object", + "properties": { + "type": { + "type": "string" + } + }, + "required": [ + "type" + ], + "additionalProperties": true } ] }, diff --git a/src/4.0/types.ts b/src/4.0/types.ts index 94b09e11..17d2d3dd 100644 --- a/src/4.0/types.ts +++ b/src/4.0/types.ts @@ -234,7 +234,9 @@ export const V4OpenAttestationDocument = _W3cVerifiableCredential }), // [Optional] Credential Status - credentialStatus: z.discriminatedUnion("type", [OscpResponderRevocation, RevocationStoreRevocation]).optional(), + credentialStatus: z + .union([OscpResponderRevocation, RevocationStoreRevocation, z.object({ type: z.string() }).passthrough()]) + .optional(), // [Optional] Render Method renderMethod: z.array(z.discriminatedUnion("type", [DecentralisedEmbeddedRenderer, SvgRenderer])).optional(),