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
/
Copy pathDCC.schema.json
92 lines (92 loc) · 2.09 KB
/
DCC.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
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://id.uvci.eu/DCC.schema.json",
"title": "EU DCC",
"description": "EU Digital Covid Certificate",
"$comment": "Schema version 1.3.3",
"type": "object",
"oneOf": [
{
"required": [
"ver",
"nam",
"dob",
"v"
]
},
{
"required": [
"ver",
"nam",
"dob",
"t"
]
},
{
"required": [
"ver",
"nam",
"dob",
"r"
]
}
],
"properties": {
"ver": {
"title": "Schema version",
"description": "Version of the schema, according to Semantic versioning (ISO, https://semver.org/ version 2.0.0 or newer)",
"type": "string",
"pattern": "^\\d+.\\d+.\\d+$",
"examples": [
"1.0.0",
"1.3.0",
"1.3.1",
"1.3.2",
"1.3.3"
]
},
"nam": {
"description": "Surname(s), forename(s) - in that order",
"$ref": "https://id.uvci.eu/DCC.Core.Types.schema.json#/$defs/person_name"
},
"dob": {
"title": "Date of birth",
"description": "Date of Birth of the person addressed in the DCC. ISO 8601 date format restricted to range 1900-2099 or empty",
"type": "string",
"pattern": "^((19|20)\\d\\d(-\\d\\d){0,2}){0,1}$",
"examples": [
"1979-04-14",
"1950",
"1901-08",
""
]
},
"v": {
"description": "Vaccination Group",
"type": "array",
"items": {
"$ref": "https://id.uvci.eu/DCC.Types.schema.json#/$defs/vaccination_entry"
},
"minItems": 1,
"maxItems": 1
},
"t": {
"description": "Test Group",
"type": "array",
"items": {
"$ref": "https://id.uvci.eu/DCC.Types.schema.json#/$defs/test_entry"
},
"minItems": 1,
"maxItems": 1
},
"r": {
"description": "Recovery Group",
"type": "array",
"items": {
"$ref": "https://id.uvci.eu/DCC.Types.schema.json#/$defs/recovery_entry"
},
"minItems": 1,
"maxItems": 1
}
}
}