From 10ec862af0dd57ea18440c0d1c463b6e6a7cdcec Mon Sep 17 00:00:00 2001 From: Albin Antony Date: Tue, 14 Jan 2025 14:21:28 +0530 Subject: [PATCH] Fix L3-iGrant/api#802: Updates to verification --- sdjwt/pex.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sdjwt/pex.py b/sdjwt/pex.py index 17d0176..7c96012 100644 --- a/sdjwt/pex.py +++ b/sdjwt/pex.py @@ -110,7 +110,7 @@ class PresentationDefinition(BaseModel): } }, }, - "^(jwt|jwt_vc|jwt_vc_json|jwt_vp|vp\+sd-jwt|vc\+sd-jwt|sd-jwt)$": { + "^(jwt|jwt_vc|jwt_vc_json|jwt_vp_json|jwt_vp|vp\+sd-jwt|vc\+sd-jwt|sd-jwt)$": { "type": "object", "additionalProperties": False, "properties": { @@ -156,7 +156,7 @@ class PresentationDefinition(BaseModel): "type": "object", "additionalProperties": False, "patternProperties": { - "^(jwt|jwt_vc|jwt_vc_json|jwt_vp|vp\+sd-jwt|vc\+sd-jwt|sd-jwt)$": { + "^(jwt|jwt_vc|jwt_vc_json|jwt_vp|jwt_vp_json|vp\+sd-jwt|vc\+sd-jwt|sd-jwt)$": { "type": "object", "additionalProperties": False, "properties": { @@ -245,6 +245,7 @@ class PresentationDefinitionValidationError(Exception): "sd-jwt", "mso_mdoc", "jwt_vc_json", + "jwt_vp_json", ], }, },