{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/frase-io/json-schema/frase-io-template-section-def-schema.json",
  "title": "TemplateSectionDef",
  "description": "A section definition within a template outline.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/frase-io-templates-api-openapi.yml#/components/schemas/TemplateSectionDef",
  "type": "object",
  "required": [
    "heading",
    "level"
  ],
  "properties": {
    "heading": {
      "type": "string",
      "minLength": 1,
      "description": "The section heading text"
    },
    "level": {
      "type": "integer",
      "minimum": 1,
      "maximum": 6,
      "description": "Heading level (1-6)"
    },
    "keyPoints": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "default": [],
      "description": "Key points to cover in this section"
    },
    "suggestedWordCount": {
      "type": "integer",
      "minimum": 0,
      "default": 200,
      "description": "Suggested word count for this section"
    },
    "isRequired": {
      "type": "boolean",
      "default": true,
      "description": "Whether this section is required"
    },
    "generationMode": {
      "type": "string",
      "enum": [
        "ai",
        "manual"
      ],
      "description": "Whether AI generates this section or user provides content"
    }
  }
}