{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://id.uvci.eu/DCC.combined-schema.json", "title": "EU DCC", "description": "EU Digital Covid Certificate", "$comment": "Schema version 1.3.0", "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.3.0" ] }, "nam": { "description": "Surname(s), forename(s) - in that order", "$ref": "#/$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": "#/$defs/vaccination_entry" }, "minItems": 1, "maxItems": 1 }, "t": { "description": "Test Group", "type": "array", "items": { "$ref": "#/$defs/test_entry" }, "minItems": 1, "maxItems": 1 }, "r": { "description": "Recovery Group", "type": "array", "items": { "$ref": "#/$defs/recovery_entry" }, "minItems": 1, "maxItems": 1 } }, "$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: Surname(s), forename(s) - in that order", "required": [ "fnt" ], "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