{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"EBSI Natural Person Verifiable ID","description":"Schema of an EBSI Verifiable ID for a natural person participating in the educational use cases","type":"object","allOf":[{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"EBSI Verifiable Attestation","description":"The schema defines a generic structure for any EBSI-related Verifiable Credentials according to the Verifiable Credentials Data Model v1.1","type":"object","properties":{"@context":{"description":"Semantic context for the issued credential. First element MUST be https://www.w3.org/2018/credentials/v1","type":"array","items":{"type":"string","format":"uri"},"contains":{"const":"https://www.w3.org/2018/credentials/v1"},"minItems":1,"uniqueItems":true},"id":{"description":"Globally unique identifier for the issued credential","type":"string","format":"uri"},"type":{"description":"Full type chain, used to identify the credential base types","type":"array","items":{"type":"string"},"contains":{"type":"string","const":"VerifiableAttestation"},"uniqueItems":true},"issuer":{"description":"Defines a property for expressing the issuer of a Verifiable Credential","oneOf":[{"description":"DID of the credential issuer","type":"string","format":"uri"},{"type":"object","required":["id"],"properties":{"id":{"description":"DID of the credential issuer","type":"string","format":"uri"}}}]},"issuanceDate":{"description":"Defines the date and time, when the issued credential becomes valid","type":"string","format":"date-time"},"issued":{"description":"Defines when the issued credential was issued","type":"string","format":"date-time"},"validFrom":{"description":"Defines the date and time, when the issued credential becomes valid","type":"string","format":"date-time"},"validUntil":{"description":"Defines the date and time, when the issued credential expires","type":"string","format":"date-time"},"expirationDate":{"description":"Defines the date and time, when the issued credential expires","type":"string","format":"date-time"},"credentialSubject":{"description":"Defines information about the subject that is defined by the type chain","anyOf":[{"$ref":"#/allOf/0/%24defs/credentialSubject"},{"type":"array","items":{"$ref":"#/allOf/0/%24defs/credentialSubject"}}]},"credentialStatus":{"description":"Defines suspension and/or revocation details for the issued credential. Further redefined by the type extension","anyOf":[{"$ref":"#/allOf/0/%24defs/credentialStatus"},{"type":"array","items":{"$ref":"#/allOf/0/%24defs/credentialStatus"}}]},"credentialSchema":{"description":"One or more schemas that validate the Verifiable Credential.","anyOf":[{"$ref":"#/allOf/0/%24defs/credentialSchema"},{"type":"array","items":{"$ref":"#/allOf/0/%24defs/credentialSchema"}}]},"termsOfUse":{"description":"Contains the terms under which the issued credential was issued","anyOf":[{"$ref":"#/allOf/0/%24defs/termsOfUse"},{"type":"array","items":{"$ref":"#/allOf/0/%24defs/termsOfUse"}}]},"evidence":{"description":"Contains the optional evidence used to issue this credential","anyOf":[{"$ref":"#/allOf/0/%24defs/evidence"},{"type":"array","items":{"$ref":"#/allOf/0/%24defs/evidence"}}]}},"required":["@context","id","type","issuer","issuanceDate","issued","validFrom","credentialSubject","credentialSchema"],"$defs":{"credentialSubject":{"description":"Defines information about the subject that is defined by the type chain","type":"object","properties":{"id":{"description":"Defines the DID of the subject that is described by the issued credential","type":"string","format":"uri"}}},"credentialStatus":{"description":"Defines suspension and/or revocation details for the issued credential. Further redefined by the type extension","type":"object","properties":{"id":{"description":"Exact identity for the credential status","type":"string","format":"uri"},"type":{"description":"Defines the revocation type extension","type":"string"}},"required":["id","type"]},"credentialSchema":{"description":"Contains information about the credential schema on which the issued credential is based","type":"object","properties":{"id":{"description":"References the credential schema stored on the Trusted Schemas Registry (TSR) on which the Verifiable Authorisation is based on","type":"string","format":"uri"},"type":{"description":"Defines credential schema type","type":"string"}},"required":["id","type"]},"termsOfUse":{"description":"Contains the terms under which the issued credential was issued","type":"object","properties":{"id":{"description":"Contains a URL that points to where more information about this instance of terms of use can be found.","type":"string"},"type":{"description":"Defines the type extension","type":"string"}},"required":["type"]},"evidence":{"type":"object","properties":{"id":{"description":"If present, it SHOULD contain a URL that points to where more information about this instance of evidence can be found.","type":"string"},"type":{"anyOf":[{"description":"Defines the evidence type extension","type":"string"},{"description":"Defines the evidence type extension","type":"array","items":{"type":"string"}}]}},"required":["type"]}}},{"properties":{"credentialSubject":{"description":"Defines additional properties on credentialSubject to describe IDs that do not have a substantial level of assurance.","type":"object","properties":{"id":{"description":"Defines a unique identifier of the credential subject","type":"string"},"identifier":{"description":"Defines an alternative identifier for the person ","type":"array","items":{"$ref":"#/$defs/identifier"}},"familyName":{"description":"Defines current family name(s) of the credential subject","type":"string"},"firstName":{"description":"Defines current first name(s) of the credential subject","type":"string"},"dateOfBirth":{"description":"Defines date of birth of the credential subject","type":"string","format":"date"},"personalIdentifier":{"description":"Defines the unique national identifier of the credential subject (constructed by the sending Member State in accordance with the technical specifications for the purposes of cross-border identification and which is as persistent as possible in time)","type":"string"},"nameAndFamilyNameAtBirth":{"description":"Defines the first and the family name(s) of the credential subject at the time of their birth","type":"string"},"placeOfBirth":{"description":"Defines the place where the credential subject is born","type":"string"},"currentAddress":{"description":"Defines the current address of the credential subject","type":"array","items":{"type":"string"}},"gender":{"description":"Defines the gender of the credential subject","type":"string"}},"required":["id"]}}}],"$defs":{"identifier":{"description":"Defines an alternative Identifier object ","type":"object","properties":{"schemeID":{"description":"Defines the schema used to define alternative identification","type":"string"},"value":{"description":"Define the alternative identification value","type":"string"},"id":{"description":"The URI of the identifier","type":"string","format":"uri"}},"required":["schemeID","value"]}}}