Closed schuettec closed 4 years ago
If you try to generate a Pact Consumer for an endpoint that uses a top-level list in the json payload the following workaround must be used
PactDslJsonBody pactDslJsonBody = PactDslJsonArray.arrayMinLike(1); pactDslJsonBody = ConsumerExpects.type(YOUR_BEAN_HERE.class) .build(pactDslJsonBody, YOUR_SAMPLE_OBJECT_HERE);
This library should and will provide a more comfortable way in the future, to solve this.
If you try to generate a Pact Consumer for an endpoint that uses a top-level list in the json payload the following workaround must be used
This library should and will provide a more comfortable way in the future, to solve this.