vertx / io.vertx.reactivex.ext.web.api.validation / ParameterValidationRule / allowEmptyValue

allowEmptyValue

open fun allowEmptyValue(): Boolean

allowEmptyValue is used in query, header, cookie and form parameters. This is its behaviour:

  1. During validation, the ValidationHandler check if there's a parameter with combination of location and name as defined in this rule
  2. If it not exists, It will check allowEmptyValue and if there's a default value set inside ParameterTypeValidator:
  3. If the parameter exists, It checks if parameter is null or empty string:

Return
value of allowEmptyValue