2023-11-20 18:18:00 +00:00
|
|
|
{
|
|
|
|
"$id": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/membership-card-schema.json",
|
|
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
|
|
"name": "MembershipCard",
|
|
|
|
"description": "MembershipCard credential using JsonSchema",
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"credentialSubject": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"organisation": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"membershipType": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-11-21 09:00:59 +00:00
|
|
|
"affiliatedSince": {
|
2023-11-20 18:18:00 +00:00
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
|
|
|
},
|
2023-11-21 09:00:59 +00:00
|
|
|
"affiliatedUntil": {
|
2023-11-20 18:18:00 +00:00
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
|
|
|
},
|
|
|
|
"typeOfPerson": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"individual",
|
|
|
|
"org"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"identityDocType": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"DNI",
|
|
|
|
"NIF",
|
|
|
|
"NIE",
|
|
|
|
"PASSPORT"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"identityNumber": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"surnames": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"email": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "email"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"organisation",
|
2023-11-21 09:00:59 +00:00
|
|
|
"affiliatedSince",
|
2023-11-20 18:18:00 +00:00
|
|
|
"typeOfPerson",
|
|
|
|
"name",
|
|
|
|
"surnames",
|
|
|
|
"email"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|