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

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


The following commit(s) were added to refs/heads/main by this push:
     new cb8179522ad CAMEL-22065: camel-rest-openapi: OpenApi specification in 
the rest configuration will be ignored in Camel Spring Boot
cb8179522ad is described below

commit cb8179522ad8c052e2df9f4af3d0ec210db15f19
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu May 15 15:07:24 2025 +0200

    CAMEL-22065: camel-rest-openapi: OpenApi specification in the rest 
configuration will be ignored in Camel Spring Boot
---
 .../org/apache/camel/springboot/catalog/components/rest-openapi.json   | 2 +-
 .../camel-rest-openapi-starter/src/main/docs/rest-openapi.json         | 3 +--
 .../rest/openapi/springboot/RestOpenApiComponentConfiguration.java     | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/rest-openapi.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/rest-openapi.json
index 64020a42c2a..011b2dbadb0 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/rest-openapi.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/rest-openapi.json
@@ -25,7 +25,7 @@
   },
   "componentProperties": {
     "basePath": { "index": 0, "kind": "property", "displayName": "Base Path", 
"group": "common", "label": "common", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "API basePath, for example \/v2. Default is 
unset, if set overrides the value present in OpenApi specification." },
-    "specificationUri": { "index": 1, "kind": "property", "displayName": 
"Specification Uri", "group": "common", "label": "common", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": "openapi.json", 
"description": "Path to the OpenApi specification file. The scheme, host base 
path are taken from this specification, but these can be overridden with 
properties on the component or endpoint level. If  [...]
+    "specificationUri": { "index": 1, "kind": "property", "displayName": 
"Specification Uri", "group": "common", "label": "common", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "Path to the OpenApi 
specification file. The scheme, host base path are taken from this 
specification, but these can be overridden with properties on the component or 
endpoint level. If not given the component tries to [...]
     "apiContextPath": { "index": 2, "kind": "property", "displayName": "Api 
Context Path", "group": "consumer", "label": "consumer", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "Sets the context-path to 
use for servicing the OpenAPI specification" },
     "bridgeErrorHandler": { "index": 3, "kind": "property", "displayName": 
"Bridge Error Handler", "group": "consumer", "label": "consumer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": 
"Allows for bridging the consumer to the Camel routing Error Handler, which 
mean any exceptions (if possible) occurred while the Camel consumer is trying 
to pickup incoming messages, or the like [...]
     "clientRequestValidation": { "index": 4, "kind": "property", 
"displayName": "Client Request Validation", "group": "consumer", "label": 
"consumer", "required": false, "type": "boolean", "javaType": "boolean", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 
false, "description": "Whether to enable validation of the client request to 
check if the incoming request is valid according to the OpenAPI specification" 
},
diff --git 
a/components-starter/camel-rest-openapi-starter/src/main/docs/rest-openapi.json 
b/components-starter/camel-rest-openapi-starter/src/main/docs/rest-openapi.json
index 62ad017b5ae..82ee0ceae50 100644
--- 
a/components-starter/camel-rest-openapi-starter/src/main/docs/rest-openapi.json
+++ 
b/components-starter/camel-rest-openapi-starter/src/main/docs/rest-openapi.json
@@ -131,8 +131,7 @@
       "name": "camel.component.rest-openapi.specification-uri",
       "type": "java.lang.String",
       "description": "Path to the OpenApi specification file. The scheme, host 
base path are taken from this specification, but these can be overridden with 
properties on the component or endpoint level. If not given the component tries 
to load openapi.json resource. Note that the host defined on the component and 
endpoint of this Component should contain the scheme, hostname and optionally 
the port in the URI syntax (i.e. https:\/\/api.example.com:8080). Can be 
overridden in endpoint co [...]
-      "sourceType": 
"org.apache.camel.component.rest.openapi.springboot.RestOpenApiComponentConfiguration",
-      "defaultValue": "openapi.json"
+      "sourceType": 
"org.apache.camel.component.rest.openapi.springboot.RestOpenApiComponentConfiguration"
     },
     {
       "name": "camel.component.rest-openapi.ssl-context-parameters",
diff --git 
a/components-starter/camel-rest-openapi-starter/src/main/java/org/apache/camel/component/rest/openapi/springboot/RestOpenApiComponentConfiguration.java
 
b/components-starter/camel-rest-openapi-starter/src/main/java/org/apache/camel/component/rest/openapi/springboot/RestOpenApiComponentConfiguration.java
index ac20ad138bf..4d6aefa80f8 100644
--- 
a/components-starter/camel-rest-openapi-starter/src/main/java/org/apache/camel/component/rest/openapi/springboot/RestOpenApiComponentConfiguration.java
+++ 
b/components-starter/camel-rest-openapi-starter/src/main/java/org/apache/camel/component/rest/openapi/springboot/RestOpenApiComponentConfiguration.java
@@ -51,7 +51,7 @@ public class RestOpenApiComponentConfiguration
      * https://api.example.com:8080). Can be overridden in endpoint
      * configuration.
      */
-    private String specificationUri = "openapi.json";
+    private String specificationUri;
     /**
      * Sets the context-path to use for servicing the OpenAPI specification
      */

Reply via email to