Skip to content

DECLARATIVE-YAML-09: Declare required block kinds inside a section

Content leaves — requiring a typed table, a checkbox list, fenced code, or a word cap within a section.

Builds on: DECLARATIVE-YAML-08: Optional, alias, oneOf and gap section nodes

The declarative YAML artifact, verbatim — no code required.

body:
sections:
- section: Summary
anchor: summary
content: { maxWords: 120 }
- section: Files to touch
content:
table:
columns: [Location, Kind, Change]
cells: { Kind: { enum: [new, modify, delete] } }
- section: Acceptance criteria
content: { list: { everyItem: checkbox } }
  • compileContent/compileLeaf: maxWords()
  • table({columns,cells})
  • list({everyItem})
  • cells reuse compileSchema