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