davsclaus commented on code in PR #16220:
URL: https://github.com/apache/camel/pull/16220#discussion_r1836516689


##########
components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenApiProcessor.java:
##########
@@ -109,6 +109,14 @@ public boolean process(Exchange exchange, AsyncCallback 
callback) {
         if (m instanceof RestOpenApiConsumerPath rcp) {
             Operation o = rcp.getConsumer();
 
+            String consumerPath = rcp.getConsumerPath();
+
+            //if uri is not starting with slash then remove the slash in the 
consumerPath from the openApi spec
+            if(consumerPath.startsWith("/") && !uri.startsWith("/"))

Review Comment:
   And use same code style as elsewhere, ie curly bracket on same line etc



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to