{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/helena-bio/json-schema/helena-bio-browser-reference-response-schema.json",
  "title": "BrowserReferenceResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/helena-bio-browser-api-openapi.yml#/components/schemas/BrowserReferenceResponse",
  "properties": {
    "chrom": {
      "type": "string",
      "title": "Chrom"
    },
    "start": {
      "type": "integer",
      "title": "Start"
    },
    "end": {
      "type": "integer",
      "title": "End"
    },
    "sequence": {
      "type": "string",
      "title": "Sequence"
    },
    "transcript": {
      "anyOf": [
        {
          "$ref": "#/$defs/BrowserReferenceTranscriptOut"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "chrom",
    "start",
    "end",
    "sequence"
  ],
  "$defs": {
    "BrowserReferenceCodonOut": {
      "properties": {
        "bases": {
          "type": "string",
          "title": "Bases"
        },
        "aminoAcid": {
          "type": "string",
          "title": "Aminoacid"
        },
        "proteinPosition": {
          "type": "integer",
          "title": "Proteinposition"
        },
        "genomicPositions": {
          "items": {
            "type": "integer"
          },
          "type": "array",
          "title": "Genomicpositions"
        }
      },
      "type": "object",
      "required": [
        "bases",
        "aminoAcid",
        "proteinPosition",
        "genomicPositions"
      ],
      "title": "BrowserReferenceCodonOut"
    },
    "BrowserReferenceTranscriptOut": {
      "properties": {
        "geneSymbol": {
          "type": "string",
          "title": "Genesymbol"
        },
        "transcriptId": {
          "type": "string",
          "title": "Transcriptid"
        },
        "proteinId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Proteinid"
        },
        "strand": {
          "type": "string",
          "title": "Strand"
        },
        "exons": {
          "items": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "type": "array",
          "title": "Exons"
        },
        "cds": {
          "items": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "type": "array",
          "title": "Cds"
        },
        "codons": {
          "items": {
            "$ref": "#/$defs/BrowserReferenceCodonOut"
          },
          "type": "array",
          "title": "Codons"
        }
      },
      "type": "object",
      "required": [
        "geneSymbol",
        "transcriptId",
        "strand"
      ],
      "title": "BrowserReferenceTranscriptOut"
    }
  }
}