JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
Apart from the obvious (and unintuitive) discrepancy between PactDSL and GroovyDSL, the main drawback is that Pact Broker does not render the content of such eachLikes when it renders them.
That is, instead of:
"values": [
"example"
]
Pact broker renders:
"values": [
]
which makes the preview in Pact Broker very much useless 😞
Question
Can the following occurrences of matchMin(0) below be replaced with TypeMatcher.INSTANCE?
Current status
Right now:
"min": 0
entry on calls toeach*Like
methods (source)Example:
new PactDslJsonBody().eachLike("values", stringType("example"))
generates{ values eachLike(string('example')) }
generatesConsequences
Apart from the obvious (and unintuitive) discrepancy between PactDSL and GroovyDSL, the main drawback is that Pact Broker does not render the content of such
eachLike
s when it renders them.That is, instead of:
Pact broker renders:
which makes the preview in Pact Broker very much useless 😞
Question
Can the following occurrences of
matchMin(0)
below be replaced withTypeMatcher.INSTANCE
?Would you accept a PR with such a change?