vert-x3 / vertx-web

HTTP web applications for Vert.x
Apache License 2.0
1.11k stars 535 forks source link

fix(openapi): change status code for invalid requests to 400 #2577

Closed pk-work closed 9 months ago

pk-work commented 9 months ago

This commit wraps the ValidatorException caught in RouterBuilder inside a HTTPException. This allows the default error handling of RoutingContext to handle the failure properly.