/** * Array of values with a maximum size that are not objects where each item must match the provided example * @param size maximum size of the array * @param value Value to use to match each item */ public PactDslJsonArray maxArrayLike(Integer size, PactDslJsonRootValue value) { return maxArrayLike(size, value, 1); }
/** * Element that is an array with a maximum size where each item must match the following example * @param size maximum size of the array */ @Override public PactDslJsonBody maxArrayLike(Integer size) { return maxArrayLike(size, 1); }
/** * Element that is an array with a maximum size where each item must match the following example * @param size maximum size of the array */ @Override public PactDslJsonBody maxArrayLike(Integer size) { return maxArrayLike(size, 1); }
/** * Array of values with a maximum size that are not objects where each item must match the provided example * @param size maximum size of the array * @param value Value to use to match each item */ public PactDslJsonArray maxArrayLike(Integer size, PactDslJsonRootValue value) { return maxArrayLike(size, value, 1); }
/** * Element that is an array with a maximum size where each item must match the following example * * @param size maximum size of the array */ public LambdaDslJsonArray maxArrayLike(Integer size, Consumer<LambdaDslJsonBody> nestedObject) { final PactDslJsonBody arrayLike = pactArray.maxArrayLike(size); final LambdaDslJsonBody dslBody = new LambdaDslJsonBody(arrayLike); nestedObject.accept(dslBody); arrayLike.closeArray(); return this; }
/** * Element that is an array with a maximum size where each item must match the following example * * @param size maximum size of the array * @param numberExamples number of examples to generate */ public LambdaDslJsonArray maxArrayLike(Integer size, int numberExamples, Consumer<LambdaDslJsonBody> nestedObject) { final PactDslJsonBody arrayLike = pactArray.maxArrayLike(size, numberExamples); final LambdaDslJsonBody dslBody = new LambdaDslJsonBody(arrayLike); nestedObject.accept(dslBody); arrayLike.closeArray(); return this; }