From 526a387ab159f7f28e0dc1a6aa01d5ec6d551e65 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Thu, 26 Sep 2019 12:44:45 +0200 Subject: [PATCH] Added documentation updates on static matchers; fixes gh-891 --- docs/src/main/asciidoc/_project-features-contract.adoc | 2 ++ docs/src/main/asciidoc/_project-features-flows.adoc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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()) } }