vertx/src/main/java/eu/internetofus/common/vertx/OpenAPIValidator.java
/**
   * Check the specification field that a value of the specified clazz.
   *
   * @param field name of the field to compare
   * @param clazz expected value for the value.
   * @param env   validation environment to use.
   *
   * @throws ValidationErrorException if it is not an instance of.
   */
Check the specification field that a value of the specified clazz.
@param field name of the field to compare
@param clazz expected value for the value.
@param env   validation environment to use.

@throws ValidationErrorException if it is not an instance of.
Check the specification field that a value of the specified clazz . @param field name of the field to compare @param clazz expected value for the value . @param env validation environment to use . @throws ValidationErrorException if it is not an instance of .
private static void checkInstanceOfFor(final String field, final Class<?> clazz,
      @NotNull final SpecificationEnvironment env) throws ValidationErrorException {
    final var value = env.specification.getValue(field);
    if (!clazz.isInstance(value)) {
      throw env.notValid(field, "Expecting a '" + clazz.getSimpleName() + "' value.");
    }
  }
private static void checkInstanceOfFor ( final String field , final Class < ? > clazz , @ NotNull final SpecificationEnvironment env ) throws ValidationErrorException { final var value = env . specification . getValue ( field ) ; if ( ! clazz . isInstance ( value ) ) { throw env . notValid ( field , "Expecting a '" + clazz . getSimpleName ( ) + "' value." ) ; } }
Check the specification field that a value of the specified clazz.
Check the specification field that a value of the specified clazz .