From 117fb10d2197069981d0b4b9ae159391b9ee869a Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Mon, 25 Jul 2016 17:14:35 +0200 Subject: [PATCH] Added WARNING message about GString and Groovy Map --- docs/src/main/asciidoc/verifier/contract.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src/main/asciidoc/verifier/contract.adoc b/docs/src/main/asciidoc/verifier/contract.adoc index 337ef0f2f7..aee46bf945 100644 --- a/docs/src/main/asciidoc/verifier/contract.adoc +++ b/docs/src/main/asciidoc/verifier/contract.adoc @@ -32,6 +32,10 @@ WARNING: The support for the verification of size of JSON arrays is experimental the value of a system property `spring.cloud.contract.verifier.assert.size` equal to `true`. By default this feature is set to `false`. You can also provide the `assertJsonSize` property in the plugin configuration. +WARNING: Due to the fact that JSON structure can have any form it's sometimes impossible to parse it properly when using +the `value(consumer(...), producer(...))` notation when using that in GString. That's why we highly recommend using the +Groovy Map notation. + ==== HTTP Top-Level Elements Following methods can be called in the top-level closure of a contract definition. Request and response are mandatory, priority is optional.