IdHub/schemas/membership-card.json

104 lines
3 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",
2024-02-27 09:28:14 +00:00
"type": "string",
"minLength": 1
2023-12-15 16:52:08 +00:00
},
"organisation": {
"description": "Organisation the credential subject is affiliated with",
2024-02-27 09:28:14 +00:00
"type": "string",
"minLength": 1
2023-12-15 16:52:08 +00:00
},
"membershipType": {
"description": "Type of membership",
"type": "string"
},
"membershipId": {
"description": "Membership identifier",
2024-02-27 09:28:14 +00:00
"type": "string"
2023-12-15 16:52:08 +00:00
},
"affiliatedSince": {
"type": "string",
2024-02-27 09:28:14 +00:00
"format": "date",
"minLength": 1
2023-12-15 16:52:08 +00:00
},
"affiliatedUntil": {
2024-02-28 09:38:56 +00:00
"type": "string",
2024-02-16 13:03:09 +00:00
"format": "date"
2023-12-15 16:52:08 +00:00
},
"typeOfPerson": {
"type": "string",
"enum": [
"natural",
"legal"
2024-02-27 09:28:14 +00:00
],
"minLength": 1
2023-12-15 16:52:08 +00:00
},
"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)",
2024-02-27 09:28:14 +00:00
"type": "string",
"minLength": 1
2023-12-15 16:52:08 +00:00
},
"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",
2024-02-27 09:28:14 +00:00
"format": "email",
"pattern": "^\\S+@\\S+\\.\\S+$"
2023-12-15 16:52:08 +00:00
}
},
"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
]
}