{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/greenlitbooks-com/json-schema/greenlitbooks-com-term-schema.json",
  "title": "Term",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/greenlitbooks-com-openapi.json#/components/schemas/Term",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string"
    },
    "term": {
      "type": "string"
    },
    "aliases": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "kind": {
      "type": "string",
      "enum": [
        "coined",
        "operational"
      ],
      "description": "coined: the house minted the phrase. operational: an industry term whose AI-agent definition the home book supplies."
    },
    "fieldOfOrigin": {
      "type": [
        "string",
        "null"
      ]
    },
    "definition": {
      "type": "string",
      "description": "The book's own sentence, verbatim."
    },
    "definedIn": {
      "type": "object",
      "properties": {
        "book": {
          "$ref": "#/$defs/BookLink"
        },
        "chapter": {
          "type": "string"
        },
        "source": {
          "type": "string",
          "enum": [
            "bible",
            "manuscript"
          ]
        }
      }
    },
    "usedInBooks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BookLink"
      }
    },
    "checkable": {
      "type": "object",
      "properties": {
        "claim": {
          "type": "string"
        },
        "howToCheck": {
          "type": "string"
        }
      }
    },
    "faq": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "q": {
            "type": "string"
          },
          "a": {
            "type": "string"
          }
        }
      }
    },
    "relatedTerms": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "term": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "apiUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "markdownUrl": {
      "type": "string",
      "format": "uri"
    },
    "apiUrl": {
      "type": "string",
      "format": "uri"
    },
    "lastVerified": {
      "type": "string",
      "format": "date"
    },
    "links": {
      "$ref": "#/$defs/HandoffLinks"
    }
  },
  "$defs": {
    "BookLink": {
      "type": "object",
      "description": "Compact pointer to a book, with its reading-order position in its series.",
      "properties": {
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "position": {
          "type": "integer",
          "description": "1-based reading order within the series."
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "apiUrl": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "HandoffLinks": {
      "type": "object",
      "description": "Where to send a reader next. freeChapter is the complete chapter one, free; Amazon links are bare /dp/ URLs; citeAs is a ready citation line.",
      "properties": {
        "glossary": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "glossaryMarkdown": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "concept": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "conceptMarkdown": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "book": {
          "type": "string",
          "format": "uri"
        },
        "bookApi": {
          "type": "string",
          "format": "uri"
        },
        "bookMarkdown": {
          "type": "string",
          "format": "uri"
        },
        "freeChapter": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "freeChapterMarkdown": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "amazonKindle": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "amazonPaperback": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "kindleUnlimited": {
          "type": "boolean"
        },
        "citeAs": {
          "type": "string"
        }
      }
    }
  }
}