From bc8c65ff8d7cb88c58d13b019cbb5438f8150a7b Mon Sep 17 00:00:00 2001 From: Albin Antony Date: Wed, 21 Aug 2024 10:34:38 +0530 Subject: [PATCH] Fix L3-iGrant/api#551: While creating presentation definition, if fields array inside input descriptor is empty array, it doesn't validate --- sdjwt/pex.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sdjwt/pex.py b/sdjwt/pex.py index 1181b2f..64234ae 100644 --- a/sdjwt/pex.py +++ b/sdjwt/pex.py @@ -99,6 +99,7 @@ class PresentationDefinition(BaseModel): "fields": { "type": "array", "items": {"$ref": "#/definitions/field"}, + "minItems": 1, }, }, "required": ["fields"],