github.com/hyperledger/aries-framework-go@v0.3.2/pkg/doc/presexch/testdata/sample_2.json (about)

     1  {
     2    "id":"32f54163-7166-48f1-93d8-ff217bdb0653",
     3    "submission_requirements":[
     4      {
     5        "name":"Citizenship Information",
     6        "rule":"pick",
     7        "count":1,
     8        "from":"A"
     9      }
    10    ],
    11    "input_descriptors":[
    12      {
    13        "id":"citizenship_input_1",
    14        "name":"EU Driver's License",
    15        "group":[
    16          "A"
    17        ],
    18        "schema":[
    19          {
    20            "uri":"https://eu.com/claims/DriversLicense.json"
    21          }
    22        ],
    23        "constraints":{
    24          "fields":[
    25            {
    26              "path":[
    27                "$.issuer",
    28                "$.vc.issuer",
    29                "$.iss"
    30              ],
    31              "purpose":"The claim must be from one of the specified issuers",
    32              "filter":{
    33                "type":"string",
    34                "pattern":"did:example:gov1|did:example:gov2"
    35              }
    36            },
    37            {
    38              "path":[
    39                "$.credentialSubject.dob",
    40                "$.vc.credentialSubject.dob",
    41                "$.dob"
    42              ],
    43              "filter":{
    44                "type":"string",
    45                "format":"date",
    46                "maximum":"1999-6-15"
    47              }
    48            }
    49          ]
    50        }
    51      },
    52      {
    53        "id":"citizenship_input_2",
    54        "name":"US Passport",
    55        "group":[
    56          "A"
    57        ],
    58        "schema":[
    59          {
    60            "uri":"hub://did:foo:123/Collections/schema.us.gov/passport.json"
    61          }
    62        ],
    63        "constraints":{
    64          "fields":[
    65            {
    66              "path":[
    67                "$.credentialSubject.birth_date",
    68                "$.vc.credentialSubject.birth_date",
    69                "$.birth_date"
    70              ],
    71              "filter":{
    72                "type":"string",
    73                "format":"date",
    74                "maximum":"1999-5-16"
    75              }
    76            }
    77          ]
    78        }
    79      }
    80    ]
    81  }