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 de0cb5d..d092666 100644 --- a/decoder/src/main/java/dgca/verifier/app/decoder/JsonSchema.kt +++ b/decoder/src/main/java/dgca/verifier/app/decoder/JsonSchema.kt @@ -60,32 +60,27 @@ 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" + @@ -93,8 +88,7 @@ const val JSON_SCHEMA_V1 = "{\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" + @@ -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" + @@ -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