vertx/src/main/java/eu/internetofus/common/vertx/OpenAPIValidator.java
/**
   * Check the specification field that indicates that a minimum field of a type
   * is valid.
   *
   * @param minName      name of the minimum property to check.
   * @param expectedType for the minimum field.
   * @param env          validation environment to use.
   *
   * @throws ValidationErrorException if it is not an instance of.
   */
Check the specification field that indicates that a minimum field of a type
is valid.

@param minName      name of the minimum property to check.
@param expectedType for the minimum field.
@param env          validation environment to use.

@throws ValidationErrorException if it is not an instance of.
Check the specification field that indicates that a minimum field of a type is valid . @param minName name of the minimum property to check . @param expectedType for the minimum field . @param env validation environment to use . @throws ValidationErrorException if it is not an instance of .
private static void checkMinOf(@NotNull final String minName, @NotNull final String expectedType,
      @NotNull final SpecificationEnvironment env) throws ValidationErrorException {
    final var value = env.specification.getValue(minName);
    if (value instanceof Integer || value instanceof Long) {
      if (((Number) value).longValue() < 0) {
        throw env.notValid(minName, "The value must be equal to or greater than '0'.");
      } else {
        checkIfTypeIs(minName, env, expectedType);
      }
    } else {
      throw env.notValid(minName, "Expecting an 'integer' value.");
    }
  }
private static void checkMinOf ( @ NotNull final String minName , @ NotNull final String expectedType , @ NotNull final SpecificationEnvironment env ) throws ValidationErrorException { final var value = env . specification . getValue ( minName ) ; if ( value instanceof Integer || value instanceof Long ) { if ( ( ( Number ) value ) . longValue ( ) < 0 ) { throw env . notValid ( minName , "The value must be equal to or greater than '0'." ) ; } else { checkIfTypeIs ( minName , env , expectedType ) ; } } else { throw env . notValid ( minName , "Expecting an 'integer' value." ) ; } }
Check the specification field that indicates that a minimum field of a type
 is valid.
Check the specification field that indicates that a minimum field of a type is valid .