From 62fe5a45f574dc8d9fe2801475e70939da2a2704 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Fri, 3 Feb 2017 10:03:28 +0000 Subject: [PATCH] Sync docs from 1.0.x to gh-pages --- 1.0.x/spring-cloud-contract.html | 10 ++++++++++ 1 file changed, 10 insertions(+) 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())