addedOutput schema / properties / postcode_locality
Added value: +{
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as_of": {
+ "description": "Version date of the directory (YYYY-MM-DD).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "detail": {
+ "description": "What was compared and what came out of it.",
+ "type": "string"
+ },
+ "localities": {
+ "description": "The entries the directory gives for this postcode; empty when it has none.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "canton": {
+ "description": "null in Liechtenstein.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "country": {
+ "description": "CH | LI",
+ "type": "string"
+ },
+ "municipality": {
+ "type": "string"
+ },
+ "name": {
+ "description": "The locality as the directory writes it.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "municipality",
+ "canton",
+ "country"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "source": {
+ "description": "The directory, its version and the credit ©swisstopo that its terms require.",
+ "type": "string"
+ },
+ "status": {
+ "description": "match | town_mismatch | other_country | postcode_not_listed | not_verifiable | directory_unavailable. not_verifiable: the postcode is not in the directory, which lists territory only, while the town is listed under other postcodes of the same postal area (a post-office box or business postcode is likely).",
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "localities",
+ "detail",
+ "source",
+ "as_of"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Swiss and Liechtenstein addresses with a postcode and a town: whether the two go together in the official directory of localities of swisstopo. Informative, beside the format verdicts: it does not change conforms or valid. The street is not checked. null for any other address."
+}