For the latest stable version, please use spring-cloud-contract 4.2.0! |
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.