{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/helena-bio/json-schema/helena-bio-create-note-request-schema.json",
  "title": "CreateNoteRequest",
  "description": "Request to create a case or variant note.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/helena-bio-notes-api-openapi.yml#/components/schemas/CreateNoteRequest",
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 5000,
      "minLength": 1,
      "title": "Text",
      "description": "Note content"
    },
    "variant_idx": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Variant Idx",
      "description": "Variant index (null = case-level note)"
    }
  },
  "type": "object",
  "required": [
    "text"
  ]
}