{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/unicum-gg/json-schema/unicum-gg-glossary-term-response-schema.json",
  "title": "GlossaryTermResponse",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/unicum-gg-glossary-api-openapi.yml#/components/schemas/GlossaryTermResponse",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string"
    },
    "term": {
      "type": "string"
    },
    "aliases": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "category": {
      "$ref": "#/$defs/glossaryCategoryField"
    },
    "short": {
      "type": "string"
    },
    "body": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GlossaryBlock"
      }
    },
    "related": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GlossaryTermSummary"
      }
    },
    "links": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/glossaryLink"
      }
    }
  },
  "required": [
    "slug",
    "term",
    "aliases",
    "category",
    "short",
    "body",
    "related",
    "links"
  ],
  "$defs": {
    "GlossaryBlock": {
      "oneOf": [
        {
          "$ref": "#/$defs/paragraphBlock"
        },
        {
          "$ref": "#/$defs/listBlock"
        },
        {
          "$ref": "#/$defs/formulaBlock"
        }
      ],
      "description": "One block of a definition: a paragraph, a list or a formula."
    },
    "GlossaryTermSummary": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "term": {
          "type": "string"
        },
        "aliases": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Other spellings the term is known and searched by."
        },
        "category": {
          "$ref": "#/$defs/glossaryCategoryField"
        },
        "short": {
          "type": "string",
          "description": "One-sentence definition, complete on its own."
        }
      },
      "required": [
        "slug",
        "term",
        "aliases",
        "category",
        "short"
      ],
      "description": "A glossary term without its body."
    },
    "formulaBlock": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string"
        },
        "expression": {
          "type": "string"
        },
        "note": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "expression"
      ]
    },
    "glossaryCategoryField": {
      "type": "string",
      "description": "Section of the glossary a term belongs to.",
      "enum": [
        "vehicles",
        "gunnery",
        "armor",
        "mobility",
        "vision",
        "crew",
        "progression",
        "economy",
        "ratings",
        "statistics",
        "modes",
        "tactics",
        "slang"
      ]
    },
    "glossaryLink": {
      "type": "object",
      "properties": {
        "target": {
          "type": "string",
          "description": "Which page of the site the link leads to.",
          "enum": [
            "top-players",
            "top-clans",
            "tanks",
            "tank-economics",
            "marks-of-excellence",
            "marks-of-mastery",
            "tank-changes",
            "maps",
            "stronghold",
            "advances",
            "onslaught",
            "rampage",
            "coverage",
            "docs",
            "tank",
            "map"
          ]
        },
        "slug": {
          "type": "string"
        },
        "label": {
          "type": "string"
        }
      },
      "required": [
        "target"
      ]
    },
    "glossarySegment": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        }
      },
      "required": [
        "text"
      ]
    },
    "listBlock": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string"
        },
        "items": {
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/glossarySegment"
            }
          }
        }
      },
      "required": [
        "kind",
        "items"
      ]
    },
    "paragraphBlock": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string"
        },
        "segments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/glossarySegment"
          }
        }
      },
      "required": [
        "kind",
        "segments"
      ]
    }
  }
}