diff --git a/multi/multi__links.html b/multi/multi__links.html index f5821a78a6..b8e41fb657 100644 --- a/multi/multi__links.html +++ b/multi/multi__links.html @@ -1,11 +1,6 @@
-The following links may be helpful when working with Spring Cloud Contract Verifier:
The following links may be helpful when working with Spring Cloud Contract:
Either via the or using the You can read more about this in the Contract DSL section. Calling You can read more about this in the ??? section. Calling If on one side you have passed the regular expression and you haven’t passed the other, then the
other side will get auto-generated. Most often you will use that method together with the To sum it up the contract for the aforementioned scenario would look more or less like this (the regular expression
diff --git a/multi/multi__spring_cloud_contract_stub_runner.html b/multi/multi__spring_cloud_contract_stub_runner.html
index d24754b25c..3fb6c249ea 100644
--- a/multi/multi__spring_cloud_contract_stub_runner.html
+++ b/multi/multi__spring_cloud_contract_stub_runner.html
@@ -67,7 +67,7 @@ versions, which are automatically uploaded after every successful build: "http://repo.spring.io/milestone" }
maven { url "http://repo.spring.io/release" }
}
-$() method$(consumer(...), producer(...))
$(stub(...), test(...))
-$(client(...), server(...))
value() or $() tells Spring Cloud Contract that you will be passing a dynamic value.
+$(client(...), server(...))value() or $() tells Spring Cloud Contract that you will be passing a dynamic value.
Inside the consumer() method you pass the value that should be used on the consumer side (in the generated stub).
Inside the producer() method you pass the value that should be used on the producer side (in the generated test).![[Tip]](images/tip.png)
Tip regex helper method. E.g. consumer(regex('[0-9]{10}')).
The easiest approach would be to centralize the way stubs are kept. For example, you can +
The easiest approach would be to centralize the way stubs are kept. For example, you can keep them as jars in a Maven repository.
![]() | Tip |
|---|---|
For both Maven and Gradle, the setup comes ready to work. However, you can customize it if you want to. |
Maven.
<!-- First disable the default jar setup in the properties section --> diff --git a/multi/multi__spring_cloud_contract_verifier_introduction.html b/multi/multi__spring_cloud_contract_verifier_introduction.html index 0188eb8087..1e3d3e4900 100644 --- a/multi/multi__spring_cloud_contract_verifier_introduction.html +++ b/multi/multi__spring_cloud_contract_verifier_introduction.html @@ -599,8 +599,7 @@ of an identifier or a timestamp, you need not hardcode a value. You want to allo different ranges of values. To enable ranges of values, you can set regular expressions matching those values for the consumer side. You can provide the body by means of either a map notation or String with interpolations. -Consult the docs -for more information. We highly recommend using the map notation!