Skip to content

DECLARATIVE-YAML-16: Match by regex instead of a literal

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

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"
  • regex: entry (the alternative to pattern:) in a match spec