-
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.
chore: Added enum and const tests with old and new format
- Loading branch information
Zoe Maas
committed
Dec 2, 2024
1 parent
4a69b80
commit 21ff6c4
Showing
2 changed files
with
215 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"presentation_definition": { | ||
"id": "56e001a9-c41f-49c5-9b12-440ad4861f58", | ||
"name": "DIIP v3 compliance", | ||
"purpose": "Prove you're compliant with DIIP v3", | ||
"input_descriptors": [ | ||
{ | ||
"id": "b2a1f1d3-37ee-4494-98e2-ef9853b28197", | ||
"name": "DIIP v3 compliance", | ||
"purpose": "Prove you're compliant with DIIP v3", | ||
"format": { | ||
"vc+sd-jwt": {} | ||
}, | ||
"constraints": { | ||
"limit_disclosure": "preferred", | ||
"fields": [ | ||
{ | ||
"path": ["$.compliant"], | ||
"name": "compliant", | ||
"filter": { | ||
"type": "boolean", | ||
"enum": [ | ||
true, | ||
false | ||
] | ||
} | ||
}, | ||
{ | ||
"path": ["$.name"], | ||
"name": "name", | ||
"filter": { | ||
"type": "string", | ||
"enum": [ | ||
"https://example.bmi.bund.de/credential/pid/1.0", | ||
"urn:eu.europa.ec.eudi:pid:1" | ||
] | ||
} | ||
}, | ||
{ | ||
"path": ["$.age"], | ||
"name": "age", | ||
"filter": { | ||
"type": "number", | ||
"enum": [ | ||
12, | ||
135 | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} |