Wiremock: support for generating bodyMatchers for response
Spring Cloud Contract Wiremock supports generating bodyMatchers for request when the contract is created using Spring RestDocs. However, the same is not possible for response (see here).
I think this makes sense when paired with the concept of Spring Cloud Contract in a polyglot world, as the generation of the stubs can be delegated to a docker image, keeping the build file (pom.xml or build.gradle) simpler.
On the other hand, it is also makes sense to relax the strict equality match so that the stub generation configuration can be closer to the real one, without the need of particular profiles that are needed only to ensure the producer replies in a compliant way to the request.
@ThanksForAllTheFish thanks for reporting this. It seems reasonable, but I don't think it's going to be a priority unless we see that there's more interest in this feature in the community, but feel free to file a PR.