REAL-WORLD-SCHEMAS-02: Type the ADR frontmatter
What it demonstrates
Section titled “What it demonstrates”Layering frontmatter typing onto the ADR: an enum status and a format-checked required date.
Builds on: REAL-WORLD-SCHEMAS-01: ADR: require the four sections in order
How it’s done
Section titled “How it’s done”The declarative YAML artifact, verbatim — no code required.
frontmatter: strict: true fields: status: enum: [proposed, accepted, superseded, deprecated] date: type: string format: date# (body: the strict Status/Context/Decision/Consequences sections from 01)Surfaces exercised
Section titled “Surfaces exercised”declarative frontmatter.fields: enum -> frontmatter/enum; format: date -> frontmatter/typestrict: true rejects unknown keys -> frontmatter/unknown-key (z.strictObject under the hood)