We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44c0817 commit fa6baa9Copy full SHA for fa6baa9
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