Added documentation updates on static matchers; fixes gh-891

This commit is contained in:
Marcin Grzejszczak
2019-09-26 12:44:45 +02:00
parent a2afe6a09b
commit 526a387ab1
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -413,7 +413,7 @@ Contract.make {
header('''Content-Type''', '''application/json;charset=UTF-8''')
header('''Content-Length''', '''3''')
}
testMatchers {
bodyMatchers {
jsonPath('$[?(@.foo >= 20)]', byType())
}
}