vertx/src/main/java/eu/internetofus/common/vertx/OpenAPIValidator.java
/**
   * Check the specification field that indicates that a number is multiple of
   * another.
   *
   * @param env validation environment to use.
   *
   * @throws ValidationErrorException if it is not an instance of.
   */
Check the specification field that indicates that a number is multiple of
another.

@param env validation environment to use.

@throws ValidationErrorException if it is not an instance of.
Check the specification field that indicates that a number is multiple of another . @param env validation environment to use . @throws ValidationErrorException if it is not an instance of .
private static void checkMultipleOf(@NotNull final SpecificationEnvironment env) throws ValidationErrorException {
    final var value = env.specification.getValue("multipleOf");
    if (value instanceof Number) {
      final var multipleOf = (Number) value;
      if (Double.compare(multipleOf.doubleValue(), 0.0) <= 0) {
        throw env.notValid("multipleOf", "The value must be greater than 0.");
      } else {
        checkIfTypeIsOneOf("multipleOf", env, "integer", "number");
      }
    } else {
      throw env.notValid("multipleOf", "Expecting a 'number' value.");
    }
  }
private static void checkMultipleOf ( @ NotNull final SpecificationEnvironment env ) throws ValidationErrorException { final var value = env . specification . getValue ( "multipleOf" ) ; if ( value instanceof Number ) { final var multipleOf = ( Number ) value ; if ( Double . compare ( multipleOf . doubleValue ( ) , 0.0 ) <= 0 ) { throw env . notValid ( "multipleOf" , "The value must be greater than 0." ) ; } else { checkIfTypeIsOneOf ( "multipleOf" , env , "integer" , "number" ) ; } } else { throw env . notValid ( "multipleOf" , "Expecting a 'number' value." ) ; } }
Check the specification field that indicates that a number is multiple of
 another.
Check the specification field that indicates that a number is multiple of another .