pact-foundation / pact-specification

Describes the pact format and verification specifications
MIT License
295 stars 28 forks source link

V4: add a boolean matcher #87

Open uglyog opened 3 years ago

uglyog commented 3 years ago

Using type matchers with headers and query parameters is useless, as the values are always strings. See https://github.com/pact-foundation/pact-jvm/issues/1346. There are already specific matchers for numbers and date values from V3.

This adds a boolean matcher that will match any boolean value, or the string values 'true' and 'false'. That way you can write more intuitive DSLs than just using regex macthers.