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

     1  {
     2    "id": "32f54163-7166-48f1-93d8-ff217bdb0653",
     3    "input_descriptors": [
     4      {
     5        "id": "VerifiedEmployee",
     6        "name": "Verified Employee",
     7        "constraints": {
     8          "fields": [
     9            {
    10              "path": [
    11                "$.type",
    12                "$.vc.type"
    13              ],
    14              "filter": {
    15                "type": "array",
    16                "contains": {
    17                  "type": "string",
    18                  "const": "VerifiedEmployee"
    19                }
    20              }
    21            }
    22          ]
    23        }
    24      },
    25      {
    26        "id": "DriversLicense",
    27        "name": "Driver's License",
    28        "constraints": {
    29          "fields": [
    30            {
    31              "path": [
    32                "$.type",
    33                "$.vc.type"
    34              ],
    35              "filter": {
    36                "type": "array",
    37                "contains": {
    38                  "type": "string",
    39                  "const": "DriversLicense"
    40                }
    41              }
    42            }
    43          ]
    44        }
    45      },
    46      {
    47        "id": "degree",
    48        "name": "degree",
    49        "purpose": "We can only hire with bachelor's degree.",
    50        "constraints": {
    51          "fields": [
    52            {
    53              "path": [
    54                "$.credentialSubject.degree.type",
    55                "$.vc.credentialSubject.degree.type"
    56              ],
    57              "purpose": "We can only hire with bachelor's degree.",
    58              "filter": {
    59                "type": "string",
    60                "const": "BachelorDegree"
    61              }
    62            }
    63          ]
    64        }
    65      }
    66    ]
    67  }