This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-3.14.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.14.x by this push:
     new 02c1f80  CAMEL-17457: remove duplicate path in generated tag (#6743)
02c1f80 is described below

commit 02c1f80134f8bf5f614bf8769d2af452ce073bad
Author: klease <38634989+kle...@users.noreply.github.com>
AuthorDate: Thu Jan 13 22:17:20 2022 +0100

    CAMEL-17457: remove duplicate path in generated tag (#6743)
---
 .../src/main/java/org/apache/camel/openapi/RestOpenApiReader.java      | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/components/camel-openapi-java/src/main/java/org/apache/camel/openapi/RestOpenApiReader.java
 
b/components/camel-openapi-java/src/main/java/org/apache/camel/openapi/RestOpenApiReader.java
index 4fca668..c734229 100644
--- 
a/components/camel-openapi-java/src/main/java/org/apache/camel/openapi/RestOpenApiReader.java
+++ 
b/components/camel-openapi-java/src/main/java/org/apache/camel/openapi/RestOpenApiReader.java
@@ -197,8 +197,7 @@ public class RestOpenApiReader {
         verbs.sort(new VerbOrdering(camelContext));
 
         // we need to group the operations within the same tag, so use the 
path as default if not configured
-        String opPath = OpenApiHelper.buildUrl(buildBasePath(camelContext, 
rest), getValue(camelContext, rest.getPath()));
-        String pathAsTag = getValue(camelContext, rest.getTag() != null ? 
rest.getTag() : opPath);
+        String pathAsTag = getValue(camelContext, rest.getTag() != null ? 
rest.getTag() : rest.getPath());
         if (openApi instanceof Oas20Document) {
             parseOas20(camelContext, (Oas20Document) openApi, rest, pathAsTag);
         } else if (openApi instanceof Oas30Document) {

Reply via email to