Skip to content

Commit

Permalink
Fix L3-iGrant/api#464: While creating presentation definition, at-lea…
Browse files Browse the repository at this point in the history
…st one data attribute required else show error message
  • Loading branch information
albinpa authored and georgepadayatti committed Oct 22, 2024
1 parent 784466f commit ee4c8f3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions sdjwt/pex.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ class PresentationDefinition(BaseModel):
"properties": {
"id": {"type": "string"},
"optional": {"type": "boolean"},
"path": {"type": "array", "items": {"type": "string"}},
"path": {
"type": "array",
"items": {"type": "string"},
"minItems": 1,
},
"purpose": {"type": "string"},
"name": {"type": "string"},
"intent_to_retain": {"type": "boolean"},
Expand All @@ -58,7 +62,11 @@ class PresentationDefinition(BaseModel):
"properties": {
"id": {"type": "string"},
"optional": {"type": "boolean"},
"path": {"type": "array", "items": {"type": "string"}},
"path": {
"type": "array",
"items": {"type": "string"},
"minItems": 1,
},
"purpose": {"type": "string"},
"intent_to_retain": {"type": "boolean"},
"filter": {"$ref": "http://json-schema.org/draft-07/schema#"},
Expand Down

0 comments on commit ee4c8f3

Please sign in to comment.