IdHub/schemas/financial-vulnerability.json

115 lines
4.9 KiB
JSON
Raw Permalink Normal View History

2024-01-21 20:08:43 +00:00
{
"$id": "https://idhub.pangea.org/vc_schemas/financial-vulnerability.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Financial Vulnerability Credential",
"description": "A Financial Vulnerability Credential is issued to individuals or families to prove their financial vulnerability based on various factors, with the objective of presenting it to a third party to receive benefits or services.",
"name": [
{
"value": "Financial Vulnerability Credential",
"lang": "en"
},
{
"value": "Credencial de Vulnerabilitat Financera",
"lang": "ca_ES"
},
{
"value": "Credencial de Vulnerabilidad Financiera",
"lang": "es"
}
],
"type": "object",
"allOf": [
{
"$ref": "https://idhub.pangea.org/vc_schemas/ebsi/attestation.json"
},
{
"properties": {
"credentialSubject": {
"description": "Defines additional properties on credentialSubject",
"type": "object",
"properties": {
"id": {
"description": "Defines a unique identifier (DID) of the credential subject",
2024-02-27 09:28:14 +00:00
"type": "string",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"firstName": {
"description": "Name of the credential subject",
2024-02-27 09:28:14 +00:00
"type": "string",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"lastName": {
"description": "Surname of the credential subject",
2024-02-27 09:28:14 +00:00
"type": "string",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"email": {
"type": "string",
2024-02-27 09:28:14 +00:00
"format": "email",
"pattern": "^\\S+@\\S+\\.\\S+$"
2024-01-21 20:08:43 +00:00
},
"phoneNumber": {
2024-02-27 09:28:14 +00:00
"type": "string"
2024-01-21 20:08:43 +00:00
},
"identityDocType": {
"description": "Type of the Identity Document of the credential subject",
2024-02-27 09:28:14 +00:00
"type": "string",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"identityNumber": {
"description": "Number of the Identity Document of the credential subject",
2024-02-27 09:28:14 +00:00
"type": "string",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"streetAddress": {
"description": "Postal address of the credential Subject",
2024-02-27 09:28:14 +00:00
"type": "string",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"socialWorkerName": {
"description": "Name of the social worker that support the vulnerable person/family",
2024-02-27 09:28:14 +00:00
"type": "string",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"socialWorkerSurname": {
"description": "Surname of the social worker that support the vulnerable person/family",
2024-02-27 09:28:14 +00:00
"type": "string",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"financialVulnerabilityScore": {
"description": "Measure of an individual's susceptibility to financial hardship",
2024-02-27 09:28:14 +00:00
"type": "string",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"amountCoveredByOtherAids": {
2024-02-27 09:28:14 +00:00
"type": "string",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"connectivityOptionList": {
"type": "string"
},
"assessmentDate": {
"type": "string",
2024-02-27 09:28:14 +00:00
"format": "date",
"minLength": 1
2024-01-21 20:08:43 +00:00
}
},
"required": [
"id",
"firstName",
"lastName",
"email",
"identityDocType",
"identityNumber",
"streetAddress",
"socialWorkerName",
"socialWorkerSurname",
"financialVulnerabilityScore",
"amountCoveredByOtherAids",
"assessmentDate"
]
}
}
}
]
}