{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/helena-bio/json-schema/helena-bio-disease-context-request-schema.json",
  "title": "DiseaseContextRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/helena-bio-internal-api-openapi.yml#/components/schemas/DiseaseContextRequest",
  "properties": {
    "rows": {
      "items": {
        "$ref": "#/$defs/DiseaseContextRow"
      },
      "type": "array",
      "maxItems": 100,
      "title": "Rows"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "rows"
  ],
  "$defs": {
    "DiseaseContextRow": {
      "properties": {
        "gene_symbol": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 64,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Gene Symbol"
        },
        "genotype": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 32
            },
            {
              "type": "null"
            }
          ],
          "title": "Genotype"
        },
        "chromosome": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 16
            },
            {
              "type": "null"
            }
          ],
          "title": "Chromosome"
        },
        "phenotype_terms": {
          "items": {
            "type": "string",
            "maxLength": 10,
            "pattern": "^HP:[0-9]{7}$"
          },
          "type": "array",
          "maxItems": 100,
          "title": "Phenotype Terms"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "DiseaseContextRow"
    }
  }
}