{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/helena-bio/json-schema/helena-bio-discordance-response-schema.json",
  "title": "DiscordanceResponse",
  "description": "Full discordance analysis response.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/helena-bio-discordance-api-openapi.yml#/components/schemas/DiscordanceResponse",
  "properties": {
    "session_id": {
      "type": "string",
      "title": "Session Id"
    },
    "classifier_version_current": {
      "type": "string",
      "title": "Classifier Version Current"
    },
    "classifier_version_data": {
      "type": "string",
      "title": "Classifier Version Data",
      "default": "unknown"
    },
    "total_variants_analyzed": {
      "type": "integer",
      "title": "Total Variants Analyzed"
    },
    "total_discordances": {
      "type": "integer",
      "title": "Total Discordances"
    },
    "summary": {
      "additionalProperties": {
        "type": "integer"
      },
      "type": "object",
      "title": "Summary"
    },
    "format_warnings": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Format Warnings"
    },
    "checks": {
      "additionalProperties": {
        "$ref": "#/$defs/CheckResultResponse"
      },
      "type": "object",
      "title": "Checks"
    }
  },
  "type": "object",
  "required": [
    "session_id",
    "classifier_version_current",
    "total_variants_analyzed",
    "total_discordances"
  ],
  "$defs": {
    "CheckResultResponse": {
      "properties": {
        "total": {
          "type": "integer",
          "title": "Total"
        },
        "critical": {
          "type": "integer",
          "title": "Critical",
          "default": 0
        },
        "high": {
          "type": "integer",
          "title": "High",
          "default": 0
        },
        "medium": {
          "type": "integer",
          "title": "Medium",
          "default": 0
        },
        "low": {
          "type": "integer",
          "title": "Low",
          "default": 0
        },
        "variants": {
          "items": {
            "$ref": "#/$defs/DiscordanceVariantResponse"
          },
          "type": "array",
          "title": "Variants"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error"
        }
      },
      "type": "object",
      "required": [
        "total"
      ],
      "title": "CheckResultResponse",
      "description": "Result of one discordance check."
    },
    "DiscordanceVariantResponse": {
      "properties": {
        "variant_idx": {
          "type": "integer",
          "title": "Variant Idx"
        },
        "gene_symbol": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Gene Symbol"
        },
        "chromosome": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Chromosome"
        },
        "position": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Position"
        },
        "hgvs_protein": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Hgvs Protein"
        },
        "transcript_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Transcript Id"
        },
        "transcript_representations": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Transcript Representations"
        },
        "hgvs_cdna": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Hgvs Cdna"
        },
        "acmg_class": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Acmg Class"
        },
        "acmg_criteria": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Acmg Criteria"
        },
        "severity": {
          "type": "string",
          "title": "Severity"
        },
        "reason": {
          "type": "string",
          "title": "Reason"
        },
        "extra": {
          "additionalProperties": true,
          "type": "object",
          "title": "Extra"
        }
      },
      "type": "object",
      "required": [
        "variant_idx",
        "severity",
        "reason"
      ],
      "title": "DiscordanceVariantResponse",
      "description": "Single discordant variant."
    }
  }
}