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.git


The following commit(s) were added to refs/heads/main by this push:
     new ceaf525e0bf9 camel-jsonata: the component documents no headers at all, 
because @UriEndpoint omits headersClass (#30043)
ceaf525e0bf9 is described below

commit ceaf525e0bf925816d14d8c270c1574c1df7b143
Author: dhairya05 <[email protected]>
AuthorDate: Tue Nov 17 20:39:16 2026 +0530

    camel-jsonata: the component documents no headers at all, because 
@UriEndpoint omits headersClass (#30043)
    
    JsonataConstants.JSONATA_RESOURCE_URI carries @Metadata, but @UriEndpoint 
did not
    name the constants class, which is how the generator finds header 
constants. The
    component published an empty headers section.
---
 .../apache/camel/catalog/components/jsonata.json   |  3 ++
 .../apache/camel/component/jsonata/jsonata.json    |  3 ++
 .../camel/component/jsonata/JsonataEndpoint.java   |  2 +-
 .../builder/endpoint/EndpointHeaderBuilders.java   | 13 ++++++++
 .../dsl/JsonataEndpointBuilderFactory.java         | 37 ++++++++++++++++++++++
 5 files changed, 57 insertions(+), 1 deletion(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jsonata.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jsonata.json
index f2a2455560f7..525b7837ab0a 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jsonata.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jsonata.json
@@ -30,6 +30,9 @@
     "autowiredEnabled": { "index": 3, "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 t [...]
     "frameBinding": { "index": 4, "kind": "property", "displayName": "Frame 
Binding", "group": "advanced", "label": "advanced", "required": false, "type": 
"object", "javaType": "org.apache.camel.component.jsonata.JsonataFrameBinding", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
configure custom frame bindings and inject user functions." }
   },
+  "headers": {
+    "CamelJsonataResourceUri": { "index": 0, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": "A URI 
for the template resource to load and use instead of the endpoint configured.", 
"constantName": 
"org.apache.camel.component.jsonata.JsonataConstants#JSONATA_RESOURCE_URI" }
+  },
   "bodyTypes": {
     "producerIn": { "carriers": [ "map", "list", "pojo", "text", "bytes", 
"stream", "file" ], "format": "json", "byOption": [ { "option": "inputType", 
"value": "JsonString", "carriers": [ "text", "bytes", "stream", "file" ] } ], 
"description": "JSON data: a Map, a List, a JsonNode or another object Jackson 
converts, or JSON as text, bytes, a stream or a file, which is parsed. Text 
that does not start with { or [ is read as one JSON string. With 
inputType=JsonString the body is always par [...]
     "producerOut": { "carriers": [ "pojo" ], "javaType": 
"tools.jackson.databind.JsonNode", "format": "json", "byOption": [ { "option": 
"outputType", "value": "JsonString", "carriers": [ "text" ], "javaType": 
"java.lang.String" } ], "description": "The result as a Jackson 3 JsonNode, or 
as JSON text with outputType=JsonString" }
diff --git 
a/components/camel-jsonata/src/generated/resources/META-INF/org/apache/camel/component/jsonata/jsonata.json
 
b/components/camel-jsonata/src/generated/resources/META-INF/org/apache/camel/component/jsonata/jsonata.json
index f2a2455560f7..525b7837ab0a 100644
--- 
a/components/camel-jsonata/src/generated/resources/META-INF/org/apache/camel/component/jsonata/jsonata.json
+++ 
b/components/camel-jsonata/src/generated/resources/META-INF/org/apache/camel/component/jsonata/jsonata.json
@@ -30,6 +30,9 @@
     "autowiredEnabled": { "index": 3, "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 t [...]
     "frameBinding": { "index": 4, "kind": "property", "displayName": "Frame 
Binding", "group": "advanced", "label": "advanced", "required": false, "type": 
"object", "javaType": "org.apache.camel.component.jsonata.JsonataFrameBinding", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
configure custom frame bindings and inject user functions." }
   },
+  "headers": {
+    "CamelJsonataResourceUri": { "index": 0, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": "A URI 
for the template resource to load and use instead of the endpoint configured.", 
"constantName": 
"org.apache.camel.component.jsonata.JsonataConstants#JSONATA_RESOURCE_URI" }
+  },
   "bodyTypes": {
     "producerIn": { "carriers": [ "map", "list", "pojo", "text", "bytes", 
"stream", "file" ], "format": "json", "byOption": [ { "option": "inputType", 
"value": "JsonString", "carriers": [ "text", "bytes", "stream", "file" ] } ], 
"description": "JSON data: a Map, a List, a JsonNode or another object Jackson 
converts, or JSON as text, bytes, a stream or a file, which is parsed. Text 
that does not start with { or [ is read as one JSON string. With 
inputType=JsonString the body is always par [...]
     "producerOut": { "carriers": [ "pojo" ], "javaType": 
"tools.jackson.databind.JsonNode", "format": "json", "byOption": [ { "option": 
"outputType", "value": "JsonString", "carriers": [ "text" ], "javaType": 
"java.lang.String" } ], "description": "The result as a Jackson 3 JsonNode, or 
as JSON text with outputType=JsonString" }
diff --git 
a/components/camel-jsonata/src/main/java/org/apache/camel/component/jsonata/JsonataEndpoint.java
 
b/components/camel-jsonata/src/main/java/org/apache/camel/component/jsonata/JsonataEndpoint.java
index 166703e95745..f6d1282da27a 100644
--- 
a/components/camel-jsonata/src/main/java/org/apache/camel/component/jsonata/JsonataEndpoint.java
+++ 
b/components/camel-jsonata/src/main/java/org/apache/camel/component/jsonata/JsonataEndpoint.java
@@ -50,7 +50,7 @@ import static com.dashjoin.jsonata.Jsonata.jsonata;
  */
 @UriEndpoint(firstVersion = "3.5.0", scheme = "jsonata", title = "JSONata", 
syntax = "jsonata:resourceUri",
              producerOnly = true, remote = false,
-             category = { Category.TRANSFORMATION })
+             category = { Category.TRANSFORMATION }, headersClass = 
JsonataConstants.class)
 @BodyTypes(producerIn = @BodyType(value = {
         Carrier.MAP, Carrier.LIST, Carrier.POJO, Carrier.TEXT, Carrier.BYTES,
         Carrier.STREAM, Carrier.FILE }, format = "json",
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
index 4d5651688dac..0710ceb8f461 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
@@ -2426,6 +2426,19 @@ public class EndpointHeaderBuilders {
     public static JsltEndpointBuilderFactory.JsltHeaderNameBuilder jslt() {
         return JsltEndpointBuilderFactory.JsltHeaderNameBuilder.INSTANCE;
     }
+    /**
+     * JSONata (camel-jsonata)
+     * Transforms JSON payload using JSONata transformation.
+     * 
+     * Category: transformation
+     * Since: 3.5
+     * Maven coordinates: org.apache.camel:camel-jsonata
+     * 
+     * @return the dsl builder for the headers' name.
+     */
+    public static JsonataEndpointBuilderFactory.JsonataHeaderNameBuilder 
jsonata() {
+        return JsonataEndpointBuilderFactory.JsonataHeaderNameBuilder.INSTANCE;
+    }
     /**
      * JT400 (camel-jt400)
      * Exchanges messages with an IBM i system using data queues, message
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JsonataEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JsonataEndpointBuilderFactory.java
index 8bcb4c7086a8..c3d36ddb25c5 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JsonataEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JsonataEndpointBuilderFactory.java
@@ -349,6 +349,19 @@ public interface JsonataEndpointBuilderFactory {
     }
 
     public interface JsonataBuilders {
+        /**
+         * JSONata (camel-jsonata)
+         * Transforms JSON payload using JSONata transformation.
+         * 
+         * Category: transformation
+         * Since: 3.5
+         * Maven coordinates: org.apache.camel:camel-jsonata
+         * 
+         * @return the dsl builder for the headers' name.
+         */
+        default JsonataHeaderNameBuilder jsonata() {
+            return JsonataHeaderNameBuilder.INSTANCE;
+        }
         /**
          * JSONata (camel-jsonata)
          * Transforms JSON payload using JSONata transformation.
@@ -405,6 +418,30 @@ public interface JsonataEndpointBuilderFactory {
         }
 
     }
+    /**
+     * The builder of headers' name for the JSONata component.
+     */
+    public static class JsonataHeaderNameBuilder {
+        /**
+         * The internal instance of the builder used to access to all the
+         * methods representing the name of headers.
+         */
+        public static final JsonataHeaderNameBuilder INSTANCE = new 
JsonataHeaderNameBuilder();
+
+        /**
+         * A URI for the template resource to load and use instead of the
+         * endpoint configured.
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: producer
+         * 
+         * @return the name of the header {@code JsonataResourceUri}.
+         */
+        public String jsonataResourceUri() {
+            return "CamelJsonataResourceUri";
+        }
+    }
     static JsonataEndpointBuilder endpointBuilder(String componentName, String 
path) {
         class JsonataEndpointBuilderImpl extends AbstractEndpointBuilder 
implements JsonataEndpointBuilder, AdvancedJsonataEndpointBuilder {
             public JsonataEndpointBuilderImpl(String path) {

Reply via email to