This version is still in development and is not considered stable yet. For the latest stable version, please use spring-cloud-contract 4.1.5!

How Can I Reference Text from File?

In version 1.2.0, we added this ability. You can call a file(…​) method in the DSL and provide a path relative to where the contract lies. If you use YAML, you can use the bodyFromFile property.