From 56c531ab796ba99e838329ef8b426950fa0c2489 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Thu, 27 Apr 2023 15:11:24 +0200 Subject: [PATCH] Better documented multipart; fixes gh-1886 --- docs/src/main/asciidoc/_project-features-contract.adoc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/src/main/asciidoc/_project-features-contract.adoc b/docs/src/main/asciidoc/_project-features-contract.adoc index ee872bdbe0..536d13ef65 100644 --- a/docs/src/main/asciidoc/_project-features-contract.adoc +++ b/docs/src/main/asciidoc/_project-features-contract.adoc @@ -774,6 +774,11 @@ define the parameter name with `paramName`. Then you can pass the parametrization of either `fileName` or `fileContent` in a `regex` or in a `predefined` regular expression. +IMPORTANT: For the `named(...)` section you always have to add a pair of +`value(producer(...), consumer(...))` calls. Just setting DSL properties such +as just `value(producer(...))` or just `file(...)` will not work. +Check this https://github.com/spring-cloud/spring-cloud-contract/issues/1886[issue] for more information. + From the contract in the preceding example, the generated test and stub look as follows: ====