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

@return the future that says if the boolean is valid or not.
Validate that the value is a valid boolean . @param promise to inform of the validation . @param environment to use for the validation . @return the future that says if the boolean is valid or not .
static Future<ValueEnvironment> validateBooleanValue(@NotNull final Promise<ValueEnvironment> promise,
      @NotNull final ValueEnvironment environment) {
    if (environment.value instanceof Boolean) {
      environment.match = true;
    } else {
      promise.fail(environment.notValid("Expecting a 'boolean' value."));
    }
    return promise.future();
  }
static Future < ValueEnvironment > validateBooleanValue ( @ NotNull final Promise < ValueEnvironment > promise , @ NotNull final ValueEnvironment environment ) { if ( environment . value instanceof Boolean ) { environment . match = true ; } else { promise . fail ( environment . notValid ( "Expecting a 'boolean' value." ) ) ; } return promise . future ( ) ; }
Validate that the value is a valid boolean.
Validate that the value is a valid boolean .