IdHub/schemas/membership-card.json

97 lines
2.8 KiB
JSON
Raw Normal View History

2023-11-20 18:18:00 +00:00
{
2023-12-15 16:52:08 +00:00
"$id": "https://idhub.pangea.org/vc_schemas/membership-card.json",
2023-11-20 18:18:00 +00:00
"$schema": "https://json-schema.org/draft/2020-12/schema",
2023-12-15 16:52:08 +00:00
"title": "Membership Card",
"description": "The membership card specifies an individual's subscription or enrollment in specific services or benefits issued by an organization.",
"name": [
{
"value": "Membership Card",
"lang": "en"
},
{
"value": "Carnet de soci/a",
"lang": "ca_ES"
},
{
"value": "Carnet de socio/a",
"lang": "es"
}
],
2023-11-20 18:18:00 +00:00
"type": "object",
2023-12-15 16:52:08 +00:00
"allOf": [
{
"$ref": "https://idhub.pangea.org/vc_schemas/ebsi/attestation.json"
},
{
2023-11-20 18:18:00 +00:00
"properties": {
2023-12-15 16:52:08 +00:00
"credentialSubject": {
"description": "Defines additional properties on credentialSubject",
"type": "object",
"properties": {
"id": {
"description": "Defines a unique identifier of the credential subject",
"type": "string"
},
"organisation": {
"description": "Organisation the credential subject is affiliated with",
"type": "string"
},
"membershipType": {
"description": "Type of membership",
"type": "string"
},
"membershipId": {
"description": "Membership identifier",
"type": "string"
},
"affiliatedSince": {
"type": "string",
"format": "date-time"
},
"affiliatedUntil": {
"type": "string",
"format": "date-time"
},
"typeOfPerson": {
"type": "string",
"enum": [
"natural",
"legal"
]
},
"identityDocType": {
"description": "Type of the Identity Document of the credential subject",
"type": "string"
},
"identityNumber": {
"description": "Number of the Identity Document of the credential subject",
"type": "string"
},
"firstName": {
"description": "Name of the natural person or name of the legal person (organisation)",
"type": "string"
},
"lastName": {
"type": "string"
},
2024-01-25 10:55:28 +00:00
"role": {
"type": "string"
},
2023-12-15 16:52:08 +00:00
"email": {
"type": "string",
"format": "email"
}
},
"required": [
"id",
"organisation",
"affiliatedSince",
"typeOfPerson",
"firstName",
"email"
2023-11-20 18:18:00 +00:00
]
}
2023-12-15 16:52:08 +00:00
}
2023-11-20 18:18:00 +00:00
}
2023-12-15 16:52:08 +00:00
]
2023-11-20 18:18:00 +00:00
}