{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/minoa-io/json-schema/minoa-io-glossary-term-schema.json",
  "title": "GlossaryTerm",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/minoa-io-openapi.json#/components/schemas/GlossaryTerm",
  "allOf": [
    {
      "$ref": "#/$defs/GlossaryTermSummary"
    },
    {
      "type": "object",
      "required": [
        "content"
      ],
      "properties": {
        "content_format": {
          "type": "string",
          "const": "markdown"
        },
        "content": {
          "type": "string",
          "description": "The full body as Markdown."
        }
      }
    }
  ],
  "$defs": {
    "GlossaryTermSummary": {
      "type": "object",
      "required": [
        "slug",
        "term",
        "title",
        "description",
        "url"
      ],
      "properties": {
        "slug": {
          "type": "string"
        },
        "term": {
          "type": "string",
          "description": "The term as written in prose."
        },
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "related_terms": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "api_url": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}