vertx/src/main/java/eu/internetofus/common/vertx/OpenAPIValidator.java
/**
   * Check that the reference to another type is right.
   *
   * @param future to compose.
   * @param env    validation environment to use.
   *
   * @throws ValidationErrorException if it is not an instance of.
   *
   * @return the future to check the 'not'.
   */
Check that the reference to another type is right.
@param future to compose.
@param env    validation environment to use.

@throws ValidationErrorException if it is not an instance of.

@return the future to check the 'not'.
Check that the reference to another type is right . @param future to compose . @param env validation environment to use . @throws ValidationErrorException if it is not an instance of . @return the future to check the ' not ' .
private static Future<SpecificationEnvironment> checkRef(@NotNull final Future<SpecificationEnvironment> future,
      @NotNull final SpecificationEnvironment env) throws ValidationErrorException {
    final var value = env.specification.getValue("$ref");
    if (value instanceof String) {
      final var ref = (String) value;
      return future.compose(chain -> env.obtainSchemaFor(ref).map(any -> chain));
    } else {
      throw env.notValid("$ref", "Expecting a 'string' value.");
    }
  }
private static Future < SpecificationEnvironment > checkRef ( @ NotNull final Future < SpecificationEnvironment > future , @ NotNull final SpecificationEnvironment env ) throws ValidationErrorException { final var value = env . specification . getValue ( "$ref" ) ; if ( value instanceof String ) { final var ref = ( String ) value ; return future . compose ( chain -> env . obtainSchemaFor ( ref ) . map ( any -> chain ) ) ; } else { throw env . notValid ( "$ref" , "Expecting a 'string' value." ) ; } }
Check that the reference to another type is right.
Check that the reference to another type is right .