DECLARATIVE-YAML-06: Declare array and nested object fields
What it demonstrates
Section titled “What it demonstrates”Composite frontmatter — an array with an element schema (of) and a nested object with its own fields.
Builds on: DECLARATIVE-YAML-05: Toggle strict vs open frontmatter
How it’s done
Section titled “How it’s done”The declarative YAML artifact, verbatim — no code required.
frontmatter: fields: tags: type: array of: { type: string } min: 1 owner: type: object strict: true fields: name: { type: string } email: { type: string, format: email }Surfaces exercised
Section titled “Surfaces exercised”typed() array -> z.array(compileSchema(of)) with .minobject -> compileObjectSchema(fields, strict)