vertx / io.vertx.ext.web.api.validation / HTTPRequestValidationHandler / addPathParamWithCustomTypeValidator

addPathParamWithCustomTypeValidator

abstract fun addPathParamWithCustomTypeValidator(parameterName: String, validator: ParameterTypeValidator, allowEmptyValue: Boolean): HTTPRequestValidationHandler

Add a path parameter with a custom type validator. All path params are required. For more informations about how to construct built-in or custom type validator, check out ParameterTypeValidator

Parameters

parameterName - expected name of parameter inside the path

validator - type validator

allowEmptyValue - true if parameter allowEmptyValue. For more informations about allowEmptyValue behaviour: ParameterValidationRule#allowEmptyValue()

Return
this handler