This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-4.10.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.10.x by this push: new 194cef9f4f1 CAMEL-22050: camel-rest-openapi - Component configuration should be used in endpoint 194cef9f4f1 is described below commit 194cef9f4f134649549694fee85cc766e41eea0c 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; }