{
  "type": [
    "VerifiableCredential",
    "eduIDCredential"
  ],
  "@context": [
    "https://www.w3.org/2018/credentials/v1",
    "https://registry.siros.org/contexts/eduid/v1"
  ],
  "name": "eduID Credential",
  "description": "A verifiable credential for educational identity, based on PID ARF 1.8. Provides identity attributes for students and staff within the education and research sector.",
  "display": {
    "backgroundColor": "#0d4f8b",
    "textColor": "#ffffff"
  },
  "credentialSchema": {
    "type": "JsonSchema",
    "properties": {
      "credentialSubject": {
        "type": "object",
        "properties": {
          "address": {
            "type": "object",
            "title": "Address",
            "description": "Person's residential address"
          },
          "address.country": {
            "type": "string",
            "title": "Country",
            "description": "Country where the person currently resides"
          },
          "address.formatted": {
            "type": "string",
            "title": "Full Address",
            "description": "Full formatted address of residence"
          },
          "address.house_number": {
            "type": "string",
            "title": "House Number",
            "description": "Street number of residence"
          },
          "address.locality": {
            "type": "string",
            "title": "City",
            "description": "Municipality, city, town, or village of residence"
          },
          "address.postal_code": {
            "type": "string",
            "title": "Postal Code",
            "description": "Postal or ZIP code of residence"
          },
          "address.region": {
            "type": "string",
            "title": "Region",
            "description": "State, province, or regional division of residence"
          },
          "address.street_address": {
            "type": "string",
            "title": "Street",
            "description": "Street name of residence"
          },
          "age_birth_year": {
            "type": "number",
            "title": "Birth Year",
            "description": "Year in which the person was born"
          },
          "age_equal_or_over": {
            "type": "object",
            "title": "Age Thresholds",
            "description": "Age threshold indicators"
          },
          "age_equal_or_over.14": {
            "type": "boolean",
            "title": "Age \u003e= 14",
            "description": "Indicates if the person is 14 years old or older"
          },
          "age_equal_or_over.16": {
            "type": "boolean",
            "title": "Age \u003e= 16",
            "description": "Indicates if the person is 16 years old or older"
          },
          "age_equal_or_over.18": {
            "type": "boolean",
            "title": "Age \u003e= 18",
            "description": "Indicates if the person is 18 years old or older"
          },
          "age_equal_or_over.21": {
            "type": "boolean",
            "title": "Age \u003e= 21",
            "description": "Indicates if the person is 21 years old or older"
          },
          "age_equal_or_over.65": {
            "type": "boolean",
            "title": "Age \u003e= 65",
            "description": "Indicates if the person is 65 years old or older"
          },
          "age_in_years": {
            "type": "number",
            "title": "Age",
            "description": "Person's age in completed years"
          },
          "birth_family_name": {
            "type": "string",
            "title": "Birth Last Name",
            "description": "Last name(s) or surname(s) at birth"
          },
          "birth_given_name": {
            "type": "string",
            "title": "Birth First Name",
            "description": "First name(s), including middle name(s), at birth"
          },
          "birthdate": {
            "type": "string",
            "title": "Date of Birth",
            "description": "Full birth date (day, month, year)",
            "format": "date"
          },
          "date_of_expiry": {
            "type": "string",
            "title": "Expiry Date",
            "description": "End date of the document's validity",
            "format": "date"
          },
          "date_of_issuance": {
            "type": "string",
            "title": "Issue Date",
            "description": "Start date of the document's validity",
            "format": "date"
          },
          "document_number": {
            "type": "string",
            "title": "Document Number",
            "description": "Unique identifier of the eduID document"
          },
          "email": {
            "type": "string",
            "title": "Email",
            "description": "Person's email address"
          },
          "family_name": {
            "type": "string",
            "title": "Family Name",
            "description": "Current last name(s) or surname(s)"
          },
          "given_name": {
            "type": "string",
            "title": "Given Name",
            "description": "Current first name(s), including middle name(s) if applicable"
          },
          "issuing_authority": {
            "type": "string",
            "title": "Issuing Authority",
            "description": "Name of the issuing body or Member State"
          },
          "issuing_country": {
            "type": "string",
            "title": "Issuing Country",
            "description": "Member State where the document was issued"
          },
          "issuing_jurisdiction": {
            "type": "string",
            "title": "Issuing Region",
            "description": "Regional or local subdivision that issued the document"
          },
          "nationalities": {
            "type": "array",
            "title": "Nationalities",
            "description": "Country or countries of nationality",
            "items": {
              "type": "string"
            }
          },
          "personal_administrative_number": {
            "type": "string",
            "title": "Personal ID",
            "description": "Unique personal identifier assigned by the authority"
          },
          "phone_number": {
            "type": "string",
            "title": "Mobile",
            "description": "Person's mobile phone number"
          },
          "picture": {
            "type": "string",
            "title": "Picture",
            "description": "Portrait photo of the holder"
          },
          "place_of_birth": {
            "type": "object",
            "title": "Place of Birth",
            "description": "Place where the person was born"
          },
          "place_of_birth.country": {
            "type": "string",
            "title": "Country of Birth",
            "description": "Country where the person was born"
          },
          "place_of_birth.locality": {
            "type": "string",
            "title": "City of Birth",
            "description": "Municipality, city, town, or village where the person was born"
          },
          "place_of_birth.region": {
            "type": "string",
            "title": "Region of Birth",
            "description": "State, province, district, or local area where the person was born"
          },
          "sex": {
            "type": "string",
            "title": "Sex",
            "description": "Recorded sex or gender, using standard codes"
          },
          "trust_anchor": {
            "type": "string",
            "title": "Trust Anchor",
            "description": "The trust anchor used to verify the document"
          }
        },
        "required": [
          "nationalities",
          "birthdate",
          "place_of_birth",
          "issuing_authority",
          "given_name",
          "family_name",
          "date_of_expiry",
          "issuing_country"
        ]
      }
    }
  }
}