vertx/src/main/java/eu/internetofus/common/vertx/OpenAPIValidator.java
/**
   * Check that the items value is right.
   *
   * @param future to compose.
   * @param env    validation environment to use.
   *
   * @throws ValidationErrorException if it is not an instance of.
   *
   * @return the future that say if the items value is valid or not.
   */
Check that the items value is right.
@param future to compose.
@param env    validation environment to use.

@throws ValidationErrorException if it is not an instance of.

@return the future that say if the items value is valid or not.
Check that the items value is right . @param future to compose . @param env validation environment to use . @throws ValidationErrorException if it is not an instance of . @return the future that say if the items value is valid or not .
private static Future<SpecificationEnvironment> checkItems(@NotNull final Future<SpecificationEnvironment> future,
      @NotNull final SpecificationEnvironment env) throws ValidationErrorException {
    final var value = env.specification.getValue("items");
    if (value instanceof JsonObject) {
      checkIfTypeIs("items", env, "array");
      return future.compose(chain -> validateSpecification(chain.prefixFor("items"), chain.vertx, (JsonObject) value)
          .map(empty -> chain));
    } else {
      throw env.notValid("items", "Expecting a 'JsonObject' value.");
    }
  }
private static Future < SpecificationEnvironment > checkItems ( @ NotNull final Future < SpecificationEnvironment > future , @ NotNull final SpecificationEnvironment env ) throws ValidationErrorException { final var value = env . specification . getValue ( "items" ) ; if ( value instanceof JsonObject ) { checkIfTypeIs ( "items" , env , "array" ) ; return future . compose ( chain -> validateSpecification ( chain . prefixFor ( "items" ) , chain . vertx , ( JsonObject ) value ) . map ( empty -> chain ) ) ; } else { throw env . notValid ( "items" , "Expecting a 'JsonObject' value." ) ; } }
Check that the items value is right.
Check that the items value is right .