{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/helena-bio/json-schema/helena-bio-create-override-request-schema.json",
  "title": "CreateOverrideRequest",
  "description": "Request to reclassify a variant.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/helena-bio-overrides-api-openapi.yml#/components/schemas/CreateOverrideRequest",
  "properties": {
    "variant_idx": {
      "type": "integer",
      "title": "Variant Idx",
      "description": "Variant index to reclassify"
    },
    "new_class": {
      "type": "string",
      "pattern": "^(P|LP|VUS|LB|B)$",
      "title": "New Class",
      "description": "New ACMG classification"
    },
    "pipeline_class": {
      "type": "string",
      "pattern": "^(P|LP|VUS|LB|B)$",
      "title": "Pipeline Class",
      "description": "ACMG class currently assigned by the pipeline (read from variants list). Stored as acmg_class_original on first override; ignored on subsequent overrides (original is preserved per first-override invariant)."
    },
    "reason": {
      "type": "string",
      "maxLength": 5000,
      "minLength": 1,
      "title": "Reason",
      "description": "Clinical justification"
    }
  },
  "type": "object",
  "required": [
    "variant_idx",
    "new_class",
    "pipeline_class",
    "reason"
  ]
}