vertx/src/main/java/eu/internetofus/common/vertx/OpenAPIValidator.java
/**
   * Validate that the value is a valid integer.
   *
   * @param promise     to inform of the validation.
   * @param environment to use for the validation.
   *
   * @return the future that says if the integer is valid or not.
   */
Validate that the value is a valid integer.
@param promise     to inform of the validation.
@param environment to use for the validation.

@return the future that says if the integer is valid or not.
Validate that the value is a valid integer . @param promise to inform of the validation . @param environment to use for the validation . @return the future that says if the integer is valid or not .
static Future<ValueEnvironment> validateIntegerValue(@NotNull final Promise<ValueEnvironment> promise,
      @NotNull final ValueEnvironment environment) {
    if (environment.value instanceof Integer || environment.value instanceof Long) {
      return validateNumberValue(promise, environment);
    } else {
      promise.fail(environment.notValid("Expecting an 'integer' value."));
      return promise.future();
    }
  }
static Future < ValueEnvironment > validateIntegerValue ( @ NotNull final Promise < ValueEnvironment > promise , @ NotNull final ValueEnvironment environment ) { if ( environment . value instanceof Integer || environment . value instanceof Long ) { return validateNumberValue ( promise , environment ) ; } else { promise . fail ( environment . notValid ( "Expecting an 'integer' value." ) ) ; return promise . future ( ) ; } }
Validate that the value is a valid integer.
Validate that the value is a valid integer .