{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/theholisticcare/json-schema/theholisticcare-glossary-detail-response-schema.json",
  "title": "GlossaryDetailResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/theholisticcare-glossary-api-openapi.yml#/components/schemas/GlossaryDetailResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/GlossaryTermDetail"
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "$defs": {
    "GlossaryTerm": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Deterministic public ID in the form \"glossary:<slug>\". Never the raw Sanity `_id`."
        },
        "slug": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "glossary_term"
          ]
        },
        "title": {
          "type": "string"
        },
        "pillar": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "etymology": {
          "type": [
            "string",
            "null"
          ]
        },
        "also_known_as": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "GlossaryTermDetail": {
      "allOf": [
        {
          "$ref": "#/$defs/GlossaryTerm"
        },
        {
          "type": "object",
          "properties": {
            "extended_explanation": {
              "description": "A small Portable Text block array (Sanity's rich-text format), not plain HTML or Markdown.",
              "type": [
                "array",
                "null"
              ],
              "items": {
                "type": "object"
              }
            },
            "related_terms": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/RelatedTermRef"
              }
            },
            "related_posts": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/RelatedRef"
              }
            }
          }
        }
      ]
    },
    "Meta": {
      "type": "object",
      "description": "Present on every successful response.",
      "properties": {
        "generated_at": {
          "type": "string",
          "format": "date-time"
        },
        "provider": {
          "type": "string"
        },
        "source": {
          "type": "string"
        }
      }
    },
    "RelatedRef": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      }
    },
    "RelatedTermRef": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      }
    }
  }
}