We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 44c0817 + fa6baa9 commit cb6032aCopy full SHA for cb6032a
1 file changed
src/main/java/in/erail/route/OpenAPI3RouteBuilder.java
@@ -247,6 +247,13 @@ public Router getRouter(Router pRouter) {
247
process(routingContext, service.getServiceUniqueId());
248
}
249
});
250
+
251
+ apiFactory.addFailureHandlerByOperationId(service.getOperationId(),(routingContext) -> {
252
+ routingContext
253
+ .response()
254
+ .setStatusCode(400)
255
+ .end(routingContext.failure().toString());
256
+ });
257
258
259
0 commit comments