{
  "$schema": "https://eudiplo.dev/schemas/v1/CredentialConfigFile.schema.json",
  "metadata": {
    "generation": 1
  },
  "spec": {
    "id": "pid-key",
    "description": "Personal ID",
    "config": {
      "scope": "pid",
      "format": "dc+sd-jwt",
      "display": [
        {
          "name": "PID",
          "description": "PID Credential",
          "locale": "en-US",
          "background_color": "#FFFFFF",
          "text_color": "#000000",
          "background_image": {
            "uri": "identity-card.jpg"
          },
          "logo": {
            "uri": "logo.jpg"
          }
        }
      ],
      "keyAttestationsRequired": {
        "key_storage": [
          "iso_18045_high",
          "iso_18045_moderate"
        ],
        "user_authentication": [
          "iso_18045_high",
          "iso_18045_moderate"
        ]
      }
    },
    "vct": "urn:eudi:pid:de:1",
    "keyBinding": true,
    "statusManagement": true,
    "lifeTime": 604800,
    "fields": [
      {
        "path": [
          "address"
        ],
        "type": "object",
        "disclosable": true,
        "children": [
          {
            "path": [
              "country"
            ],
            "type": "string",
            "defaultValue": "DE",
            "mandatory": true,
            "disclosable": true
          },
          {
            "path": [
              "locality"
            ],
            "type": "string",
            "defaultValue": "KÖLN",
            "mandatory": true,
            "disclosable": true,
            "display": [
              {
                "locale": "en-US",
                "name": "City"
              },
              {
                "locale": "de-DE",
                "name": "Stadt"
              }
            ]
          },
          {
            "path": [
              "postal_code"
            ],
            "type": "string",
            "defaultValue": "51147",
            "mandatory": true,
            "disclosable": true,
            "display": [
              {
                "locale": "en-US",
                "name": "Postal Code"
              },
              {
                "locale": "de-DE",
                "name": "Postleitzahl"
              }
            ]
          },
          {
            "path": [
              "street_address"
            ],
            "type": "string",
            "defaultValue": "HEIDESTRAẞE 17",
            "mandatory": true,
            "disclosable": true
          }
        ]
      },
      {
        "path": [
          "age_birth_year"
        ],
        "type": "integer",
        "defaultValue": 1964,
        "mandatory": true,
        "disclosable": true
      },
      {
        "path": [
          "age_equal_or_over"
        ],
        "type": "object",
        "disclosable": true,
        "children": [
          {
            "path": [
              "12"
            ],
            "type": "boolean",
            "defaultValue": true,
            "mandatory": true,
            "disclosable": true
          },
          {
            "path": [
              "14"
            ],
            "type": "boolean",
            "defaultValue": true,
            "mandatory": true,
            "disclosable": true
          },
          {
            "path": [
              "16"
            ],
            "type": "boolean",
            "defaultValue": true,
            "mandatory": true,
            "disclosable": true
          },
          {
            "path": [
              "18"
            ],
            "type": "boolean",
            "defaultValue": true,
            "mandatory": true,
            "disclosable": true
          },
          {
            "path": [
              "21"
            ],
            "type": "boolean",
            "defaultValue": true,
            "mandatory": true,
            "disclosable": true
          },
          {
            "path": [
              "65"
            ],
            "type": "boolean",
            "defaultValue": false,
            "mandatory": true,
            "disclosable": true
          }
        ]
      },
      {
        "path": [
          "age_in_years"
        ],
        "type": "integer",
        "defaultValue": 61,
        "mandatory": true,
        "disclosable": true
      },
      {
        "path": [
          "birthdate"
        ],
        "type": "string",
        "defaultValue": "1964-08-12",
        "mandatory": true,
        "disclosable": true,
        "display": [
          {
            "locale": "en-US",
            "name": "Date of Birth"
          },
          {
            "locale": "de-DE",
            "name": "Geburtsdatum"
          }
        ],
        "constraints": {
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        }
      },
      {
        "path": [
          "family_name"
        ],
        "type": "string",
        "defaultValue": "MUSTERMANN",
        "mandatory": true,
        "disclosable": true,
        "display": [
          {
            "locale": "en-US",
            "name": "Family Name"
          },
          {
            "locale": "de-DE",
            "name": "Nachname"
          }
        ]
      },
      {
        "path": [
          "given_name"
        ],
        "type": "string",
        "defaultValue": "ERIKA",
        "mandatory": true,
        "disclosable": true,
        "display": [
          {
            "locale": "en-US",
            "name": "Given Name"
          },
          {
            "locale": "de-DE",
            "name": "Vorname"
          }
        ]
      },
      {
        "path": [
          "issuing_authority"
        ],
        "type": "string",
        "defaultValue": "DE",
        "mandatory": true,
        "disclosable": true
      },
      {
        "path": [
          "issuing_country"
        ],
        "type": "string",
        "defaultValue": "DE",
        "mandatory": true,
        "disclosable": true,
        "display": [
          {
            "locale": "en-US",
            "name": "Issuing Country"
          },
          {
            "locale": "de-DE",
            "name": "Ausstellungsland"
          }
        ]
      },
      {
        "path": [
          "nationalities"
        ],
        "type": "array",
        "defaultValue": [
          "DE"
        ],
        "mandatory": true,
        "disclosable": true,
        "display": [
          {
            "locale": "en-US",
            "name": "Nationalities"
          },
          {
            "locale": "de-DE",
            "name": "Staatsangehörigkeiten"
          }
        ],
        "constraints": {
          "items": {
            "type": "string",
            "title": "Nationality"
          }
        },
        "children": [
          {
            "path": [
              null
            ],
            "type": "string",
            "defaultValue": "DE",
            "disclosable": false,
            "display": [
              {
                "locale": "en-US",
                "name": "Nationality"
              },
              {
                "locale": "de-DE",
                "name": "Staatsangehörigkeit"
              }
            ]
          }
        ]
      },
      {
        "path": [
          "place_of_birth"
        ],
        "type": "object",
        "disclosable": true,
        "display": [
          {
            "locale": "en-US",
            "name": "Place of Birth"
          },
          {
            "locale": "de-DE",
            "name": "Geburtsort"
          }
        ],
        "children": [
          {
            "path": [
              "locality"
            ],
            "type": "string",
            "defaultValue": "BERLIN",
            "mandatory": true,
            "disclosable": false,
            "display": [
              {
                "locale": "en-US",
                "name": "Place of Birth"
              },
              {
                "locale": "de-DE",
                "name": "Geburtsort"
              }
            ]
          }
        ]
      },
      {
        "path": [
          "source_document_type"
        ],
        "type": "string",
        "defaultValue": "id_card",
        "mandatory": true,
        "disclosable": true,
        "display": [
          {
            "locale": "en-US",
            "name": "Source Document Type"
          },
          {
            "locale": "de-DE",
            "name": "Art des Ausweisdokuments"
          }
        ]
      }
    ]
  }
}
