pact-jvm matching response body by only types
See original GitHub issueBy generating the contract with javascript, we are able to only verify the response body by types, not literally by value
"matchingRules":{
"$.body":{
"match":"type"
}
}
}
Are we able to achieve this by pact-jvm-consumer-junit_2.12?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Matching requests and responses with Pact-JVM | Pact Docs
JSON body matching rules. Bodies consist of Objects (Maps of Key-Value pairs), Arrays (Lists) and values (Strings, Numbers, true, false, ...
Read more >Matching against empty body · Issue #85 · pact ... - GitHub
It is treating a missing body (i.e. no body attribute in the pact file) as different as an empty body. This should not...
Read more >PACT jvm matching rules are being ignored when running test
Just change the content type and then the body will be parsed as a JSON document and the matchers will be applied to...
Read more >PACT JVM Example | ArXmanS
By the time this example is created, PACT JVM Junit provides 3 ways to write the ... whether we check the response body's...
Read more >question on array matching in pact-jvm - Google Groups
Hi Natasha,. The eachLike matcher is assuming there is an object at the root of the body. Can you raise an issue for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh yes upon re-reading it I think you are right. I haven’t had my coffee yet 😃
BTW,
pact-jvm-consumer-junit_2.12
is a old version. The latest versions have been renamed toau.com.dius:pact-jvm-consumer-junit:4.0.10
for 4.0.x andau.com.dius.pact.consumer:junit:4.1.11
for 4.1.x onwards