{
  "id": "jp_postcode",
  "kind": "pattern",
  "status": "draft",
  "name": "Japanese postal code",
  "doc": "Postal code (郵便番号) in Japan: seven digits, written as three digits, a hyphen and four digits, often after the 〒 mark.",
  "semantic_type": "postindex",
  "is_pii": true,
  "categories": [
    "geo",
    "pii",
    "common"
  ],
  "country": [
    "JP"
  ],
  "langs": [
    "ja"
  ],
  "classification": "categorical",
  "regexp": "^\\d{3}-?\\d{4}$",
  "examples": [
    {
      "value": "100-0001",
      "description": "Chiyoda, Tokyo",
      "valid": true
    },
    {
      "value": "530-0001",
      "description": "Umeda, Kita-ku, Osaka",
      "valid": true
    },
    {
      "value": "1000-001",
      "valid": false
    }
  ],
  "mappings": {
    "fta": "POSTAL_CODE.POSTAL_CODE_JP"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Postal_codes_in_Japan"
    },
    {
      "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/JP/geo/jp_postcode.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/JP/geo/jp_postcode.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/JP/geo/jp_postcode.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/jp_postcode",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/jp_postcode.json"
  }
}