code: @Override
      public PactDslJsonBody maxArrayLike(Integer size, int numberExamples) {
        if (numberExamples > size) {
          throw new IllegalArgumentException(String.format("Number of example %d is more than the maximum size of %d",
            numberExamples, size));
        }
        matchers.addRule(rootPath + appendArrayIndex(1), matchMax(size));
        PactDslJsonArray parent = new PactDslJsonArray("", "", this, true);
        parent.setNumberExamples(numberExamples);
        return new PactDslJsonBody(".", "", parent);
      }
docs: 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