diff --git a/1.0.x/spring-cloud-contract.html b/1.0.x/spring-cloud-contract.html index ab31d142de..a0db523c0a 100644 --- a/1.0.x/spring-cloud-contract.html +++ b/1.0.x/spring-cloud-contract.html @@ -6909,6 +6909,8 @@ That way you can assert on the size of the collection.

valueWithMinMax: [ 1,2,3 ], + valueWithMinEmpty: [], + valueWithMaxEmpty: [], ]) testMatchers { // asserts the jsonpath value against manual regex @@ -6939,6 +6941,14 @@ That way you can assert on the size of the collection.

minOccurrence(1) maxOccurrence(3) }) + jsonPath('$.valueWithMinEmpty', byType { + // results in verification of size of array (min 0) + minOccurrence(0) + }) + jsonPath('$.valueWithMaxEmpty', byType { + // results in verification of size of array (max 0) + maxOccurrence(0) + }) } headers { contentType(applicationJson())