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

acosentino 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 496af02  [create-pull-request] automated change
496af02 is described below

commit 496af02114996bdfff1fb1c854f8ec7aec0d0387
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Dec 15 00:47:11 2021 +0000

    [create-pull-request] automated change
---
 .../camel/springboot/catalog/components/rest-swagger.json    |  2 ++
 .../src/main/docs/rest-swagger.json                          |  7 +++++++
 .../springboot/RestSwaggerComponentConfiguration.java        | 12 ++++++++++++
 3 files changed, 21 insertions(+)

diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/rest-swagger.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/rest-swagger.json
index 077a81b..4a04beb 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/rest-swagger.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/rest-swagger.json
@@ -28,6 +28,7 @@
     "host": { "kind": "property", "displayName": "Host", "group": "producer", 
"label": "producer", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Scheme hostname and port to direct the HTTP requests to in the 
form of https:\/\/hostname:port. Can be configured at the endpoint, component 
or in the corresponding REST configuration in the Camel Context. If you give 
this component a name (e.g. pets [...]
     "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start 
Producer", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Whether the producer 
should be started lazy (on the first message). By starting lazy you can use 
this to allow CamelContext and routes to startup in situations where a producer 
may otherwise fail during star [...]
     "produces": { "kind": "property", "displayName": "Produces", "group": 
"producer", "label": "producer", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "What payload type this component is producing. 
For example application\/json according to the RFC7231. This equates to the 
value of Content-Type HTTP header. If set overrides any value present in the 
Swagger specification. Can be overridden i [...]
+    "resolveReferences": { "kind": "property", "displayName": "Resolve 
References", "group": "producer", "label": "producer", "required": false, 
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": "false", "description": 
"Resolve references in Swagger specification." },
     "specificationUri": { "kind": "property", "displayName": "Specification 
Uri", "group": "producer", "label": "producer", "required": false, "type": 
"string", "javaType": "java.net.URI", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": "swagger.json", "description": "Path to the 
Swagger 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 th [...]
     "autowiredEnabled": { "kind": "property", "displayName": "Autowired 
Enabled", "group": "advanced", "label": "advanced", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "description": "Whether autowiring is 
enabled. This is used for automatic autowiring options (the option must be 
marked as autowired) by looking up in the registry to find if there is a single 
instance of matching type, which t [...]
     "sslContextParameters": { "kind": "property", "displayName": "Ssl Context 
Parameters", "group": "security", "label": "security", "required": false, 
"type": "object", "javaType": 
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, 
"autowired": false, "secret": false, "description": "Customize TLS parameters 
used by the component. If not set defaults to the TLS parameters set in the 
Camel context" },
@@ -42,6 +43,7 @@
     "host": { "kind": "parameter", "displayName": "Host", "group": "producer", 
"label": "producer", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Scheme hostname and port to direct the HTTP requests to in the 
form of https:\/\/hostname:port. Can be configured at the endpoint, component 
or in the corresponding REST configuration in the Camel Context. If you give 
this component a name (e.g. pet [...]
     "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start 
Producer", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Whether the producer 
should be started lazy (on the first message). By starting lazy you can use 
this to allow CamelContext and routes to startup in situations where a producer 
may otherwise fail during sta [...]
     "produces": { "kind": "parameter", "displayName": "Produces", "group": 
"producer", "label": "producer", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "What payload type this component is producing. 
For example application\/json according to the RFC7231. This equates to the 
value of Content-Type HTTP header. If set overrides any value present in the 
Swagger specification. Overrides all othe [...]
+    "resolveReferences": { "kind": "parameter", "displayName": "Resolve 
References", "group": "producer", "label": "producer", "required": false, 
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, 
"autowired": false, "secret": false, "description": "Resolve references in 
Swagger specification." },
     "sslContextParameters": { "kind": "parameter", "displayName": "Ssl Context 
Parameters", "group": "security", "label": "security", "required": false, 
"type": "object", "javaType": 
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, 
"autowired": false, "secret": false, "description": "To configure security 
using SSLContextParameters." }
   }
 }
diff --git 
a/components-starter/camel-rest-swagger-starter/src/main/docs/rest-swagger.json 
b/components-starter/camel-rest-swagger-starter/src/main/docs/rest-swagger.json
index 919b8d7..f4fd1a2 100644
--- 
a/components-starter/camel-rest-swagger-starter/src/main/docs/rest-swagger.json
+++ 
b/components-starter/camel-rest-swagger-starter/src/main/docs/rest-swagger.json
@@ -69,6 +69,13 @@
       "sourceType": 
"org.apache.camel.component.rest.swagger.springboot.RestSwaggerComponentConfiguration"
     },
     {
+      "name": "camel.component.rest-swagger.resolve-references",
+      "type": "java.lang.Boolean",
+      "description": "Resolve references in Swagger specification.",
+      "sourceType": 
"org.apache.camel.component.rest.swagger.springboot.RestSwaggerComponentConfiguration",
+      "defaultValue": false
+    },
+    {
       "name": "camel.component.rest-swagger.specification-uri",
       "type": "java.net.URI",
       "description": "Path to the Swagger 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 swagger.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 [...]
diff --git 
a/components-starter/camel-rest-swagger-starter/src/main/java/org/apache/camel/component/rest/swagger/springboot/RestSwaggerComponentConfiguration.java
 
b/components-starter/camel-rest-swagger-starter/src/main/java/org/apache/camel/component/rest/swagger/springboot/RestSwaggerComponentConfiguration.java
index 4a1879b..dd15342 100644
--- 
a/components-starter/camel-rest-swagger-starter/src/main/java/org/apache/camel/component/rest/swagger/springboot/RestSwaggerComponentConfiguration.java
+++ 
b/components-starter/camel-rest-swagger-starter/src/main/java/org/apache/camel/component/rest/swagger/springboot/RestSwaggerComponentConfiguration.java
@@ -89,6 +89,10 @@ public class RestSwaggerComponentConfiguration
      */
     private String produces;
     /**
+     * Resolve references in Swagger specification.
+     */
+    private Boolean resolveReferences = false;
+    /**
      * Path to the Swagger 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
@@ -167,6 +171,14 @@ public class RestSwaggerComponentConfiguration
         this.produces = produces;
     }
 
+    public Boolean getResolveReferences() {
+        return resolveReferences;
+    }
+
+    public void setResolveReferences(Boolean resolveReferences) {
+        this.resolveReferences = resolveReferences;
+    }
+
     public URI getSpecificationUri() {
         return specificationUri;
     }

Reply via email to