Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15786

Camel OpenAPI ignores apiVendorExtension option for REST binding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.1, 3.6.0
    • 3.7.0
    • camel-openapi-java
    • None

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Tomasz Seweryński Tomek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: