Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Update JsonSchema.kt

* Update JsonSchema.kt

MinItems removed

* Fixed schema

* Fixed schema

Co-authored-by: Oleksandr Sarapulov <[email protected]>
  • Loading branch information
SchulzeStTSI and oleksandrsarapulovgl authored Jun 23, 2021
1 parent c6637c8 commit 6494cb8
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions decoder/src/main/java/dgca/verifier/app/decoder/JsonSchema.kt
Original file line number Diff line number Diff line change
Expand Up @@ -60,41 +60,35 @@ const val JSON_SCHEMA_V1 = "{\n" +
" \"type\": [\"null\", \"array\"],\n" +
" \"items\": {\n" +
" \"\$ref\": \"#/\$defs/vaccination_entry\"\n" +
" },\n" +
" \"minItems\": 1\n" +
" }\n" +
" },\n" +
" \"t\": {\n" +
" \"description\": \"Test Group\",\n" +
" \"type\": [\"null\", \"array\"],\n" +
" \"items\": {\n" +
" \"\$ref\": \"#/\$defs/test_entry\"\n" +
" },\n" +
" \"minItems\": 1\n" +
" }\n" +
" },\n" +
" \"r\": {\n" +
" \"description\": \"Recovery Group\",\n" +
" \"type\": [\"null\", \"array\"],\n" +
" \"items\": {\n" +
" \"\$ref\": \"#/\$defs/recovery_entry\"\n" +
" },\n" +
" \"minItems\": 1\n" +
" }\n" +
" }\n" +
" },\n" +
" \"\$defs\": {\n" +
" \"dose_posint\": {\n" +
" \"description\": \"Dose Number / Total doses in Series: positive integer, range: [1,9]\",\n" +
" \"type\": [\"null\", \"integer\"],\n" +
" \"minimum\": 1,\n" +
" \"maximum\": 9\n" +
" \"type\": [\"null\", \"integer\"]\n" +
" },\n" +
" \"country_vt\": {\n" +
" \"description\": \"Country of Vaccination / Test, ISO 3166 where possible\",\n" +
" \"type\": [\"null\", \"string\"]\n" +
" },\n" +
" \"issuer\": {\n" +
" \"description\": \"Certificate Issuer\",\n" +
" \"type\": [\"null\", \"string\"],\n" +
" \"maxLength\": 80\n" +
" \"type\": [\"null\", \"string\"]\n" +
" },\n" +
" \"person_name\": {\n" +
" \"description\": \"Person name: Surname(s), given name(s) - in that order\",\n" +
Expand All @@ -107,7 +101,6 @@ const val JSON_SCHEMA_V1 = "{\n" +
" \"title\": \"Family name\",\n" +
" \"description\": \"The family or primary name(s) of the person addressed in the certificate\",\n" +
" \"type\": [\"null\", \"string\"],\n" +
" \"maxLength\": 80,\n" +
" \"examples\": [\n" +
" \"d'Červenková Panklová\"\n" +
" ]\n" +
Expand All @@ -116,7 +109,6 @@ const val JSON_SCHEMA_V1 = "{\n" +
" \"title\": \"Standardised family name\",\n" +
" \"description\": \"The family name(s) of the person transliterated\",\n" +
" \"type\": \"string\",\n" +
" \"maxLength\": 80,\n" +
" \"examples\": [\n" +
" \"DCERVENKOVA<PANKLOVA\"\n" +
" ]\n" +
Expand All @@ -125,7 +117,6 @@ const val JSON_SCHEMA_V1 = "{\n" +
" \"title\": \"Given name\",\n" +
" \"description\": \"The given name(s) of the person addressed in the certificate\",\n" +
" \"type\": [\"null\", \"string\"],\n" +
" \"maxLength\": 80,\n" +
" \"examples\": [\n" +
" \"Jiřina-Maria Alena\"\n" +
" ]\n" +
Expand All @@ -134,7 +125,6 @@ const val JSON_SCHEMA_V1 = "{\n" +
" \"title\": \"Standardised given name\",\n" +
" \"description\": \"The given name(s) of the person transliterated\",\n" +
" \"type\": [\"null\", \"string\"],\n" +
" \"maxLength\": 80,\n" +
" \"examples\": [\n" +
" \"JIRINA<MARIA<ALENA\"\n" +
" ]\n" +
Expand All @@ -143,8 +133,7 @@ const val JSON_SCHEMA_V1 = "{\n" +
" },\n" +
" \"certificate_id\": {\n" +
" \"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\",\n" +
" \"type\": [\"null\", \"string\"],\n" +
" \"maxLength\": 80\n" +
" \"type\": [\"null\", \"string\"]\n" +
" },\n" +
" \"vaccination_entry\": {\n" +
" \"description\": \"Vaccination Entry\",\n" +
Expand Down Expand Up @@ -250,8 +239,7 @@ const val JSON_SCHEMA_V1 = "{\n" +
" },\n" +
" \"tc\": {\n" +
" \"description\": \"Testing Centre\",\n" +
" \"type\": [\"null\", \"string\"],\n" +
" \"maxLength\": 80\n" +
" \"type\": [\"null\", \"string\"]\n" +
" },\n" +
" \"co\": {\n" +
" \"description\": \"Country of Test\",\n" +
Expand Down

0 comments on commit 6494cb8

Please sign in to comment.