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

commit eda20490b635281624aaa61da69330ca75f9effd
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 19:51:43 2026 +0100

    CAMEL-23832: camel-dataformat - improve the component and option 
descriptions
    
    This commit rewrites the component description and the texts of the 2 path 
options of dataformat. The name text now
    says that the endpoint gets its own data format instance, configured from 
the global configuration and then from the
    URI parameters, with a registry bean as the fallback. The operation option 
had no description in the annotation.
    
    Documentation only, no behavior change. The component JSON, the catalog 
copy, the doc page header and the DSL are
    regenerated. camel-dataformat is marked as done in 
tasks/component-descriptions.md.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../camel/catalog/components/dataformat.json       |  6 ++---
 .../camel/catalog/docs/dataformat-component.adoc   |  2 +-
 .../camel/component/dataformat/dataformat.json     |  6 ++---
 .../src/main/docs/dataformat-component.adoc        |  2 +-
 .../component/dataformat/DataFormatEndpoint.java   | 14 +++++-----
 .../component/ComponentsBuilderFactory.java        |  3 ++-
 .../dsl/DataformatComponentBuilderFactory.java     |  6 +++--
 .../builder/endpoint/StaticEndpointBuilders.java   | 26 +++++++++++++-----
 .../dsl/DataFormatEndpointBuilderFactory.java      | 31 +++++++++++++++++-----
 tasks/component-descriptions.md                    |  2 +-
 10 files changed, 67 insertions(+), 31 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dataformat.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dataformat.json
index d56382352848..a1b754174879 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dataformat.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dataformat.json
@@ -3,7 +3,7 @@
     "kind": "component",
     "name": "dataformat",
     "title": "Data Format",
-    "description": "Use a Camel Data Format as a regular Camel Component.",
+    "description": "Marshal or unmarshal the message body with a Camel data 
format, such as JAXB, CSV or JSON.",
     "deprecated": false,
     "firstVersion": "2.12.0",
     "label": "core,transformation",
@@ -32,8 +32,8 @@
     "producerOut": { "carriers": [ "unknown" ], "description": "The body the 
data format named in the path gives, as for the marshal and unmarshal EIPs" }
   },
   "properties": {
-    "name": { "index": 0, "kind": "path", "displayName": "Name", "group": 
"producer", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Name of data format" },
-    "operation": { "index": 1, "kind": "path", "displayName": "Operation", 
"group": "producer", "label": "", "required": true, "type": "enum", "javaType": 
"java.lang.String", "enum": [ "marshal", "unmarshal" ], "deprecated": false, 
"autowired": false, "secret": false, "description": "Operation to use either 
marshal or unmarshal" },
+    "name": { "index": 0, "kind": "path", "displayName": "Name", "group": 
"producer", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the data format, for example jaxb, csv or jackson. 
The endpoint gets its own instance of the data format, configured first from 
the global camel.dataformat properties of this data format and then from the 
other URI parameters of the endpoi [...]
+    "operation": { "index": 1, "kind": "path", "displayName": "Operation", 
"group": "producer", "label": "", "required": true, "type": "enum", "javaType": 
"java.lang.String", "enum": [ "marshal", "unmarshal" ], "deprecated": false, 
"autowired": false, "secret": false, "description": "Whether the producer 
marshals the message body into the data format (marshal) or unmarshals the 
message body from the data format (unmarshal), as the marshal and unmarshal 
EIPs do." },
     "lazyStartProducer": { "index": 2, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "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 produc [...]
   }
 }
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/dataformat-component.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/dataformat-component.adoc
index db99b283b064..3da567feb378 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/dataformat-component.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/dataformat-component.adoc
@@ -2,7 +2,7 @@
 :doctitle: Data Format
 :shortname: dataformat
 :artifactid: camel-dataformat
-:description: Use a Camel Data Format as a regular Camel Component.
+:description: Marshal or unmarshal the message body with a Camel data format, 
such as JAXB, CSV or JSON.
 :since: 2.12
 :supportlevel: Stable
 :tabs-sync-option:
diff --git 
a/components/camel-dataformat/src/generated/resources/META-INF/org/apache/camel/component/dataformat/dataformat.json
 
b/components/camel-dataformat/src/generated/resources/META-INF/org/apache/camel/component/dataformat/dataformat.json
index d56382352848..a1b754174879 100644
--- 
a/components/camel-dataformat/src/generated/resources/META-INF/org/apache/camel/component/dataformat/dataformat.json
+++ 
b/components/camel-dataformat/src/generated/resources/META-INF/org/apache/camel/component/dataformat/dataformat.json
@@ -3,7 +3,7 @@
     "kind": "component",
     "name": "dataformat",
     "title": "Data Format",
-    "description": "Use a Camel Data Format as a regular Camel Component.",
+    "description": "Marshal or unmarshal the message body with a Camel data 
format, such as JAXB, CSV or JSON.",
     "deprecated": false,
     "firstVersion": "2.12.0",
     "label": "core,transformation",
@@ -32,8 +32,8 @@
     "producerOut": { "carriers": [ "unknown" ], "description": "The body the 
data format named in the path gives, as for the marshal and unmarshal EIPs" }
   },
   "properties": {
-    "name": { "index": 0, "kind": "path", "displayName": "Name", "group": 
"producer", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Name of data format" },
-    "operation": { "index": 1, "kind": "path", "displayName": "Operation", 
"group": "producer", "label": "", "required": true, "type": "enum", "javaType": 
"java.lang.String", "enum": [ "marshal", "unmarshal" ], "deprecated": false, 
"autowired": false, "secret": false, "description": "Operation to use either 
marshal or unmarshal" },
+    "name": { "index": 0, "kind": "path", "displayName": "Name", "group": 
"producer", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the data format, for example jaxb, csv or jackson. 
The endpoint gets its own instance of the data format, configured first from 
the global camel.dataformat properties of this data format and then from the 
other URI parameters of the endpoi [...]
+    "operation": { "index": 1, "kind": "path", "displayName": "Operation", 
"group": "producer", "label": "", "required": true, "type": "enum", "javaType": 
"java.lang.String", "enum": [ "marshal", "unmarshal" ], "deprecated": false, 
"autowired": false, "secret": false, "description": "Whether the producer 
marshals the message body into the data format (marshal) or unmarshals the 
message body from the data format (unmarshal), as the marshal and unmarshal 
EIPs do." },
     "lazyStartProducer": { "index": 2, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "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 produc [...]
   }
 }
diff --git 
a/components/camel-dataformat/src/main/docs/dataformat-component.adoc 
b/components/camel-dataformat/src/main/docs/dataformat-component.adoc
index db99b283b064..3da567feb378 100644
--- a/components/camel-dataformat/src/main/docs/dataformat-component.adoc
+++ b/components/camel-dataformat/src/main/docs/dataformat-component.adoc
@@ -2,7 +2,7 @@
 :doctitle: Data Format
 :shortname: dataformat
 :artifactid: camel-dataformat
-:description: Use a Camel Data Format as a regular Camel Component.
+:description: Marshal or unmarshal the message body with a Camel data format, 
such as JAXB, CSV or JSON.
 :since: 2.12
 :supportlevel: Stable
 :tabs-sync-option:
diff --git 
a/components/camel-dataformat/src/main/java/org/apache/camel/component/dataformat/DataFormatEndpoint.java
 
b/components/camel-dataformat/src/main/java/org/apache/camel/component/dataformat/DataFormatEndpoint.java
index 58b943e0115d..2f93bbdd0df8 100644
--- 
a/components/camel-dataformat/src/main/java/org/apache/camel/component/dataformat/DataFormatEndpoint.java
+++ 
b/components/camel-dataformat/src/main/java/org/apache/camel/component/dataformat/DataFormatEndpoint.java
@@ -38,7 +38,7 @@ import org.apache.camel.support.processor.UnmarshalProcessor;
 import org.apache.camel.support.service.ServiceHelper;
 
 /**
- * Use a Camel Data Format as a regular Camel Component.
+ * Marshal or unmarshal the message body with a Camel data format, such as 
JAXB, CSV or JSON.
  */
 @UriEndpoint(firstVersion = "2.12.0", scheme = "dataformat", title = "Data 
Format", syntax = "dataformat:name:operation",
              remote = false, producerOnly = true,
@@ -54,10 +54,15 @@ public class DataFormatEndpoint extends DefaultEndpoint {
     private AsyncProcessor processor;
     private DataFormat dataFormat;
 
-    @UriPath(description = "Name of data format")
+    @UriPath(description = "The name of the data format, for example jaxb, csv 
or jackson. The endpoint gets its own instance"
+                           + " of the data format, configured first from the 
global camel.dataformat properties of this data"
+                           + " format and then from the other URI parameters 
of the endpoint. If no data format of this name"
+                           + " can be created, the DataFormat bean of this 
name in the registry is used.")
     @Metadata(required = true)
     private String name;
-    @UriPath(enums = "marshal,unmarshal")
+    @UriPath(enums = "marshal,unmarshal",
+             description = "Whether the producer marshals the message body 
into the data format (marshal) or unmarshals"
+                           + " the message body from the data format 
(unmarshal), as the marshal and unmarshal EIPs do.")
     @Metadata(required = true)
     private String operation;
 
@@ -94,9 +99,6 @@ public class DataFormatEndpoint extends DefaultEndpoint {
         return operation;
     }
 
-    /**
-     * Operation to use either marshal or unmarshal
-     */
     public void setOperation(String operation) {
         this.operation = operation;
     }
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index fd0a66ce8709..4ed76ced4e36 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -1463,7 +1463,8 @@ public interface ComponentsBuilderFactory {
     }
     /**
      * Data Format (camel-dataformat)
-     * Use a Camel Data Format as a regular Camel Component.
+     * Marshal or unmarshal the message body with a Camel data format, such as
+     * JAXB, CSV or JSON.
      * 
      * Category: core,transformation
      * Since: 2.12
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DataformatComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DataformatComponentBuilderFactory.java
index 911e3e26cb62..4bc7eef32c95 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DataformatComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DataformatComponentBuilderFactory.java
@@ -24,7 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder;
 import org.apache.camel.component.dataformat.DataFormatComponent;
 
 /**
- * Use a Camel Data Format as a regular Camel Component.
+ * Marshal or unmarshal the message body with a Camel data format, such as 
JAXB,
+ * CSV or JSON.
  * 
  * Generated by camel build tools - do NOT edit this file!
  */
@@ -33,7 +34,8 @@ public interface DataformatComponentBuilderFactory {
 
     /**
      * Data Format (camel-dataformat)
-     * Use a Camel Data Format as a regular Camel Component.
+     * Marshal or unmarshal the message body with a Camel data format, such as
+     * JAXB, CSV or JSON.
      * 
      * Category: core,transformation
      * Since: 2.12
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 983ffcbcd803..23fe78da4ece 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -4872,7 +4872,8 @@ public class StaticEndpointBuilders {
     }
     /**
      * Data Format (camel-dataformat)
-     * Use a Camel Data Format as a regular Camel Component.
+     * Marshal or unmarshal the message body with a Camel data format, such as
+     * JAXB, CSV or JSON.
      * 
      * Category: core,transformation
      * Since: 2.12
@@ -4881,10 +4882,16 @@ public class StaticEndpointBuilders {
      * Syntax: <code>dataformat:name:operation</code>
      * 
      * Path parameter: name (required)
-     * Name of data format
+     * The name of the data format, for example jaxb, csv or jackson. The
+     * endpoint gets its own instance of the data format, configured first from
+     * the global camel.dataformat properties of this data format and then from
+     * the other URI parameters of the endpoint. If no data format of this name
+     * can be created, the DataFormat bean of this name in the registry is 
used.
      * 
      * Path parameter: operation (required)
-     * Operation to use either marshal or unmarshal
+     * Whether the producer marshals the message body into the data format
+     * (marshal) or unmarshals the message body from the data format
+     * (unmarshal), as the marshal and unmarshal EIPs do.
      * There are 2 enums and the value can be one of: marshal, unmarshal
      * 
      * @param path name:operation
@@ -4895,7 +4902,8 @@ public class StaticEndpointBuilders {
     }
     /**
      * Data Format (camel-dataformat)
-     * Use a Camel Data Format as a regular Camel Component.
+     * Marshal or unmarshal the message body with a Camel data format, such as
+     * JAXB, CSV or JSON.
      * 
      * Category: core,transformation
      * Since: 2.12
@@ -4904,10 +4912,16 @@ public class StaticEndpointBuilders {
      * Syntax: <code>dataformat:name:operation</code>
      * 
      * Path parameter: name (required)
-     * Name of data format
+     * The name of the data format, for example jaxb, csv or jackson. The
+     * endpoint gets its own instance of the data format, configured first from
+     * the global camel.dataformat properties of this data format and then from
+     * the other URI parameters of the endpoint. If no data format of this name
+     * can be created, the DataFormat bean of this name in the registry is 
used.
      * 
      * Path parameter: operation (required)
-     * Operation to use either marshal or unmarshal
+     * Whether the producer marshals the message body into the data format
+     * (marshal) or unmarshals the message body from the data format
+     * (unmarshal), as the marshal and unmarshal EIPs do.
      * There are 2 enums and the value can be one of: marshal, unmarshal
      * 
      * @param componentName to use a custom component name for the endpoint
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DataFormatEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DataFormatEndpointBuilderFactory.java
index 69e150a6b13b..31c331fbc13c 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DataFormatEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DataFormatEndpointBuilderFactory.java
@@ -27,7 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder;
 import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
 
 /**
- * Use a Camel Data Format as a regular Camel Component.
+ * Marshal or unmarshal the message body with a Camel data format, such as 
JAXB,
+ * CSV or JSON.
  * 
  * Generated by camel build tools - do NOT edit this file!
  */
@@ -107,7 +108,8 @@ public interface DataFormatEndpointBuilderFactory {
     public interface DataFormatBuilders {
         /**
          * Data Format (camel-dataformat)
-         * Use a Camel Data Format as a regular Camel Component.
+         * Marshal or unmarshal the message body with a Camel data format, such
+         * as JAXB, CSV or JSON.
          * 
          * Category: core,transformation
          * Since: 2.12
@@ -116,10 +118,17 @@ public interface DataFormatEndpointBuilderFactory {
          * Syntax: <code>dataformat:name:operation</code>
          * 
          * Path parameter: name (required)
-         * Name of data format
+         * The name of the data format, for example jaxb, csv or jackson. The
+         * endpoint gets its own instance of the data format, configured first
+         * from the global camel.dataformat properties of this data format and
+         * then from the other URI parameters of the endpoint. If no data 
format
+         * of this name can be created, the DataFormat bean of this name in the
+         * registry is used.
          * 
          * Path parameter: operation (required)
-         * Operation to use either marshal or unmarshal
+         * Whether the producer marshals the message body into the data format
+         * (marshal) or unmarshals the message body from the data format
+         * (unmarshal), as the marshal and unmarshal EIPs do.
          * There are 2 enums and the value can be one of: marshal, unmarshal
          * 
          * @param path name:operation
@@ -130,7 +139,8 @@ public interface DataFormatEndpointBuilderFactory {
         }
         /**
          * Data Format (camel-dataformat)
-         * Use a Camel Data Format as a regular Camel Component.
+         * Marshal or unmarshal the message body with a Camel data format, such
+         * as JAXB, CSV or JSON.
          * 
          * Category: core,transformation
          * Since: 2.12
@@ -139,10 +149,17 @@ public interface DataFormatEndpointBuilderFactory {
          * Syntax: <code>dataformat:name:operation</code>
          * 
          * Path parameter: name (required)
-         * Name of data format
+         * The name of the data format, for example jaxb, csv or jackson. The
+         * endpoint gets its own instance of the data format, configured first
+         * from the global camel.dataformat properties of this data format and
+         * then from the other URI parameters of the endpoint. If no data 
format
+         * of this name can be created, the DataFormat bean of this name in the
+         * registry is used.
          * 
          * Path parameter: operation (required)
-         * Operation to use either marshal or unmarshal
+         * Whether the producer marshals the message body into the data format
+         * (marshal) or unmarshals the message body from the data format
+         * (unmarshal), as the marshal and unmarshal EIPs do.
          * There are 2 enums and the value can be one of: marshal, unmarshal
          * 
          * @param componentName to use a custom component name for the endpoint
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index 1b3a74742288..11e780dd4b3b 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -146,7 +146,7 @@ or removes its row.
 | camel-cxf-soap | cxf | yes |
 | camel-cyberark-vault | cyberark-vault | yes |
 | camel-dapr | dapr |  |
-| camel-dataformat | dataformat |  |
+| camel-dataformat | dataformat | yes |
 | camel-dataset | dataset, dataset-test |  |
 | camel-debezium-db2 | debezium-db2 | yes |
 | camel-debezium-mongodb | debezium-mongodb |  |

Reply via email to