Skip to content

DECLARATIVE-YAML-07: Declare required body sections

Moving to the body plane: a sections grammar listing the H2 headings a document must contain, with ordering and unknown-section policy.

Builds on: DECLARATIVE-YAML-06: Declare array and nested object fields

The declarative YAML artifact, verbatim — no code required.

body:
order: strict # none | recognized-relative | strict
allowUnknown: false
sections:
- section: Summary
- section: Context
- section: Decision
- section: References
  • compileBody -> sections(opts, specs)
  • order/allowUnknown LevelOpts
  • section()