{
  "id": "hex_number",
  "kind": "pattern",
  "status": "draft",
  "name": "Hexadecimal number",
  "doc": "Non-negative integer written in base 16 with the prefix 0x, as in programming languages, memory addresses and error codes. The pattern requires the prefix, because without it a value cannot be told from a hash, a colour or an identifier.",
  "semantic_type": "numeric",
  "is_pii": false,
  "categories": [
    "values",
    "common"
  ],
  "langs": [
    "common"
  ],
  "regexp": "^0[xX][0-9A-Fa-f]+$",
  "examples": [
    {
      "value": "0xFF",
      "description": "255",
      "valid": true
    },
    {
      "value": "0x1f4",
      "description": "500",
      "valid": true
    },
    {
      "value": "FF",
      "description": "The prefix is missing",
      "valid": false
    }
  ],
  "translations": {
    "ru": {
      "name": "Число в шестнадцатеричной записи"
    }
  },
  "quality": {
    "score": 65,
    "missing": [
      "source link",
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/values/hex_number.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/values/hex_number.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/values/hex_number.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/hex_number",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/hex_number.json"
  }
}