github.com/hyperledger/aries-framework-go@v0.3.2/pkg/doc/presexch/testdata/nested_submission_requirements_pd.json (about) 1 { 2 "id": "32f54163-7166-48f1-93d8-ff217bdb0653", 3 "submission_requirements": [ 4 { 5 "name": "Nested requirements", 6 "rule": "all", 7 "from_nested": [ 8 { 9 "name": "VerifiedEmployee or Degree", 10 "rule": "pick", 11 "count": 1, 12 "from": "A" 13 }, 14 { 15 "name": "DriversLicense", 16 "rule": "pick", 17 "count": 1, 18 "from": "B" 19 } 20 ] 21 } 22 ], 23 "input_descriptors": [ 24 { 25 "id": "VerifiedEmployee", 26 "name": "Verified Employee", 27 "group": [ 28 "A" 29 ], 30 "constraints": { 31 "fields": [ 32 { 33 "path": [ 34 "$.type", 35 "$.vc.type" 36 ], 37 "filter": { 38 "type": "array", 39 "contains": { 40 "type": "string", 41 "const": "VerifiedEmployee" 42 } 43 } 44 } 45 ] 46 } 47 }, 48 { 49 "id": "DriversLicense", 50 "name": "Driver's License", 51 "group": [ 52 "B" 53 ], 54 "constraints": { 55 "fields": [ 56 { 57 "path": [ 58 "$.type", 59 "$.vc.type" 60 ], 61 "filter": { 62 "type": "array", 63 "contains": { 64 "type": "string", 65 "const": "DriversLicense" 66 } 67 } 68 } 69 ] 70 } 71 }, 72 { 73 "id": "degree", 74 "name": "degree", 75 "group": [ 76 "A" 77 ], 78 "purpose": "We can only hire with bachelor's degree.", 79 "constraints": { 80 "fields": [ 81 { 82 "path": [ 83 "$.credentialSubject.degree.type", 84 "$.vc.credentialSubject.degree.type" 85 ], 86 "purpose": "We can only hire with bachelor's degree.", 87 "filter": { 88 "type": "string", 89 "const": "BachelorDegree" 90 } 91 } 92 ] 93 } 94 } 95 ] 96 }