We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Following pact:
def provider = new PactBuilder() provider { serviceConsumer 'Consumer' hasPactWith 'Provider' port 9000 uponReceiving('request') withAttributes( method: 'get', path: PATH) willRespondWith( status: 200) withBody { parent minLike(2, 2) { child(['a']) } } }
will generate a matching rule like:
{ "body": { "$.parent": { "matchers": [{ "match": "type", "min": 2 }] } } }
that will fail on a provider response like:
{ "parent": [{ "child": ["a"] }, { "child": ["a"] }] }
with
java.lang.AssertionError: 0 - $.parent.0.child -> {mismatch=Expected List(a) to have minimum 2, diff=}
Consumer & provider test code: https://github.com/artamonovkirill/pact-issues-examples/tree/master/src/test/groovy/com/github/artamonovkirill/pact/minlike
The text was updated successfully, but these errors were encountered:
fix: min/max type matchers must not apply the limits when cascading #396
2a12a32
This has been fixed in 4.1.25
Sorry, something went wrong.
Thanks 🙌
No branches or pull requests
Following pact:
will generate a matching rule like:
that will fail on a provider response like:
with
Consumer & provider test code: https://github.com/artamonovkirill/pact-issues-examples/tree/master/src/test/groovy/com/github/artamonovkirill/pact/minlike
The text was updated successfully, but these errors were encountered: