Skip to content

Commit

Permalink
Fix L3-iGrant/api#573: Update presentation definition and presentatio…
Browse files Browse the repository at this point in the history
…n submission schema definition to support mso_mdoc
  • Loading branch information
albinpa authored and georgepadayatti committed Oct 22, 2024
1 parent 5d32cea commit 44829ae
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions sdjwt/pex.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,25 @@ class PresentationDefinition(BaseModel):
"id": {"type": "string"},
"name": {"type": "string"},
"purpose": {"type": "string"},
"format": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Presentation Definition Claim Format Designations",
"type": "object",
"additionalProperties": False,
"patternProperties": {
"mso_mdoc": {
"type": "object",
"additionalProperties": False,
"properties": {
"alg": {
"type": "array",
"minItems": 1,
"items": {"type": "string", "enum": ["ES256"]},
}
},
}
},
},
"constraints": {
"type": "object",
"additionalProperties": False,
Expand Down Expand Up @@ -143,6 +162,17 @@ class PresentationDefinition(BaseModel):
}
},
},
"mso_mdoc": {
"type": "object",
"additionalProperties": False,
"properties": {
"alg": {
"type": "array",
"minItems": 1,
"items": {"type": "string", "enum": ["ES256"]},
}
},
},
},
},
},
Expand Down Expand Up @@ -197,6 +227,7 @@ class PresentationDefinitionValidationError(Exception):
"vc+sd-jwt",
"vp+sd-jwt",
"sd-jwt",
"mso_mdoc",
],
},
},
Expand Down

0 comments on commit 44829ae

Please sign in to comment.