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
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:
"values": [ ]
which makes the preview in Pact Broker very much useless 😞
Question
Can the following occurrences of
matchMin(0)
below be replaced withTypeMatcher.INSTANCE
?pact-jvm/consumer/src/main/java/au/com/dius/pact/consumer/dsl/PactDslJsonBody.java
Line 740 in 57a8541
pact-jvm/consumer/src/main/java/au/com/dius/pact/consumer/dsl/PactDslJsonBody.java
Line 769 in 57a8541
pact-jvm/consumer/src/main/java/au/com/dius/pact/consumer/dsl/PactDslJsonBody.java
Line 796 in 57a8541
pact-jvm/consumer/src/main/java/au/com/dius/pact/consumer/dsl/PactDslJsonBody.java
Line 1082 in 57a8541
pact-jvm/consumer/src/main/java/au/com/dius/pact/consumer/dsl/PactDslJsonBody.java
Line 1156 in 57a8541
pact-jvm/consumer/src/main/java/au/com/dius/pact/consumer/dsl/PactDslJsonArray.java
Line 129 in 57a8541
pact-jvm/consumer/src/main/java/au/com/dius/pact/consumer/dsl/PactDslJsonArray.java
Line 148 in 57a8541
pact-jvm/consumer/src/main/java/au/com/dius/pact/consumer/dsl/PactDslJsonArray.java
Line 736 in 57a8541
pact-jvm/consumer/src/main/java/au/com/dius/pact/consumer/dsl/PactDslJsonArray.java
Line 754 in 57a8541
pact-jvm/consumer/src/main/java/au/com/dius/pact/consumer/dsl/PactDslJsonArray.java
Line 955 in 57a8541
pact-jvm/consumer/src/main/java/au/com/dius/pact/consumer/dsl/PactDslJsonArray.java
Line 1034 in 57a8541
Would you accept a PR with such a change?
The text was updated successfully, but these errors were encountered: