[ 
https://issues.apache.org/jira/browse/CAMEL-15786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17224423#comment-17224423
 ] 

Claus Ibsen commented on CAMEL-15786:
-------------------------------------

If you have the time then you may want to look in the source code if that 
feature is missing and then look in the -swagger component how it does it, and 
copy that over to openapi and submit a PR. We love contributions

> 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