{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dantelabs/main/json-schema/dantelabs-gene-schema.json",
  "title": "Gene",
  "x-generated": "2026-10-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/dantelabs-api-openapi.json#/components/schemas/Gene",
  "type": "object",
  "required": [
    "url",
    "gene",
    "variants"
  ],
  "properties": {
    "url": {
      "type": "string",
      "format": "uri"
    },
    "gene": {
      "type": "object",
      "description": "HGNC's record for the gene, with the reports, medicines and traits naming it, each with its page's `url`."
    },
    "variants": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer"
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "url"
            ],
            "properties": {
              "url": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    }
  }
}