DECLARATIVE-YAML-16: Match by regex instead of a literal
What it demonstrates
Section titled “What it demonstrates”A regex: entry matches a pattern (here either of two markers) rather than a fixed substring.
Builds on: DECLARATIVE-YAML-14: Require a phrase in a section
How it’s done
Section titled “How it’s done”The declarative YAML artifact, verbatim — no code required.
body: sections: - section: Output contract requires: - regex: "LEASE-(CONFLICT|MISSING) ref=" # matches either marker note: "lease failure markers"Surfaces exercised
Section titled “Surfaces exercised”regex: entry (the alternative to pattern:) in a match spec