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

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


The following commit(s) were added to refs/heads/camel-4.8.x by this push:
     new db9c6c92dcd CAMEL-22050: camel-rest-openapi - Component configuration 
should be used in endpoint
db9c6c92dcd is described below

commit db9c6c92dcdf9eae038502c31ff902452b69faa0
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Thu May 8 08:01:50 2025 +0200

    CAMEL-22050: camel-rest-openapi - Component configuration should be used in 
endpoint
---
 .../apache/camel/component/rest/openapi/RestOpenApiComponent.java | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git 
a/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenApiComponent.java
 
b/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenApiComponent.java
index 2a4cd9ce10f..97f6cf256eb 100644
--- 
a/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenApiComponent.java
+++ 
b/components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenApiComponent.java
@@ -157,12 +157,20 @@ public final class RestOpenApiComponent extends 
DefaultComponent implements SSLC
             throws Exception {
         RestOpenApiEndpoint endpoint = new RestOpenApiEndpoint(uri, remaining, 
this, parameters);
         endpoint.setApiContextPath(getApiContextPath());
+        endpoint.setBasePath(getBasePath());
         endpoint.setBindingPackageScan(getBindingPackageScan());
         endpoint.setClientRequestValidation(isClientRequestValidation());
+        endpoint.setComponentName(getComponentName());
+        endpoint.setConsumerComponentName(getConsumerComponentName());
+        endpoint.setConsumes(getConsumes());
+        endpoint.setHost(getHost());
+        endpoint.setProduces(getProduces());
         endpoint.setRequestValidationEnabled(isRequestValidationEnabled());
         
endpoint.setRestOpenapiProcessorStrategy(getRestOpenapiProcessorStrategy());
+        endpoint.setSpecificationUri(getSpecificationUri());
         endpoint.setMissingOperation(getMissingOperation());
         endpoint.setMockIncludePattern(getMockIncludePattern());
+        
endpoint.setRestOpenapiProcessorStrategy(getRestOpenapiProcessorStrategy());
         setProperties(endpoint, parameters);
         return endpoint;
     }

Reply via email to