In reviewing the query DSL, we are only allowing matching on string values or matchers that work on strings.
However, the matching capability actually does extend to checking the types of query parameters, even if their underlying representation in is a string.
This change allows both boolean and number types to be used in matching rules.
In reviewing the query DSL, we are only allowing matching on
string
values or matchers that work on strings.However, the matching capability actually does extend to checking the types of query parameters, even if their underlying representation in is a string.
This change allows both
boolean
andnumber
types to be used in matching rules.In a future change, we should also support the ability to have empty and no values (as per https://github.com/pact-foundation/pact-reference/pull/411).