{
  "id": "ch_postcode",
  "kind": "pattern",
  "status": "draft",
  "name": "Swiss postal code",
  "doc": "Postal code (Postleitzahl, numéro postal) in Switzerland: four digits. Liechtenstein uses the same system.",
  "semantic_type": "postindex",
  "is_pii": true,
  "categories": [
    "geo",
    "pii",
    "common"
  ],
  "country": [
    "CH"
  ],
  "langs": [
    "de",
    "fr",
    "it"
  ],
  "classification": "categorical",
  "regexp": "^[1-9]\\d{3}$",
  "examples": [
    {
      "value": "8001",
      "description": "Zürich",
      "valid": true
    },
    {
      "value": "3011",
      "description": "Bern",
      "valid": true
    },
    {
      "value": "1201",
      "description": "Geneva",
      "valid": true
    },
    {
      "value": "0800",
      "valid": false
    }
  ],
  "mappings": {
    "fta": "POSTAL_CODE.POSTAL_CODE_CH"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Postal_codes_in_Switzerland"
    },
    {
      "type": "other",
      "url": "https://github.com/tsegall/fta/blob/main/SemanticTypes.md"
    }
  ],
  "translations": {
    "ru": {
      "name": "Почтовый индекс Швейцарии"
    }
  },
  "detected_by": {
    "tools": [
      "fta",
      "snowflake"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/CH/geo/ch_postcode.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/CH/geo/ch_postcode.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CH/geo/ch_postcode.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/ch_postcode",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/ch_postcode.json"
  }
}