vertx-web
vertx-web copied to clipboard
How to use the ValidationHandlerBuilder correctly
I'm doing some validation in my web application right now, but I found the document does the validation like this:
ValidationHandlerBuilder
.create(schemaParser)
.pathParameter(Parameters.param("myPathParam", stringSchema()))
.queryParameter(Parameters.optionalParam("myQueryParam", intSchema()));
The class SchemaParser
is deprecated, it there anyone who can tell me how to use the ValidationHandlerBuilder
correctly right now?
cc @pmlopes
marked as deprecated since 4.3.2 as I know. Are there any alternatives?
How will I encourage my team to use this if such a simple use case is so difficult to achieve? I asked at SO as well but the code snippet in the response did not compile.
Anyone has an alternative now? To me looks like the validationhandeler is useless now?