-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle non-exteral submission edge cases
Signed-off-by: Timo Glastra <[email protected]>
- Loading branch information
1 parent
3ca3768
commit c5fc070
Showing
4 changed files
with
193 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
test/dif_pe_examples/pdV1/pd-simple-schema-jwt-degree.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"comment": "Note: VP, OIDC, DIDComm, or CHAPI outer wrapper would be here.", | ||
"presentation_definition": { | ||
"id": "31e2f0f1-6b70-411d-b239-56aed5321884", | ||
"purpose": "To sell you a drink we need to know that you are an adult.", | ||
"input_descriptors": [ | ||
{ | ||
"id": "867bfe7a-5b91-46b2-9ba4-70028b8d9cc8", | ||
"purpose": "Degree", | ||
"schema": [ | ||
{ | ||
"uri": "https://www.w3.org/2018/credentials/v1" | ||
} | ||
], | ||
"constraints": { | ||
"fields": [ | ||
{ | ||
"path": ["$.vc.credentialSubject.degree.type"] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} |