-
Notifications
You must be signed in to change notification settings - Fork 1
/
testcase-10.json
104 lines (104 loc) · 3.06 KB
/
testcase-10.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"name": "Multi document mdoc query with credential_sets with an optional set that doesn't exsist",
"dcql_query": {
"credentials": [
{
"id": "mDL_request",
"format": "mso_mdoc",
"meta": {
"doctype_value": "org.iso.18013.5.1.mDL"
},
"claims": [
{
"namespace": "org.iso.18013.5.1",
"claim_name": "family_name"
},
{
"namespace": "org.iso.18013.5.1",
"claim_name": "given_name"
}
]
},
{
"id": "boardingpass_request",
"format": "mso_mdoc",
"meta": {
"doctype_value": "com.test.boardingpass"
},
"claims": [
{
"namespace": "com.test.boardingpass.v1",
"claim_name": "family_name"
},
{
"namespace": "com.test.boardingpass.v1",
"claim_name": "booking_number"
}
]
},
{
"id": "passport_request",
"format": "mso_mdoc",
"meta": {
"doctype_value": "com.test.passport"
},
"claims": [
{
"namespace": "com.test.passport.v1",
"claim_name": "family_name"
},
{
"namespace": "com.test.passport.v1",
"claim_name": "given_name"
}
]
}
],
"credential_sets": [
{
"purpose": "Identification",
"options": [
[
"mDL_request"
]
]
},
{
"purpose": "Optional passport",
"required": false,
"options": [
[
"passport_request"
]
]
}
]
},
"expected_result": {
"matched_credentials": {
"mDL_request": [
{
"id": "1",
"matched_claim_names": [
"Family Name",
"Given Name"
]
},
{
"id": "2",
"matched_claim_names": [
"Family Name",
"Given Name"
]
},
{
"id": "3",
"matched_claim_names": [
"Family Name",
"Given Name"
]
}
]
}
}
}