{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aistoryhub-co/json-schema/aistoryhub-co-chapter-detail-schema.json",
  "title": "ChapterDetail",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aistoryhub-co-chapters-api-openapi.yml#/components/schemas/ChapterDetail",
  "allOf": [
    {
      "$ref": "#/$defs/ChapterSummary"
    },
    {
      "type": "object",
      "properties": {
        "content": {
          "type": "string"
        }
      }
    }
  ],
  "$defs": {
    "ChapterSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "title": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "chapter",
            "scene"
          ]
        },
        "order": {
          "type": "integer"
        },
        "word_count": {
          "type": "integer"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}