[ 
https://issues.apache.org/jira/browse/CAMEL-15786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tomek updated CAMEL-15786:
--------------------------
    Description: 
According to [https://camel.apache.org/manual/latest/rest-dsl.html] by default 
the apiVendorExtension option should be set to false. But even when I set it 
manually to false, the produced JSON for OpenAPI still contains the x- fields 
like "x-camelContextId", "x-routeId" etc.
 I've tried to set this option both in Java using 
restConfiguration().apiVendorExtension(false) and in application.yml file of my 
Spring Boot application:
{code:java}
camel:
  rest:
    api-vendor-extension: false{code}
I've checked it on two versions of Camel (3.4.1, 3.6.0), both with the same 
result.

Part of my pom.xml file:
{code:java}
<dependency>
    <groupId>org.apache.camel.springboot</groupId>
    <artifactId>camel-rest-starter</artifactId>
    <version>3.4.1</version>
</dependency>
<dependency>
    <groupId>org.apache.camel.springboot</groupId>
    <artifactId>camel-openapi-java-starter</artifactId>
    <version>3.4.1</version>
</dependency>
{code}
Could you please check it? I don't want to expose internal implementation 
details via OpenAPI JSON file.

  was:
According to [https://camel.apache.org/manual/latest/rest-dsl.html] by default 
the apiVendorExtension option should be set to false. But even when I set it 
manually to false, the produced JSON for OpenAPI still contains the x- fields 
like "x-camelContextId", "x-routeId" etc.
 I've tried to set this option both in Java using 
restConfiguration().apiVendorExtension(false) and in application.yml file of my 
Spring Boot application:
{code:java}
camel:
  rest:
    api-vendor-extension: false{code}
I've checked it on two versions of Camel (3.4.1, 3.6.0), both with the same 
result.

Part of my pom.xml file:
{code:java}
<dependency>
    <groupId>org.apache.camel.springboot</groupId>
    <artifactId>camel-rest-starter</artifactId>
    <version>3.4.1</version>
</dependency>
<dependency>
    <groupId>org.apache.camel.springboot</groupId>
    <artifactId>camel-openapi-java-starter</artifactId>
    <version>3.4.1</version>
</dependency>
{code}
Could you please check it? I don't want to expose internal development details 
via OpenAPI JSON file.


> Camel OpenAPI ignores apiVendorExtension option for REST binding
> ----------------------------------------------------------------
>
>                 Key: CAMEL-15786
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15786
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-openapi-java
>    Affects Versions: 3.4.1, 3.6.0
>            Reporter: Tomek
>            Priority: Major
>
> According to [https://camel.apache.org/manual/latest/rest-dsl.html] by 
> default the apiVendorExtension option should be set to false. But even when I 
> set it manually to false, the produced JSON for OpenAPI still contains the x- 
> fields like "x-camelContextId", "x-routeId" etc.
>  I've tried to set this option both in Java using 
> restConfiguration().apiVendorExtension(false) and in application.yml file of 
> my Spring Boot application:
> {code:java}
> camel:
>   rest:
>     api-vendor-extension: false{code}
> I've checked it on two versions of Camel (3.4.1, 3.6.0), both with the same 
> result.
> Part of my pom.xml file:
> {code:java}
> <dependency>
>     <groupId>org.apache.camel.springboot</groupId>
>     <artifactId>camel-rest-starter</artifactId>
>     <version>3.4.1</version>
> </dependency>
> <dependency>
>     <groupId>org.apache.camel.springboot</groupId>
>     <artifactId>camel-openapi-java-starter</artifactId>
>     <version>3.4.1</version>
> </dependency>
> {code}
> Could you please check it? I don't want to expose internal implementation 
> details via OpenAPI JSON file.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to