Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.4.1, 3.6.0
-
None
-
Unknown
-
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:
camel: rest: api-vendor-extension: false
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:
<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>
Could you please check it? I don't want to expose internal implementation details via OpenAPI JSON file.