vertx-web icon indicating copy to clipboard operation
vertx-web copied to clipboard

How to use the ValidationHandlerBuilder correctly

Open KamenRiderKuuga opened this issue 2 years ago • 4 comments

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?

KamenRiderKuuga avatar Feb 24 '23 17:02 KamenRiderKuuga

cc @pmlopes

tsegismont avatar Feb 27 '23 10:02 tsegismont

marked as deprecated since 4.3.2 as I know. Are there any alternatives?

ifindya avatar May 06 '23 09:05 ifindya

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.

bhargodevarya avatar Mar 07 '24 17:03 bhargodevarya

Anyone has an alternative now? To me looks like the validationhandeler is useless now?

Tientjie-san avatar Apr 08 '24 09:04 Tientjie-san