Added documentation updates on static matchers; fixes gh-891
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -413,7 +413,7 @@ Contract.make {
|
||||
header('''Content-Type''', '''application/json;charset=UTF-8''')
|
||||
header('''Content-Length''', '''3''')
|
||||
}
|
||||
testMatchers {
|
||||
bodyMatchers {
|
||||
jsonPath('$[?(@.foo >= 20)]', byType())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user