{
  "id": "binary_number",
  "kind": "pattern",
  "status": "draft",
  "name": "Binary number",
  "doc": "Non-negative integer written in base 2 with the digits 0 and 1, with or without the prefix 0b that programming languages use. A decimal number made of zeros and ones also matches when the prefix is missing, so use the field name or context.",
  "semantic_type": "numeric",
  "is_pii": false,
  "categories": [
    "values",
    "common"
  ],
  "langs": [
    "common"
  ],
  "regexp": "^(?:0[bB])?[01]+$",
  "examples": [
    {
      "value": "0b1011",
      "description": "11 with the prefix",
      "valid": true
    },
    {
      "value": "101010",
      "description": "42 without the prefix",
      "valid": true
    },
    {
      "value": "1021",
      "description": "The digit 2",
      "valid": false
    }
  ],
  "translations": {
    "ru": {
      "name": "Число в двоичной записи"
    }
  },
  "quality": {
    "score": 65,
    "missing": [
      "source link",
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/values/binary_number.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/values/binary_number.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/values/binary_number.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/binary_number",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/binary_number.json"
  }
}