REAL-WORLD-SCHEMAS-10: Corpus config: route two types, first match wins
What it demonstrates
Section titled “What it demonstrates”A meta-config mapping path globs to per-type contracts so a tree validates against the right contract.
Builds on: REAL-WORLD-SCHEMAS-06: RFC with a rejected-alternatives section
How it’s done
Section titled “How it’s done”The declarative YAML artifact, verbatim — no code required.
mcVersion: 1kind: configcontracts: adr: ./contracts/adr.contract.yaml rfc: ./contracts/rfc.contract.yamlrules: - include: ["docs/adr/**/*.md"] contract: adr - include: ["docs/rfc/**/*.md"] contract: rfcSurfaces exercised
Section titled “Surfaces exercised”declarative kind: config; contracts name map; rules include globsfirst-match-wins routing in the corpus runner (runCorpus)