{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/frase-io/json-schema/frase-io-boilerplate-block-schema.json",
  "title": "BoilerplateBlock",
  "description": "A reusable content block that can be inserted at specific positions in generated content.",
  "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/BoilerplateBlock",
  "type": "object",
  "required": [
    "id",
    "position",
    "content",
    "label"
  ],
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "description": "Unique identifier for the block"
    },
    "position": {
      "type": "string",
      "enum": [
        "before_section",
        "after_section",
        "header",
        "footer"
      ],
      "description": "Where to insert the block"
    },
    "anchorSectionHeading": {
      "type": "string",
      "description": "Section heading to anchor to (for before_section/after_section positions)"
    },
    "content": {
      "type": "string",
      "maxLength": 50000,
      "description": "The boilerplate content (max 50,000 characters)"
    },
    "label": {
      "type": "string",
      "minLength": 1,
      "description": "Display label for the block"
    }
  }
}