{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/unicum-gg/json-schema/unicum-gg-glossary-search-response-schema.json",
  "title": "GlossarySearchResponse",
  "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/GlossarySearchResponse",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GlossaryTermSummary"
      }
    }
  },
  "required": [
    "results"
  ],
  "$defs": {
    "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."
    },
    "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"
      ]
    }
  }
}