{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-code-range-schema.json",
  "title": "CodeRange",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-reference-code-api-openapi.yml#/components/schemas/CodeRange",
  "type": "object",
  "properties": {
    "headers": {
      "type": "string"
    },
    "rangeId": {
      "type": "integer",
      "format": "int32"
    },
    "rangeItem": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RangeItem"
      }
    },
    "link": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Link"
      }
    }
  },
  "$defs": {
    "Link": {
      "type": "object",
      "properties": {
        "href": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "RangeItem": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "tabulardata": {
          "$ref": "#/$defs/Tabulardata"
        },
        "href": {
          "type": "string"
        }
      }
    },
    "Tabulardata": {
      "type": "object",
      "properties": {
        "dataLine": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}