{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhamma-gift/json-schema/dhamma-gift-segment-schema.json",
  "title": "Segment",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhamma-gift-openapi.json#/components/schemas/Segment",
  "type": "object",
  "properties": {
    "segment": {
      "type": "string"
    },
    "root_text": {
      "type": "string",
      "description": "Пали, root-чтение"
    },
    "variant": {
      "type": "string",
      "description": "Пали, вариантное чтение (если есть)"
    },
    "translations": {
      "type": "object",
      "description": "Ключ вида \"ru_khantibalo\", \"en_sujato\" -> текст перевода",
      "additionalProperties": {
        "type": "string"
      }
    },
    "html": {
      "type": "string"
    },
    "lb_context": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "la_context": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}