{
  "id": "octal_number",
  "kind": "pattern",
  "status": "draft",
  "name": "Octal number",
  "doc": "Non-negative integer written in base 8 with the prefix 0o, or with a leading zero as in C and in Unix file modes. Without a prefix an octal number cannot be told from a decimal one, so the pattern requires it.",
  "semantic_type": "numeric",
  "is_pii": false,
  "categories": [
    "values",
    "common"
  ],
  "langs": [
    "common"
  ],
  "regexp": "^0[oO]?[0-7]+$",
  "examples": [
    {
      "value": "0o755",
      "description": "493 with the prefix 0o",
      "valid": true
    },
    {
      "value": "0644",
      "description": "420 with a leading zero, a common file mode",
      "valid": true
    },
    {
      "value": "0o789",
      "description": "The digits 8 and 9",
      "valid": false
    }
  ],
  "translations": {
    "ru": {
      "name": "Число в восьмеричной записи"
    }
  },
  "quality": {
    "score": 65,
    "missing": [
      "source link",
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/values/octal_number.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/values/octal_number.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/values/octal_number.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/octal_number",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/octal_number.json"
  }
}