You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/01/13 21:17:59 UTC

[camel] branch main updated: CAMEL-17457: remove duplicate path in generated tag (#6743)

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

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


The following commit(s) were added to refs/heads/main by this push:
     new cb3e535  CAMEL-17457: remove duplicate path in generated tag (#6743)
cb3e535 is described below

commit cb3e535fab2720dfcb4d1206433b10cde84fa89d
Author: klease <38...@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) {