diff --git a/docs/src/main/asciidoc/_project-features-contract.adoc b/docs/src/main/asciidoc/_project-features-contract.adoc index 06dfd2d553..02e05b300c 100644 --- a/docs/src/main/asciidoc/_project-features-contract.adoc +++ b/docs/src/main/asciidoc/_project-features-contract.adoc @@ -808,6 +808,8 @@ See the https://github.com/spring-cloud/spring-cloud-contract/wiki/Spring-Cloud- For YAML, you can use only the `matchers` section. +IMPORTANT: Entries inside the `matchers` must reference existing elements of the payload. For more information check this https://github.com/spring-cloud/spring-cloud-contract/issues/722[issue]. + [[contract-dsl-dynamic-properties-in-body]] ==== Dynamic Properties inside the Body diff --git a/docs/src/main/asciidoc/_project-features-flows.adoc b/docs/src/main/asciidoc/_project-features-flows.adoc index 1f146abc60..1465de3e71 100644 --- a/docs/src/main/asciidoc/_project-features-flows.adoc +++ b/docs/src/main/asciidoc/_project-features-flows.adoc @@ -413,7 +413,7 @@ Contract.make { header('''Content-Type''', '''application/json;charset=UTF-8''') header('''Content-Length''', '''3''') } - testMatchers { + bodyMatchers { jsonPath('$[?(@.foo >= 20)]', byType()) } }