You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question regarding matchers specified via the Pact FFI IntegrationJSON format.
Is there a way of combining matchers? From what I understand matchers can be combined in terms of "AND" and "OR" semantics. So it would be cool to specify say a bit of a response or request was both "a string" and also must be not empty. Eg, an "AND" combine of the "type" and "notEmpty" matchers.
Can this be done via the "Integration JSON" method?
The text was updated successfully, but these errors were encountered:
orj
changed the title
Question: Combine Matchers with Integration JSON
Question: Can you combine Matchers with Integration JSON?
Jan 16, 2023
Unfortunately, the Pact FFI Integration JSON format only allows specifying a single matcher. However, as part of the plugins work we developed a matching rule expression language, which does allow multiple matchers. We could update the JSON format to support the expressions.
I have a question regarding matchers specified via the Pact FFI IntegrationJSON format.
Is there a way of combining matchers? From what I understand matchers can be combined in terms of "AND" and "OR" semantics. So it would be cool to specify say a bit of a response or request was both "a string" and also must be not empty. Eg, an "AND" combine of the "type" and "notEmpty" matchers.
Can this be done via the "Integration JSON" method?
The text was updated successfully, but these errors were encountered: