diff --git a/decoder/src/main/java/dgca/verifier/app/decoder/JsonSchema.kt b/decoder/src/main/java/dgca/verifier/app/decoder/JsonSchema.kt index 976d6c6..c2c3ece 100644 --- a/decoder/src/main/java/dgca/verifier/app/decoder/JsonSchema.kt +++ b/decoder/src/main/java/dgca/verifier/app/decoder/JsonSchema.kt @@ -58,7 +58,7 @@ const val JSON_SCHEMA_V1 = "{\n" + " },\n" + " \"v\": {\n" + " \"description\": \"Vaccination Group\",\n" + - " \"type\": \"array\",\n" + + " \"type\": [\"null\", \"array\"],\n" + " \"items\": {\n" + " \"\$ref\": \"#/\$defs/vaccination_entry\"\n" + " },\n" + @@ -66,7 +66,7 @@ const val JSON_SCHEMA_V1 = "{\n" + " },\n" + " \"t\": {\n" + " \"description\": \"Test Group\",\n" + - " \"type\": \"array\",\n" + + " \"type\": [\"null\", \"array\"],\n" + " \"items\": {\n" + " \"\$ref\": \"#/\$defs/test_entry\"\n" + " },\n" + @@ -74,7 +74,7 @@ const val JSON_SCHEMA_V1 = "{\n" + " },\n" + " \"r\": {\n" + " \"description\": \"Recovery Group\",\n" + - " \"type\": \"array\",\n" + + " \"type\": [\"null\", \"array\"],\n" + " \"items\": {\n" + " \"\$ref\": \"#/\$defs/recovery_entry\"\n" + " },\n" + @@ -84,17 +84,17 @@ const val JSON_SCHEMA_V1 = "{\n" + " \"\$defs\": {\n" + " \"dose_posint\": {\n" + " \"description\": \"Dose Number / Total doses in Series: positive integer, range: [1,9]\",\n" + - " \"type\": \"integer\",\n" + + " \"type\": [\"null\", \"integer\"],\n" + " \"minimum\": 1,\n" + " \"maximum\": 9\n" + " },\n" + " \"country_vt\": {\n" + " \"description\": \"Country of Vaccination / Test, ISO 3166 where possible\",\n" + - " \"type\": \"string\"\n" + + " \"type\": [\"null\", \"string\"]\n" + " },\n" + " \"issuer\": {\n" + " \"description\": \"Certificate Issuer\",\n" + - " \"type\": \"string\",\n" + + " \"type\": [\"null\", \"string\"],\n" + " \"maxLength\": 50\n" + " },\n" + " \"person_name\": {\n" + @@ -102,12 +102,12 @@ const val JSON_SCHEMA_V1 = "{\n" + " \"required\": [\n" + " \"fnt\"\n" + " ],\n" + - " \"type\": \"object\",\n" + + " \"type\": [\"null\", \"object\"],\n" + " \"properties\": {\n" + " \"fn\": {\n" + " \"title\": \"Family name\",\n" + " \"description\": \"The family or primary name(s) of the person addressed in the certificate\",\n" + - " \"type\": \"string\",\n" + + " \"type\": [\"null\", \"string\"],\n" + " \"maxLength\": 50,\n" + " \"examples\": [\n" + " \"d'Červenková Panklová\"\n" + @@ -125,7 +125,7 @@ const val JSON_SCHEMA_V1 = "{\n" + " \"gn\": {\n" + " \"title\": \"Given name\",\n" + " \"description\": \"The given name(s) of the person addressed in the certificate\",\n" + - " \"type\": \"string\",\n" + + " \"type\": [\"null\", \"string\"],\n" + " \"maxLength\": 50,\n" + " \"examples\": [\n" + " \"Jiřina-Maria Alena\"\n" + @@ -134,7 +134,7 @@ const val JSON_SCHEMA_V1 = "{\n" + " \"gnt\": {\n" + " \"title\": \"Standardised given name\",\n" + " \"description\": \"The given name(s) of the person transliterated\",\n" + - " \"type\": \"string\",\n" + + " \"type\": [\"null\", \"string\"],\n" + " \"maxLength\": 50,\n" + " \"examples\": [\n" + " \"JIRINA