{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fanaura-com/json-schema/fanaura-com-legal-document-schema.json",
  "title": "LegalDocument",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fanaura-com-openapi.json#/components/schemas/LegalDocument",
  "type": "object",
  "required": [
    "title",
    "lastUpdated",
    "effectiveDate",
    "sections"
  ],
  "properties": {
    "title": {
      "type": "string"
    },
    "lastUpdated": {
      "type": "string"
    },
    "effectiveDate": {
      "type": "string"
    },
    "introduction": {
      "type": "string"
    },
    "sections": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LegalSection"
      }
    }
  },
  "$defs": {
    "LegalSection": {
      "type": "object",
      "required": [
        "heading"
      ],
      "properties": {
        "heading": {
          "type": "string"
        },
        "content": {
          "type": "string"
        },
        "list": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "orderedList": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "subsections": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LegalSubsection"
          }
        },
        "table": {
          "type": "object",
          "required": [
            "headers",
            "rows"
          ],
          "properties": {
            "headers": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "rows": {
              "type": "array",
              "items": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "LegalSubsection": {
      "type": "object",
      "required": [
        "heading"
      ],
      "properties": {
        "heading": {
          "type": "string"
        },
        "content": {
          "type": "string"
        },
        "list": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "orderedList": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}