This repository has been archived by the owner on Jul 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
/
DCC.Core.Types.schema.json
79 lines (79 loc) · 2.37 KB
/
DCC.Core.Types.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://id.uvci.eu/DCC.Core.Types.schema.json",
"title": "EU DCC",
"description": "EU Digital Covid Certificate Core Data Types",
"$defs": {
"dose_posint": {
"description": "Dose Number / Total doses in Series: positive integer",
"type": "integer",
"minimum": 1
},
"issuer": {
"description": "Certificate Issuer",
"type": "string",
"maxLength": 80
},
"person_name": {
"description": "Person name: The person's name consisting at least of a separate standardised surname, or a standardised forename, or both - with standardisation done according to the rules defined in ICAO Doc 9303 Part 3",
"anyOf": [
{
"required": [
"fnt"
]
},
{
"required": [
"gnt"
]
}
],
"type": "object",
"properties": {
"fn": {
"title": "Surname",
"description": "The surname or primary name(s) of the person addressed in the certificate",
"type": "string",
"maxLength": 80,
"examples": [
"d'Červenková Panklová"
]
},
"fnt": {
"title": "Standardised surname",
"description": "The surname(s) of the person, transliterated ICAO 9303",
"type": "string",
"pattern": "^[A-Z<]*$",
"maxLength": 80,
"examples": [
"DCERVENKOVA<PANKLOVA"
]
},
"gn": {
"title": "Forename",
"description": "The forename(s) of the person addressed in the certificate",
"type": "string",
"maxLength": 80,
"examples": [
"Jiřina-Maria Alena"
]
},
"gnt": {
"title": "Standardised forename",
"description": "The forename(s) of the person, transliterated ICAO 9303",
"type": "string",
"pattern": "^[A-Z<]*$",
"maxLength": 80,
"examples": [
"JIRINA<MARIA<ALENA"
]
}
}
},
"certificate_id": {
"description": "Certificate Identifier, format as per UVCI: Annex 2 in https://ec.europa.eu/health/sites/health/files/ehealth/docs/vaccination-proof_interoperability-guidelines_en.pdf",
"type": "string",
"maxLength": 80
}
}
}