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


The following commit(s) were added to refs/heads/main by this push:
     new 85f25569a chore: default data types on the database, search and NoSQL 
Kamelets (#3117) (#3298)
85f25569a is described below

commit 85f25569a1fa06fcd3f817acb8050e37f51357c8
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 20 21:29:30 2026 +0100

    chore: default data types on the database, search and NoSQL Kamelets 
(#3117) (#3298)
    
    * chore: default data types on the database, search and NoSQL Kamelets 
(#3117)
    
    Batch 5 of #3117. A `json` (application-json) default data type:
    
    - out: mariadb-source, mysql-source, oracle-database-source,
      postgresql-source, sqlserver-source, aws-redshift-source,
      databricks-source, snowflake-source, mongodb-source and solr-source.
      Since CAMEL-27258 the transformer runs before the consuming route: the
      body the next step sees is the same JSON text in bytes (byte[]), where it
      was a stream; Content-Type stays application/json.
    - in: aws-redshift-sink, databricks-sink, snowflake-sink and mongodb-sink,
      as the SQL sinks of #3276. The body becomes JSON text in bytes and
      Content-Type application/json, which stays on the message afterwards; a
      Map (or List) body is written as JSON first. mongodb-sink needs
      CAMEL-27259 (insert of a byte[] body).
    
    Descriptions: the Output paragraphs say "JSON text in bytes" for the
    sources, and that Content-Type is set to application/json for the sinks.
    
    Citrus:
    - DatabaseIT and SearchIT (solr-source) expect a byte[] body.
    - PostgresIT gets an HTTP server; postgresql-source records the body type,
      Content-Type and the row.
    - MongoIT: mongodb-source records the body type, Content-Type and the
      document; mongodb-sink now inserts, saves and updates one document and
      checks the stored document and what each operation leaves on the message,
      instead of a log line.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
    
    * chore: no default data type on mongodb-sink (#3117)
    
    Drop the `json` input default from mongodb-sink. It would turn a Map or
    MongoDB Document body into JSON first, so an ObjectId would be stored as
    an object of its time and a date as text: a silent change of the stored
    data. A json input type gives the body type validator nothing either (only
    a binary one does), so the default would only normalise. A YAML comment
    says so, and the Output paragraph no longer says Content-Type is set.
    
    The rewritten mongodb-sink Citrus test stays: it checks the stored document
    after insert, save and update. It now expects no Content-Type, and clears
    the headers between the steps.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
    
    ---------
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 kamelets/aws-redshift-sink.kamelet.yaml            |  9 +-
 kamelets/aws-redshift-source.kamelet.yaml          | 10 ++-
 kamelets/databricks-sink.kamelet.yaml              |  9 +-
 kamelets/databricks-source.kamelet.yaml            |  8 +-
 kamelets/mariadb-source.kamelet.yaml               |  8 +-
 kamelets/mongodb-sink.kamelet.yaml                 |  5 ++
 kamelets/mongodb-source.kamelet.yaml               |  8 +-
 kamelets/mysql-source.kamelet.yaml                 |  8 +-
 kamelets/oracle-database-source.kamelet.yaml       |  8 +-
 kamelets/postgresql-source.kamelet.yaml            |  8 +-
 kamelets/snowflake-sink.kamelet.yaml               |  9 +-
 kamelets/snowflake-source.kamelet.yaml             |  8 +-
 kamelets/solr-source.kamelet.yaml                  | 10 ++-
 kamelets/sqlserver-source.kamelet.yaml             |  8 +-
 .../main/resources/META-INF/kamelets-index.json    | 26 +++---
 .../kamelets/aws-redshift-sink.kamelet.yaml        |  9 +-
 .../kamelets/aws-redshift-source.kamelet.yaml      | 10 ++-
 .../kamelets/databricks-sink.kamelet.yaml          |  9 +-
 .../kamelets/databricks-source.kamelet.yaml        |  8 +-
 .../resources/kamelets/mariadb-source.kamelet.yaml |  8 +-
 .../resources/kamelets/mongodb-sink.kamelet.yaml   |  5 ++
 .../resources/kamelets/mongodb-source.kamelet.yaml |  8 +-
 .../resources/kamelets/mysql-source.kamelet.yaml   |  8 +-
 .../kamelets/oracle-database-source.kamelet.yaml   |  8 +-
 .../kamelets/postgresql-source.kamelet.yaml        |  8 +-
 .../resources/kamelets/snowflake-sink.kamelet.yaml |  9 +-
 .../kamelets/snowflake-source.kamelet.yaml         |  8 +-
 .../resources/kamelets/solr-source.kamelet.yaml    | 10 ++-
 .../kamelets/sqlserver-source.kamelet.yaml         |  8 +-
 .../src/test/java/PostgresIT.java                  | 35 ++++++++
 .../mariadb/mariadb-source-route.citrus.it.yaml    |  4 +-
 .../mysql/mysql-source-route.citrus.it.yaml        |  4 +-
 .../oracle-database-source-route.citrus.it.yaml    |  4 +-
 .../sqlserver-source-route.citrus.it.yaml          |  4 +-
 .../src/test/resources/mongo/findOrder.groovy      | 35 ++++++++
 .../mongo/mongodb-sink-route.citrus.it.yaml        | 99 ++++++++++++++++++++--
 .../test/resources/mongo/mongodb-sink-route.yaml   | 84 +++++++++++++++++-
 .../mongo/mongodb-source-route.citrus.it.yaml      | 29 +++++--
 .../test/resources/mongo/mongodb-source-route.yaml | 11 ++-
 .../postgresql-source-route.citrus.it.yaml         | 29 +++++--
 .../postgres/postgresql-source-route.yaml          | 12 ++-
 .../solr/solr-source-route.citrus.it.yaml          |  4 +-
 42 files changed, 537 insertions(+), 75 deletions(-)

diff --git a/kamelets/aws-redshift-sink.kamelet.yaml 
b/kamelets/aws-redshift-sink.kamelet.yaml
index cfe75bc2a..f78845973 100644
--- a/kamelets/aws-redshift-sink.kamelet.yaml
+++ b/kamelets/aws-redshift-sink.kamelet.yaml
@@ -37,7 +37,7 @@ spec:
 
       Input: the body is a JSON object, as JSON text, such as 
`{"username":"alice","city":"Rome"}`. Each `:#name` in `query` takes the value 
of the field with that name, else of the header with that name. The statement 
runs once per message.
 
-      Output: when it is used inside a route, the body afterwards is the JSON 
object parsed as a Map, and the `CamelSqlUpdateCount` header holds the number 
of rows changed.
+      Output: when it is used inside a route, the body afterwards is the JSON 
object parsed as a Map, and the `CamelSqlUpdateCount` header holds the number 
of rows changed. The `Content-Type` header is set to `application/json`.
 
       Good to know: a body that is not a JSON object fails, and so does a body 
that lacks a field named in `query` when no header has that name either. It 
logs in with a database user and password, not with AWS keys, and connects with 
the Amazon Redshift JDBC driver, which uses TLS by default. Other settings of 
the driver go in `connectionProperties`.
     required:
@@ -105,6 +105,13 @@ spec:
     in:
       mediaType: application/json
   dataTypes:
+    in:
+      default: json
+      types:
+        json:
+          format: "application-json"
+          description: "One JSON object, as JSON text in bytes."
+          mediaType: application/json
     out:
       headers:
         CamelSqlUpdateCount:
diff --git a/kamelets/aws-redshift-source.kamelet.yaml 
b/kamelets/aws-redshift-source.kamelet.yaml
index 72f625b74..7aaca483f 100644
--- a/kamelets/aws-redshift-source.kamelet.yaml
+++ b/kamelets/aws-redshift-source.kamelet.yaml
@@ -35,7 +35,7 @@ spec:
 
       Use it to pick up records from a Redshift data warehouse, such as new 
orders or daily figures, and pass them on to another system. To write to 
Redshift, use `aws-redshift-sink`.
 
-      Output: one message per row. The body is the row as a JSON object, in 
JSON text, with the column names as field names, such as 
`{"id":1,"username":"alice","city":"Rome"}`. The `Content-Type` header is 
`application/json`.
+      Output: one message per row. The body is the row as a JSON object, as 
JSON text in bytes, with the column names as field names, such as 
`{"id":1,"username":"alice","city":"Rome"}`. The `Content-Type` header is 
`application/json`.
 
       Good to know: the query runs again every `delay` milliseconds, and 
returns the same rows each time unless they change; set `consumedQuery` to mark 
or delete each row once it has been sent. It logs in with a database user and 
password, not with AWS keys, and connects with the Amazon Redshift JDBC driver, 
which uses TLS by default. Other settings of the driver go in 
`connectionProperties`.
     required:
@@ -112,6 +112,14 @@ spec:
   types:
     out:
       mediaType: application/json
+  dataTypes:
+    out:
+      default: json
+      types:
+        json:
+          format: "application-json"
+          description: "One row as a JSON object, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
   - "camel:jackson3"
   - "camel:kamelet"
diff --git a/kamelets/databricks-sink.kamelet.yaml 
b/kamelets/databricks-sink.kamelet.yaml
index bfcce00c7..f5d86074c 100644
--- a/kamelets/databricks-sink.kamelet.yaml
+++ b/kamelets/databricks-sink.kamelet.yaml
@@ -37,7 +37,7 @@ spec:
 
       Input: the body is one JSON object, as text, such as 
`{"username":"oscerd","city":"Rome"}`. In `query`, write `:#username` where the 
value of the field `username` goes. When the object has no field of that name, 
the header of that name is used instead. Fields that `query` does not name are 
ignored.
 
-      Output: the body afterwards is the JSON object as a Map, and the 
`CamelSqlUpdateCount` header holds the number of rows the statement changed. 
When `query` is a SELECT, the body is instead a List of the rows found, each a 
Map, and the `CamelSqlRowCount` header holds their number.
+      Output: the body afterwards is the JSON object as a Map, and the 
`CamelSqlUpdateCount` header holds the number of rows the statement changed. 
When `query` is a SELECT, the body is instead a List of the rows found, each a 
Map, and the `CamelSqlRowCount` header holds their number. The `Content-Type` 
header is set to `application/json`.
 
       Good to know: a message fails when its body is not a JSON object (a JSON 
array or plain text, for example), or when it has no value for a parameter of 
`query`. The values are sent to the database apart from the SQL text, so the 
content of a message cannot change the statement. Do not write `?` in `query`, 
not even in a quoted string: the Kamelet then fails to start.
     required:
@@ -84,6 +84,13 @@ spec:
     in:
       mediaType: application/json
   dataTypes:
+    in:
+      default: json
+      types:
+        json:
+          format: "application-json"
+          description: "One JSON object, as JSON text in bytes."
+          mediaType: application/json
     out:
       headers:
         CamelSqlUpdateCount:
diff --git a/kamelets/databricks-source.kamelet.yaml 
b/kamelets/databricks-source.kamelet.yaml
index f7c4f5b76..551ad3247 100644
--- a/kamelets/databricks-source.kamelet.yaml
+++ b/kamelets/databricks-source.kamelet.yaml
@@ -35,7 +35,7 @@ spec:
 
       Use it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `databricks-sink`.
 
-      Output: the body is one row as JSON text, an object with the column 
names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. The 
`Content-Type` header is `application/json`.
+      Output: the body is one row as JSON text in bytes, an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. The 
`Content-Type` header is `application/json`.
 
       Good to know: the query runs again `delay` milliseconds after the 
previous run, so the same rows are sent again and again, unless `consumedQuery` 
marks or deletes each row once it is sent and `query` leaves such rows out: for 
example `SELECT * FROM accounts WHERE processed = false` with `UPDATE accounts 
SET processed = true WHERE id = :#id`. When the next step fails for a row, 
`consumedQuery` is not run for it, and the row is read again. A query that 
finds no rows sends nothing. `q [...]
     required:
@@ -93,11 +93,17 @@ spec:
       mediaType: application/json
   dataTypes:
     out:
+      default: json
       headers:
         Content-Type:
           title: Content Type
           description: Always `application/json`, as the body is a JSON object.
           type: string
+      types:
+        json:
+          format: "application-json"
+          description: "One row as a JSON object, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
   - "camel:jackson3"
   - "camel:kamelet"
diff --git a/kamelets/mariadb-source.kamelet.yaml 
b/kamelets/mariadb-source.kamelet.yaml
index e554cc8cf..0ba2bb1a3 100644
--- a/kamelets/mariadb-source.kamelet.yaml
+++ b/kamelets/mariadb-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `mariadb-sink`.
 
-      Output: the body is one row as JSON text (a stream), an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. 
When `useIterator` is false, the body is instead one JSON array with all the 
rows of a poll. The `Content-Type` header is `application/json`.
+      Output: the body is one row as JSON text in bytes, an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. 
When `useIterator` is false, the body is instead one JSON array with all the 
rows of a poll. The `Content-Type` header is `application/json`.
 
       Good to know: the query runs again `delay` milliseconds after the 
previous run, so the same rows are sent again and again, unless `consumedQuery` 
marks or deletes each row once it is sent and `query` leaves such rows out: for 
example `SELECT * FROM accounts WHERE processed = false` with `UPDATE accounts 
SET processed = true WHERE id = :#id`. When the next step fails for a row, 
`consumedQuery` is not run for it, and the row is read again, unless 
`onConsumeFailed` marks it. A query t [...]
     required:
@@ -143,11 +143,17 @@ spec:
       mediaType: application/json
   dataTypes:
     out:
+      default: json
       headers:
         Content-Type:
           title: Content Type
           description: Always `application/json`, as the body is JSON.
           type: string
+      types:
+        json:
+          format: "application-json"
+          description: "One row as a JSON object, or with `useIterator` false 
a JSON array of all the rows of a poll, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
   - "camel:jackson3"
   - "camel:kamelet"
diff --git a/kamelets/mongodb-sink.kamelet.yaml 
b/kamelets/mongodb-sink.kamelet.yaml
index 6a11cf3b3..bb0bd0752 100644
--- a/kamelets/mongodb-sink.kamelet.yaml
+++ b/kamelets/mongodb-sink.kamelet.yaml
@@ -116,6 +116,11 @@ spec:
     in:
       mediaType: application/json
   dataTypes:
+    # No 'default:' here on purpose. A default input type of json would run on
+    # every message and turn a Map or a MongoDB Document body into JSON first:
+    # an ObjectId would be stored as an object of its time and a date as text,
+    # a silent change of the stored data. It would give the body type validator
+    # nothing either, as only a binary input type does. See #3117.
     out:
       headers:
         CamelMongoOid:
diff --git a/kamelets/mongodb-source.kamelet.yaml 
b/kamelets/mongodb-source.kamelet.yaml
index b68b853c5..b0224899c 100644
--- a/kamelets/mongodb-source.kamelet.yaml
+++ b/kamelets/mongodb-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to pass on records that an application appends to a capped 
collection, such as log entries or events, as they arrive. For a normal 
collection, or to also see updates and deletes, use 
`mongodb-changes-stream-source`. To write documents, use `mongodb-sink`.
 
-      Output: the body is one document as JSON text. An `_id` that is an 
ObjectId comes out as an object with only its time (`timestamp` and `date`), 
not as the ID text, and the format of dates depends on the Camel version. The 
`CamelMongoDbDatabase` and `CamelMongoDbCollection` headers name where the 
document comes from.
+      Output: the body is one document as JSON text in bytes, and the 
`Content-Type` header is `application/json`. An `_id` that is an ObjectId comes 
out as an object with only its time (`timestamp` and `date`), not as the ID 
text, and the format of dates depends on the Camel version. The 
`CamelMongoDbDatabase` and `CamelMongoDbCollection` headers name where the 
document comes from.
 
       Good to know: the collection must be capped (created with a fixed size), 
or the Kamelet fails to start. Each time the integration starts, it reads the 
whole collection again from the start, unless `persistentTailTracking` is true. 
It stores its place only when the integration stops, so after a crash it reads 
again the documents since the last stop. Set either `hosts` or 
`connectionString`. With `hosts`, it connects with TLS by default; set `ssl` to 
false for a MongoDB without TLS,  [...]
     required:
@@ -120,6 +120,7 @@ spec:
         example: trackers
   dataTypes:
     out:
+      default: json
       headers:
         CamelMongoDbDatabase:
           title: Database
@@ -133,6 +134,11 @@ spec:
           title: Content Type
           description: Always `application/json`, as the body is a JSON 
document.
           type: string
+      types:
+        json:
+          format: "application-json"
+          description: "One document as a JSON object, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
     - "camel:kamelet"
     - "camel:mongodb"
diff --git a/kamelets/mysql-source.kamelet.yaml 
b/kamelets/mysql-source.kamelet.yaml
index f2f62ad8c..99465baa7 100644
--- a/kamelets/mysql-source.kamelet.yaml
+++ b/kamelets/mysql-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `mysql-sink`.
 
-      Output: the body is one row as JSON text (a stream), an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. 
When `useIterator` is false, the body is instead one JSON array with all the 
rows of a poll. The `Content-Type` header is `application/json`.
+      Output: the body is one row as JSON text in bytes, an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. 
When `useIterator` is false, the body is instead one JSON array with all the 
rows of a poll. The `Content-Type` header is `application/json`.
 
       Good to know: the query runs again `delay` milliseconds after the 
previous run, so the same rows are sent again and again, unless `consumedQuery` 
marks or deletes each row once it is sent and `query` leaves such rows out: for 
example `SELECT * FROM accounts WHERE processed = false` with `UPDATE accounts 
SET processed = true WHERE id = :#id`. When the next step fails for a row, 
`consumedQuery` is not run for it, and the row is read again, unless 
`onConsumeFailed` marks it. A query t [...]
     required:
@@ -143,11 +143,17 @@ spec:
       mediaType: application/json
   dataTypes:
     out:
+      default: json
       headers:
         Content-Type:
           title: Content Type
           description: Always `application/json`, as the body is JSON.
           type: string
+      types:
+        json:
+          format: "application-json"
+          description: "One row as a JSON object, or with `useIterator` false 
a JSON array of all the rows of a poll, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
   - "camel:jackson3"
   - "camel:kamelet"
diff --git a/kamelets/oracle-database-source.kamelet.yaml 
b/kamelets/oracle-database-source.kamelet.yaml
index 2066b2207..936eefad4 100644
--- a/kamelets/oracle-database-source.kamelet.yaml
+++ b/kamelets/oracle-database-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `oracle-database-sink`.
 
-      Output: the body is one row as JSON text (a stream), an object with the 
column names as keys, such as `{"ID":1,"USERNAME":"oscerd","CITY":"Rome"}` 
(Oracle gives the names in upper case). When `useIterator` is false, the body 
is instead one JSON array with all the rows of a poll. The `Content-Type` 
header is `application/json`.
+      Output: the body is one row as JSON text in bytes, an object with the 
column names as keys, such as `{"ID":1,"USERNAME":"oscerd","CITY":"Rome"}` 
(Oracle gives the names in upper case). When `useIterator` is false, the body 
is instead one JSON array with all the rows of a poll. The `Content-Type` 
header is `application/json`.
 
       Good to know: the query runs again `delay` milliseconds after the 
previous run, so the same rows are sent again and again, unless `consumedQuery` 
marks or deletes each row once it is sent and `query` leaves such rows out: for 
example `SELECT * FROM accounts WHERE processed = false` with `UPDATE accounts 
SET processed = true WHERE id = :#id`. When the next step fails for a row, 
`consumedQuery` is not run for it, and the row is read again, unless 
`onConsumeFailed` marks it. A query t [...]
     required:
@@ -138,11 +138,17 @@ spec:
       mediaType: application/json
   dataTypes:
     out:
+      default: json
       headers:
         Content-Type:
           title: Content Type
           description: Always `application/json`, as the body is JSON.
           type: string
+      types:
+        json:
+          format: "application-json"
+          description: "One row as a JSON object, or with `useIterator` false 
a JSON array of all the rows of a poll, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
   - "camel:jackson3"
   - "camel:kamelet"
diff --git a/kamelets/postgresql-source.kamelet.yaml 
b/kamelets/postgresql-source.kamelet.yaml
index be71ebf95..479f83fd4 100644
--- a/kamelets/postgresql-source.kamelet.yaml
+++ b/kamelets/postgresql-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `postgresql-sink`.
 
-      Output: the body is one row as JSON text, an object with the column 
names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. When 
`useIterator` is false, the body is instead one JSON array with all the rows of 
a poll. The `Content-Type` header is `application/json`.
+      Output: the body is one row as JSON text in bytes, an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. 
When `useIterator` is false, the body is instead one JSON array with all the 
rows of a poll. The `Content-Type` header is `application/json`.
 
       Good to know: the query runs again `delay` milliseconds after the 
previous run, so the same rows are sent again and again, unless `consumedQuery` 
marks or deletes each row once it is sent and `query` leaves such rows out: for 
example `SELECT * FROM accounts WHERE processed = false` with `UPDATE accounts 
SET processed = true WHERE id = :#id`. When the next step fails for a row, 
`consumedQuery` is not run for it, and the row is read again, unless 
`onConsumeFailed` marks it. A query t [...]
     required:
@@ -143,11 +143,17 @@ spec:
       mediaType: application/json
   dataTypes:
     out:
+      default: json
       headers:
         Content-Type:
           title: Content Type
           description: Always `application/json`, as the body is JSON.
           type: string
+      types:
+        json:
+          format: "application-json"
+          description: "One row as a JSON object, or with `useIterator` false 
a JSON array of all the rows of a poll, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
   - "camel:jackson3"
   - "camel:kamelet"
diff --git a/kamelets/snowflake-sink.kamelet.yaml 
b/kamelets/snowflake-sink.kamelet.yaml
index fdac4f04a..f45cac3b7 100644
--- a/kamelets/snowflake-sink.kamelet.yaml
+++ b/kamelets/snowflake-sink.kamelet.yaml
@@ -37,7 +37,7 @@ spec:
 
       Input: the body is one JSON object, as text, such as 
`{"username":"oscerd","city":"Rome"}`. In `query`, write `:#username` where the 
value of the field `username` goes. When the object has no field of that name, 
the header of that name is used instead. Fields that `query` does not name are 
ignored.
 
-      Output: the body afterwards is the JSON object as a Map, and the 
`CamelSqlUpdateCount` header holds the number of rows the statement changed. 
When `query` is a SELECT, the body is instead a List of the rows found, each a 
Map, and the `CamelSqlRowCount` header holds their number.
+      Output: the body afterwards is the JSON object as a Map, and the 
`CamelSqlUpdateCount` header holds the number of rows the statement changed. 
When `query` is a SELECT, the body is instead a List of the rows found, each a 
Map, and the `CamelSqlRowCount` header holds their number. The `Content-Type` 
header is set to `application/json`.
 
       Good to know: a message fails when its body is not a JSON object (a JSON 
array or plain text, for example), or when it has no value for a parameter of 
`query`. The values are sent to the database apart from the SQL text, so the 
content of a message cannot change the statement. Do not write `?` in `query`, 
not even in a quoted string: the Kamelet then fails to start. Log in with 
`password`, or with a key pair in `privateKey` or `privateKeyFile`: a Snowflake 
user of type SERVICE, mea [...]
     required:
@@ -112,6 +112,13 @@ spec:
     in:
       mediaType: application/json
   dataTypes:
+    in:
+      default: json
+      types:
+        json:
+          format: "application-json"
+          description: "One JSON object, as JSON text in bytes."
+          mediaType: application/json
     out:
       headers:
         CamelSqlUpdateCount:
diff --git a/kamelets/snowflake-source.kamelet.yaml 
b/kamelets/snowflake-source.kamelet.yaml
index 7e186390d..ba7fa9a6a 100644
--- a/kamelets/snowflake-source.kamelet.yaml
+++ b/kamelets/snowflake-source.kamelet.yaml
@@ -35,7 +35,7 @@ spec:
 
       Use it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `snowflake-sink`.
 
-      Output: the body is one row as JSON text, an object with the column 
names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. The 
`Content-Type` header is `application/json`.
+      Output: the body is one row as JSON text in bytes, an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. The 
`Content-Type` header is `application/json`.
 
       Good to know: the query runs again `delay` milliseconds after the 
previous run, so the same rows are sent again and again, unless `consumedQuery` 
marks or deletes each row once it is sent and `query` leaves such rows out: for 
example `SELECT * FROM accounts WHERE processed = false` with `UPDATE accounts 
SET processed = true WHERE id = :#id`. When the next step fails for a row, 
`consumedQuery` is not run for it, and the row is read again. A query that 
finds no rows sends nothing. `q [...]
     required:
@@ -121,11 +121,17 @@ spec:
       mediaType: application/json
   dataTypes:
     out:
+      default: json
       headers:
         Content-Type:
           title: Content Type
           description: Always `application/json`, as the body is a JSON object.
           type: string
+      types:
+        json:
+          format: "application-json"
+          description: "One row as a JSON object, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
   - "camel:jackson3"
   - "camel:kamelet"
diff --git a/kamelets/solr-source.kamelet.yaml 
b/kamelets/solr-source.kamelet.yaml
index 704fe6f5f..49229cefe 100644
--- a/kamelets/solr-source.kamelet.yaml
+++ b/kamelets/solr-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to watch a Solr collection on a schedule, for example to send the 
documents that match a query to another system. To add documents to Solr, use 
`solr-sink`.
 
-      Output: the body is JSON text (a stream), the answer of Solr: 
`responseHeader`, and under `response` the list of the documents found, each 
with its fields. The `Content-Type` header is `application/json`, and the 
`CamelSolrOperation` (`SEARCH`), `CamelSolrQueryString` (the `query`) and 
`CamelSolrCollection` (the `collection`) headers are set.
+      Output: the body is JSON text in bytes, the answer of Solr: 
`responseHeader`, and under `response` the list of the documents found, each 
with its fields. The `Content-Type` header is `application/json`, and the 
`CamelSolrOperation` (`SEARCH`), `CamelSolrQueryString` (the `query`) and 
`CamelSolrCollection` (the `collection`) headers are set.
 
       Good to know: every query returns all the matching documents again, not 
only the new ones; filter on a date in the query to get only new documents. 
Each query returns only the first documents found: as many as `size`, or 10 
with the usual Solr settings when `size` is not set. It connects with plain 
HTTP by default; set `enableSSL` to true for a Solr that is reached with HTTPS, 
and give the certificate in `certificate` when Solr uses a self-signed 
certificate. The query runs on the  [...]
     required:
@@ -113,6 +113,14 @@ spec:
   types:
     out:
       mediaType: application/json
+  dataTypes:
+    out:
+      default: json
+      types:
+        json:
+          format: "application-json"
+          description: "The answer of Solr as a JSON object, as JSON text in 
bytes."
+          mediaType: application/json
   dependencies:
   - "camel:solr"
   - "camel:timer"
diff --git a/kamelets/sqlserver-source.kamelet.yaml 
b/kamelets/sqlserver-source.kamelet.yaml
index 16f5d3170..c74ff5fd2 100644
--- a/kamelets/sqlserver-source.kamelet.yaml
+++ b/kamelets/sqlserver-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `sqlserver-sink`.
 
-      Output: the body is one row as JSON text (a stream), an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. 
When `useIterator` is false, the body is instead one JSON array with all the 
rows of a poll. The `Content-Type` header is `application/json`.
+      Output: the body is one row as JSON text in bytes, an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. 
When `useIterator` is false, the body is instead one JSON array with all the 
rows of a poll. The `Content-Type` header is `application/json`.
 
       Good to know: the query runs again `delay` milliseconds after the 
previous run, so the same rows are sent again and again, unless `consumedQuery` 
marks or deletes each row once it is sent and `query` leaves such rows out: for 
example `SELECT * FROM accounts WHERE processed = false` with `UPDATE accounts 
SET processed = true WHERE id = :#id`. When the next step fails for a row, 
`consumedQuery` is not run for it, and the row is read again, unless 
`onConsumeFailed` marks it. A query t [...]
     required:
@@ -148,11 +148,17 @@ spec:
       mediaType: application/json
   dataTypes:
     out:
+      default: json
       headers:
         Content-Type:
           title: Content Type
           description: Always `application/json`, as the body is JSON.
           type: string
+      types:
+        json:
+          format: "application-json"
+          description: "One row as a JSON object, or with `useIterator` false 
a JSON array of all the rows of a poll, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
   - "camel:jackson3"
   - "camel:kamelet"
diff --git 
a/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json 
b/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
index 9b574c573..fcd011b1d 100644
--- a/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
+++ b/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
@@ -175,7 +175,7 @@
     "supportLevel" : "Stable",
     "title" : "AWS Redshift Sink",
     "summary" : "Runs an SQL statement, such as an INSERT, on an Amazon 
Redshift database for each message, with the values taken from the JSON body.",
-    "description" : "Runs an SQL statement, such as an INSERT, on an Amazon 
Redshift database for each message, with the values taken from the JSON 
body.\n\nUse it to load events or records, such as orders or page views, into a 
table of a Redshift data warehouse, or to update rows when something changes. 
To read rows from Redshift, use `aws-redshift-source`.\n\nInput: the body is a 
JSON object, as JSON text, such as 
`{\"username\":\"alice\",\"city\":\"Rome\"}`. Each `:#name` in `query` t [...]
+    "description" : "Runs an SQL statement, such as an INSERT, on an Amazon 
Redshift database for each message, with the values taken from the JSON 
body.\n\nUse it to load events or records, such as orders or page views, into a 
table of a Redshift data warehouse, or to update rows when something changes. 
To read rows from Redshift, use `aws-redshift-source`.\n\nInput: the body is a 
JSON object, as JSON text, such as 
`{\"username\":\"alice\",\"city\":\"Rome\"}`. Each `:#name` in `query` t [...]
     "group" : "AWS Redshift",
     "namespace" : "AWS",
     "provider" : "Apache Software Foundation"
@@ -185,7 +185,7 @@
     "supportLevel" : "Stable",
     "title" : "AWS Redshift Source",
     "summary" : "Runs an SQL query on an Amazon Redshift database at regular 
intervals, and sends each row of the result as a message.",
-    "description" : "Runs an SQL query on an Amazon Redshift database at 
regular intervals, and sends each row of the result as a message.\n\nUse it to 
pick up records from a Redshift data warehouse, such as new orders or daily 
figures, and pass them on to another system. To write to Redshift, use 
`aws-redshift-sink`.\n\nOutput: one message per row. The body is the row as a 
JSON object, in JSON text, with the column names as field names, such as 
`{\"id\":1,\"username\":\"alice\",\"city\" [...]
+    "description" : "Runs an SQL query on an Amazon Redshift database at 
regular intervals, and sends each row of the result as a message.\n\nUse it to 
pick up records from a Redshift data warehouse, such as new orders or daily 
figures, and pass them on to another system. To write to Redshift, use 
`aws-redshift-sink`.\n\nOutput: one message per row. The body is the row as a 
JSON object, as JSON text in bytes, with the column names as field names, such 
as `{\"id\":1,\"username\":\"alice\" [...]
     "group" : "AWS Redshift",
     "namespace" : "AWS",
     "provider" : "Apache Software Foundation"
@@ -615,7 +615,7 @@
     "supportLevel" : "Preview",
     "title" : "Databricks Sink",
     "summary" : "Runs an SQL statement, such as an INSERT, on a Databricks SQL 
warehouse or cluster for each message, with values taken from the fields of the 
JSON object in the body.",
-    "description" : "Runs an SQL statement, such as an INSERT, on a Databricks 
SQL warehouse or cluster for each message, with values taken from the fields of 
the JSON object in the body.\n\nUse it to store records from another system as 
rows of a table, such as each order that arrives on a Kafka topic, or to update 
or delete rows. To read rows, use `databricks-source`.\n\nInput: the body is 
one JSON object, as text, such as 
`{\"username\":\"oscerd\",\"city\":\"Rome\"}`. In `query`, writ [...]
+    "description" : "Runs an SQL statement, such as an INSERT, on a Databricks 
SQL warehouse or cluster for each message, with values taken from the fields of 
the JSON object in the body.\n\nUse it to store records from another system as 
rows of a table, such as each order that arrives on a Kafka topic, or to update 
or delete rows. To read rows, use `databricks-source`.\n\nInput: the body is 
one JSON object, as text, such as 
`{\"username\":\"oscerd\",\"city\":\"Rome\"}`. In `query`, writ [...]
     "group" : "SQL",
     "namespace" : "Database",
     "provider" : "Apache Software Foundation"
@@ -625,7 +625,7 @@
     "supportLevel" : "Preview",
     "title" : "Databricks Source",
     "summary" : "Runs an SQL query on a Databricks SQL warehouse or cluster 
again and again, and sends each row it returns as a message, as a JSON object.",
-    "description" : "Runs an SQL query on a Databricks SQL warehouse or 
cluster again and again, and sends each row it returns as a message, as a JSON 
object.\n\nUse it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `databricks-sink`.\n\nOutput: the body is one row as JSON text, an 
object with the column names as keys, such as 
`{\"id\":1,\"username\":\"oscerd\",\"city\":\"Rome\"}`. The `Co [...]
+    "description" : "Runs an SQL query on a Databricks SQL warehouse or 
cluster again and again, and sends each row it returns as a message, as a JSON 
object.\n\nUse it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `databricks-sink`.\n\nOutput: the body is one row as JSON text in 
bytes, an object with the column names as keys, such as 
`{\"id\":1,\"username\":\"oscerd\",\"city\":\"Rome\"}` [...]
     "group" : "SQL",
     "namespace" : "Database",
     "provider" : "Apache Software Foundation"
@@ -1425,7 +1425,7 @@
     "supportLevel" : "Stable",
     "title" : "MariaDB Source",
     "summary" : "Runs an SQL query in a MariaDB database again and again, and 
sends each row it returns as a message, as a JSON object.",
-    "description" : "Runs an SQL query in a MariaDB database again and again, 
and sends each row it returns as a message, as a JSON object.\n\nUse it to pick 
up the rows that another application adds to a table, such as new orders or 
events, and pass them on to another system. To write rows, use 
`mariadb-sink`.\n\nOutput: the body is one row as JSON text (a stream), an 
object with the column names as keys, such as 
`{\"id\":1,\"username\":\"oscerd\",\"city\":\"Rome\"}`. When `useIterator` [...]
+    "description" : "Runs an SQL query in a MariaDB database again and again, 
and sends each row it returns as a message, as a JSON object.\n\nUse it to pick 
up the rows that another application adds to a table, such as new orders or 
events, and pass them on to another system. To write rows, use 
`mariadb-sink`.\n\nOutput: the body is one row as JSON text in bytes, an object 
with the column names as keys, such as 
`{\"id\":1,\"username\":\"oscerd\",\"city\":\"Rome\"}`. When `useIterator` i 
[...]
     "group" : "SQL",
     "namespace" : "Database",
     "provider" : "Apache Software Foundation"
@@ -1495,7 +1495,7 @@
     "supportLevel" : "Stable",
     "title" : "MongoDB Source",
     "summary" : "Reads the documents of a capped collection in a MongoDB 
database, first those already there and then each new one as it is added, one 
message per document, as JSON text.",
-    "description" : "Reads the documents of a capped collection in a MongoDB 
database, first those already there and then each new one as it is added, one 
message per document, as JSON text.\n\nUse it to pass on records that an 
application appends to a capped collection, such as log entries or events, as 
they arrive. For a normal collection, or to also see updates and deletes, use 
`mongodb-changes-stream-source`. To write documents, use 
`mongodb-sink`.\n\nOutput: the body is one document [...]
+    "description" : "Reads the documents of a capped collection in a MongoDB 
database, first those already there and then each new one as it is added, one 
message per document, as JSON text.\n\nUse it to pass on records that an 
application appends to a capped collection, such as log entries or events, as 
they arrive. For a normal collection, or to also see updates and deletes, use 
`mongodb-changes-stream-source`. To write documents, use 
`mongodb-sink`.\n\nOutput: the body is one document [...]
     "group" : "MongoDB",
     "namespace" : "Nosql",
     "provider" : "Apache Software Foundation"
@@ -1565,7 +1565,7 @@
     "supportLevel" : "Stable",
     "title" : "MySQL Source",
     "summary" : "Runs an SQL query in a MySQL database again and again, and 
sends each row it returns as a message, as a JSON object.",
-    "description" : "Runs an SQL query in a MySQL database again and again, 
and sends each row it returns as a message, as a JSON object.\n\nUse it to pick 
up the rows that another application adds to a table, such as new orders or 
events, and pass them on to another system. To write rows, use 
`mysql-sink`.\n\nOutput: the body is one row as JSON text (a stream), an object 
with the column names as keys, such as 
`{\"id\":1,\"username\":\"oscerd\",\"city\":\"Rome\"}`. When `useIterator` is  
[...]
+    "description" : "Runs an SQL query in a MySQL database again and again, 
and sends each row it returns as a message, as a JSON object.\n\nUse it to pick 
up the rows that another application adds to a table, such as new orders or 
events, and pass them on to another system. To write rows, use 
`mysql-sink`.\n\nOutput: the body is one row as JSON text in bytes, an object 
with the column names as keys, such as 
`{\"id\":1,\"username\":\"oscerd\",\"city\":\"Rome\"}`. When `useIterator` is 
fa [...]
     "group" : "SQL",
     "namespace" : "Database",
     "provider" : "Apache Software Foundation"
@@ -1635,7 +1635,7 @@
     "supportLevel" : "Stable",
     "title" : "Oracle Database Source",
     "summary" : "Runs an SQL query in an Oracle Database database again and 
again, and sends each row it returns as a message, as a JSON object.",
-    "description" : "Runs an SQL query in an Oracle Database database again 
and again, and sends each row it returns as a message, as a JSON object.\n\nUse 
it to pick up the rows that another application adds to a table, such as new 
orders or events, and pass them on to another system. To write rows, use 
`oracle-database-sink`.\n\nOutput: the body is one row as JSON text (a stream), 
an object with the column names as keys, such as 
`{\"ID\":1,\"USERNAME\":\"oscerd\",\"CITY\":\"Rome\"}` (O [...]
+    "description" : "Runs an SQL query in an Oracle Database database again 
and again, and sends each row it returns as a message, as a JSON object.\n\nUse 
it to pick up the rows that another application adds to a table, such as new 
orders or events, and pass them on to another system. To write rows, use 
`oracle-database-sink`.\n\nOutput: the body is one row as JSON text in bytes, 
an object with the column names as keys, such as 
`{\"ID\":1,\"USERNAME\":\"oscerd\",\"CITY\":\"Rome\"}` (Ora [...]
     "group" : "SQL",
     "namespace" : "Database",
     "provider" : "Apache Software Foundation"
@@ -1665,7 +1665,7 @@
     "supportLevel" : "Stable",
     "title" : "PostgreSQL Source",
     "summary" : "Runs an SQL query in a PostgreSQL database again and again, 
and sends each row it returns as a message, as a JSON object.",
-    "description" : "Runs an SQL query in a PostgreSQL database again and 
again, and sends each row it returns as a message, as a JSON object.\n\nUse it 
to pick up the rows that another application adds to a table, such as new 
orders or events, and pass them on to another system. To write rows, use 
`postgresql-sink`.\n\nOutput: the body is one row as JSON text, an object with 
the column names as keys, such as 
`{\"id\":1,\"username\":\"oscerd\",\"city\":\"Rome\"}`. When `useIterator` is f 
[...]
+    "description" : "Runs an SQL query in a PostgreSQL database again and 
again, and sends each row it returns as a message, as a JSON object.\n\nUse it 
to pick up the rows that another application adds to a table, such as new 
orders or events, and pass them on to another system. To write rows, use 
`postgresql-sink`.\n\nOutput: the body is one row as JSON text in bytes, an 
object with the column names as keys, such as 
`{\"id\":1,\"username\":\"oscerd\",\"city\":\"Rome\"}`. When `useItera [...]
     "group" : "SQL",
     "namespace" : "Database",
     "provider" : "Apache Software Foundation"
@@ -1975,7 +1975,7 @@
     "supportLevel" : "Preview",
     "title" : "Snowflake Sink",
     "summary" : "Runs an SQL statement, such as an INSERT, in a Snowflake 
database for each message, with values taken from the fields of the JSON object 
in the body.",
-    "description" : "Runs an SQL statement, such as an INSERT, in a Snowflake 
database for each message, with values taken from the fields of the JSON object 
in the body.\n\nUse it to store records from another system as rows of a table, 
such as each order that arrives on a Kafka topic, or to update or delete rows. 
To read rows, use `snowflake-source`.\n\nInput: the body is one JSON object, as 
text, such as `{\"username\":\"oscerd\",\"city\":\"Rome\"}`. In `query`, write 
`:#username` whe [...]
+    "description" : "Runs an SQL statement, such as an INSERT, in a Snowflake 
database for each message, with values taken from the fields of the JSON object 
in the body.\n\nUse it to store records from another system as rows of a table, 
such as each order that arrives on a Kafka topic, or to update or delete rows. 
To read rows, use `snowflake-source`.\n\nInput: the body is one JSON object, as 
text, such as `{\"username\":\"oscerd\",\"city\":\"Rome\"}`. In `query`, write 
`:#username` whe [...]
     "group" : "SQL",
     "namespace" : "Database",
     "provider" : "Apache Software Foundation"
@@ -1985,7 +1985,7 @@
     "supportLevel" : "Preview",
     "title" : "Snowflake Source",
     "summary" : "Runs an SQL query in a Snowflake database again and again, 
and sends each row it returns as a message, as a JSON object.",
-    "description" : "Runs an SQL query in a Snowflake database again and 
again, and sends each row it returns as a message, as a JSON object.\n\nUse it 
to pick up the rows that another application adds to a table, such as new 
orders or events, and pass them on to another system. To write rows, use 
`snowflake-sink`.\n\nOutput: the body is one row as JSON text, an object with 
the column names as keys, such as 
`{\"id\":1,\"username\":\"oscerd\",\"city\":\"Rome\"}`. The `Content-Type` 
header [...]
+    "description" : "Runs an SQL query in a Snowflake database again and 
again, and sends each row it returns as a message, as a JSON object.\n\nUse it 
to pick up the rows that another application adds to a table, such as new 
orders or events, and pass them on to another system. To write rows, use 
`snowflake-sink`.\n\nOutput: the body is one row as JSON text in bytes, an 
object with the column names as keys, such as 
`{\"id\":1,\"username\":\"oscerd\",\"city\":\"Rome\"}`. The `Content-Typ [...]
     "group" : "SQL",
     "namespace" : "Database",
     "provider" : "Apache Software Foundation"
@@ -2005,7 +2005,7 @@
     "supportLevel" : "Stable",
     "title" : "Solr Source",
     "summary" : "Runs the same query on a collection or core of Apache Solr at 
a regular interval, and sends the result of each query as one message.",
-    "description" : "Runs the same query on a collection or core of Apache 
Solr at a regular interval, and sends the result of each query as one 
message.\n\nUse it to watch a Solr collection on a schedule, for example to 
send the documents that match a query to another system. To add documents to 
Solr, use `solr-sink`.\n\nOutput: the body is JSON text (a stream), the answer 
of Solr: `responseHeader`, and under `response` the list of the documents 
found, each with its fields. The `Content [...]
+    "description" : "Runs the same query on a collection or core of Apache 
Solr at a regular interval, and sends the result of each query as one 
message.\n\nUse it to watch a Solr collection on a schedule, for example to 
send the documents that match a query to another system. To add documents to 
Solr, use `solr-sink`.\n\nOutput: the body is JSON text in bytes, the answer of 
Solr: `responseHeader`, and under `response` the list of the documents found, 
each with its fields. The `Content-T [...]
     "group" : "Solr",
     "namespace" : "Search",
     "provider" : "Apache Software Foundation"
@@ -2055,7 +2055,7 @@
     "supportLevel" : "Stable",
     "title" : "Microsoft SQL Server Source",
     "summary" : "Runs an SQL query in a Microsoft SQL Server database again 
and again, and sends each row it returns as a message, as a JSON object.",
-    "description" : "Runs an SQL query in a Microsoft SQL Server database 
again and again, and sends each row it returns as a message, as a JSON 
object.\n\nUse it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `sqlserver-sink`.\n\nOutput: the body is one row as JSON text (a 
stream), an object with the column names as keys, such as 
`{\"id\":1,\"username\":\"oscerd\",\"city\":\"Rome\"}`. Whe [...]
+    "description" : "Runs an SQL query in a Microsoft SQL Server database 
again and again, and sends each row it returns as a message, as a JSON 
object.\n\nUse it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `sqlserver-sink`.\n\nOutput: the body is one row as JSON text in 
bytes, an object with the column names as keys, such as 
`{\"id\":1,\"username\":\"oscerd\",\"city\":\"Rome\"}`. When  [...]
     "group" : "SQL",
     "namespace" : "Database",
     "provider" : "Apache Software Foundation"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-sink.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-sink.kamelet.yaml
index cfe75bc2a..f78845973 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-sink.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-sink.kamelet.yaml
@@ -37,7 +37,7 @@ spec:
 
       Input: the body is a JSON object, as JSON text, such as 
`{"username":"alice","city":"Rome"}`. Each `:#name` in `query` takes the value 
of the field with that name, else of the header with that name. The statement 
runs once per message.
 
-      Output: when it is used inside a route, the body afterwards is the JSON 
object parsed as a Map, and the `CamelSqlUpdateCount` header holds the number 
of rows changed.
+      Output: when it is used inside a route, the body afterwards is the JSON 
object parsed as a Map, and the `CamelSqlUpdateCount` header holds the number 
of rows changed. The `Content-Type` header is set to `application/json`.
 
       Good to know: a body that is not a JSON object fails, and so does a body 
that lacks a field named in `query` when no header has that name either. It 
logs in with a database user and password, not with AWS keys, and connects with 
the Amazon Redshift JDBC driver, which uses TLS by default. Other settings of 
the driver go in `connectionProperties`.
     required:
@@ -105,6 +105,13 @@ spec:
     in:
       mediaType: application/json
   dataTypes:
+    in:
+      default: json
+      types:
+        json:
+          format: "application-json"
+          description: "One JSON object, as JSON text in bytes."
+          mediaType: application/json
     out:
       headers:
         CamelSqlUpdateCount:
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-source.kamelet.yaml
index 72f625b74..7aaca483f 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-source.kamelet.yaml
@@ -35,7 +35,7 @@ spec:
 
       Use it to pick up records from a Redshift data warehouse, such as new 
orders or daily figures, and pass them on to another system. To write to 
Redshift, use `aws-redshift-sink`.
 
-      Output: one message per row. The body is the row as a JSON object, in 
JSON text, with the column names as field names, such as 
`{"id":1,"username":"alice","city":"Rome"}`. The `Content-Type` header is 
`application/json`.
+      Output: one message per row. The body is the row as a JSON object, as 
JSON text in bytes, with the column names as field names, such as 
`{"id":1,"username":"alice","city":"Rome"}`. The `Content-Type` header is 
`application/json`.
 
       Good to know: the query runs again every `delay` milliseconds, and 
returns the same rows each time unless they change; set `consumedQuery` to mark 
or delete each row once it has been sent. It logs in with a database user and 
password, not with AWS keys, and connects with the Amazon Redshift JDBC driver, 
which uses TLS by default. Other settings of the driver go in 
`connectionProperties`.
     required:
@@ -112,6 +112,14 @@ spec:
   types:
     out:
       mediaType: application/json
+  dataTypes:
+    out:
+      default: json
+      types:
+        json:
+          format: "application-json"
+          description: "One row as a JSON object, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
   - "camel:jackson3"
   - "camel:kamelet"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/databricks-sink.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/databricks-sink.kamelet.yaml
index bfcce00c7..f5d86074c 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/databricks-sink.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/databricks-sink.kamelet.yaml
@@ -37,7 +37,7 @@ spec:
 
       Input: the body is one JSON object, as text, such as 
`{"username":"oscerd","city":"Rome"}`. In `query`, write `:#username` where the 
value of the field `username` goes. When the object has no field of that name, 
the header of that name is used instead. Fields that `query` does not name are 
ignored.
 
-      Output: the body afterwards is the JSON object as a Map, and the 
`CamelSqlUpdateCount` header holds the number of rows the statement changed. 
When `query` is a SELECT, the body is instead a List of the rows found, each a 
Map, and the `CamelSqlRowCount` header holds their number.
+      Output: the body afterwards is the JSON object as a Map, and the 
`CamelSqlUpdateCount` header holds the number of rows the statement changed. 
When `query` is a SELECT, the body is instead a List of the rows found, each a 
Map, and the `CamelSqlRowCount` header holds their number. The `Content-Type` 
header is set to `application/json`.
 
       Good to know: a message fails when its body is not a JSON object (a JSON 
array or plain text, for example), or when it has no value for a parameter of 
`query`. The values are sent to the database apart from the SQL text, so the 
content of a message cannot change the statement. Do not write `?` in `query`, 
not even in a quoted string: the Kamelet then fails to start.
     required:
@@ -84,6 +84,13 @@ spec:
     in:
       mediaType: application/json
   dataTypes:
+    in:
+      default: json
+      types:
+        json:
+          format: "application-json"
+          description: "One JSON object, as JSON text in bytes."
+          mediaType: application/json
     out:
       headers:
         CamelSqlUpdateCount:
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/databricks-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/databricks-source.kamelet.yaml
index f7c4f5b76..551ad3247 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/databricks-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/databricks-source.kamelet.yaml
@@ -35,7 +35,7 @@ spec:
 
       Use it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `databricks-sink`.
 
-      Output: the body is one row as JSON text, an object with the column 
names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. The 
`Content-Type` header is `application/json`.
+      Output: the body is one row as JSON text in bytes, an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. The 
`Content-Type` header is `application/json`.
 
       Good to know: the query runs again `delay` milliseconds after the 
previous run, so the same rows are sent again and again, unless `consumedQuery` 
marks or deletes each row once it is sent and `query` leaves such rows out: for 
example `SELECT * FROM accounts WHERE processed = false` with `UPDATE accounts 
SET processed = true WHERE id = :#id`. When the next step fails for a row, 
`consumedQuery` is not run for it, and the row is read again. A query that 
finds no rows sends nothing. `q [...]
     required:
@@ -93,11 +93,17 @@ spec:
       mediaType: application/json
   dataTypes:
     out:
+      default: json
       headers:
         Content-Type:
           title: Content Type
           description: Always `application/json`, as the body is a JSON object.
           type: string
+      types:
+        json:
+          format: "application-json"
+          description: "One row as a JSON object, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
   - "camel:jackson3"
   - "camel:kamelet"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/mariadb-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/mariadb-source.kamelet.yaml
index e554cc8cf..0ba2bb1a3 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/mariadb-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/mariadb-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `mariadb-sink`.
 
-      Output: the body is one row as JSON text (a stream), an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. 
When `useIterator` is false, the body is instead one JSON array with all the 
rows of a poll. The `Content-Type` header is `application/json`.
+      Output: the body is one row as JSON text in bytes, an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. 
When `useIterator` is false, the body is instead one JSON array with all the 
rows of a poll. The `Content-Type` header is `application/json`.
 
       Good to know: the query runs again `delay` milliseconds after the 
previous run, so the same rows are sent again and again, unless `consumedQuery` 
marks or deletes each row once it is sent and `query` leaves such rows out: for 
example `SELECT * FROM accounts WHERE processed = false` with `UPDATE accounts 
SET processed = true WHERE id = :#id`. When the next step fails for a row, 
`consumedQuery` is not run for it, and the row is read again, unless 
`onConsumeFailed` marks it. A query t [...]
     required:
@@ -143,11 +143,17 @@ spec:
       mediaType: application/json
   dataTypes:
     out:
+      default: json
       headers:
         Content-Type:
           title: Content Type
           description: Always `application/json`, as the body is JSON.
           type: string
+      types:
+        json:
+          format: "application-json"
+          description: "One row as a JSON object, or with `useIterator` false 
a JSON array of all the rows of a poll, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
   - "camel:jackson3"
   - "camel:kamelet"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/mongodb-sink.kamelet.yaml 
b/library/camel-kamelets/src/main/resources/kamelets/mongodb-sink.kamelet.yaml
index 6a11cf3b3..bb0bd0752 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/mongodb-sink.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/mongodb-sink.kamelet.yaml
@@ -116,6 +116,11 @@ spec:
     in:
       mediaType: application/json
   dataTypes:
+    # No 'default:' here on purpose. A default input type of json would run on
+    # every message and turn a Map or a MongoDB Document body into JSON first:
+    # an ObjectId would be stored as an object of its time and a date as text,
+    # a silent change of the stored data. It would give the body type validator
+    # nothing either, as only a binary input type does. See #3117.
     out:
       headers:
         CamelMongoOid:
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/mongodb-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/mongodb-source.kamelet.yaml
index b68b853c5..b0224899c 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/mongodb-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/mongodb-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to pass on records that an application appends to a capped 
collection, such as log entries or events, as they arrive. For a normal 
collection, or to also see updates and deletes, use 
`mongodb-changes-stream-source`. To write documents, use `mongodb-sink`.
 
-      Output: the body is one document as JSON text. An `_id` that is an 
ObjectId comes out as an object with only its time (`timestamp` and `date`), 
not as the ID text, and the format of dates depends on the Camel version. The 
`CamelMongoDbDatabase` and `CamelMongoDbCollection` headers name where the 
document comes from.
+      Output: the body is one document as JSON text in bytes, and the 
`Content-Type` header is `application/json`. An `_id` that is an ObjectId comes 
out as an object with only its time (`timestamp` and `date`), not as the ID 
text, and the format of dates depends on the Camel version. The 
`CamelMongoDbDatabase` and `CamelMongoDbCollection` headers name where the 
document comes from.
 
       Good to know: the collection must be capped (created with a fixed size), 
or the Kamelet fails to start. Each time the integration starts, it reads the 
whole collection again from the start, unless `persistentTailTracking` is true. 
It stores its place only when the integration stops, so after a crash it reads 
again the documents since the last stop. Set either `hosts` or 
`connectionString`. With `hosts`, it connects with TLS by default; set `ssl` to 
false for a MongoDB without TLS,  [...]
     required:
@@ -120,6 +120,7 @@ spec:
         example: trackers
   dataTypes:
     out:
+      default: json
       headers:
         CamelMongoDbDatabase:
           title: Database
@@ -133,6 +134,11 @@ spec:
           title: Content Type
           description: Always `application/json`, as the body is a JSON 
document.
           type: string
+      types:
+        json:
+          format: "application-json"
+          description: "One document as a JSON object, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
     - "camel:kamelet"
     - "camel:mongodb"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/mysql-source.kamelet.yaml 
b/library/camel-kamelets/src/main/resources/kamelets/mysql-source.kamelet.yaml
index f2f62ad8c..99465baa7 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/mysql-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/mysql-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `mysql-sink`.
 
-      Output: the body is one row as JSON text (a stream), an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. 
When `useIterator` is false, the body is instead one JSON array with all the 
rows of a poll. The `Content-Type` header is `application/json`.
+      Output: the body is one row as JSON text in bytes, an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. 
When `useIterator` is false, the body is instead one JSON array with all the 
rows of a poll. The `Content-Type` header is `application/json`.
 
       Good to know: the query runs again `delay` milliseconds after the 
previous run, so the same rows are sent again and again, unless `consumedQuery` 
marks or deletes each row once it is sent and `query` leaves such rows out: for 
example `SELECT * FROM accounts WHERE processed = false` with `UPDATE accounts 
SET processed = true WHERE id = :#id`. When the next step fails for a row, 
`consumedQuery` is not run for it, and the row is read again, unless 
`onConsumeFailed` marks it. A query t [...]
     required:
@@ -143,11 +143,17 @@ spec:
       mediaType: application/json
   dataTypes:
     out:
+      default: json
       headers:
         Content-Type:
           title: Content Type
           description: Always `application/json`, as the body is JSON.
           type: string
+      types:
+        json:
+          format: "application-json"
+          description: "One row as a JSON object, or with `useIterator` false 
a JSON array of all the rows of a poll, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
   - "camel:jackson3"
   - "camel:kamelet"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/oracle-database-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/oracle-database-source.kamelet.yaml
index 2066b2207..936eefad4 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/oracle-database-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/oracle-database-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `oracle-database-sink`.
 
-      Output: the body is one row as JSON text (a stream), an object with the 
column names as keys, such as `{"ID":1,"USERNAME":"oscerd","CITY":"Rome"}` 
(Oracle gives the names in upper case). When `useIterator` is false, the body 
is instead one JSON array with all the rows of a poll. The `Content-Type` 
header is `application/json`.
+      Output: the body is one row as JSON text in bytes, an object with the 
column names as keys, such as `{"ID":1,"USERNAME":"oscerd","CITY":"Rome"}` 
(Oracle gives the names in upper case). When `useIterator` is false, the body 
is instead one JSON array with all the rows of a poll. The `Content-Type` 
header is `application/json`.
 
       Good to know: the query runs again `delay` milliseconds after the 
previous run, so the same rows are sent again and again, unless `consumedQuery` 
marks or deletes each row once it is sent and `query` leaves such rows out: for 
example `SELECT * FROM accounts WHERE processed = false` with `UPDATE accounts 
SET processed = true WHERE id = :#id`. When the next step fails for a row, 
`consumedQuery` is not run for it, and the row is read again, unless 
`onConsumeFailed` marks it. A query t [...]
     required:
@@ -138,11 +138,17 @@ spec:
       mediaType: application/json
   dataTypes:
     out:
+      default: json
       headers:
         Content-Type:
           title: Content Type
           description: Always `application/json`, as the body is JSON.
           type: string
+      types:
+        json:
+          format: "application-json"
+          description: "One row as a JSON object, or with `useIterator` false 
a JSON array of all the rows of a poll, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
   - "camel:jackson3"
   - "camel:kamelet"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/postgresql-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/postgresql-source.kamelet.yaml
index be71ebf95..479f83fd4 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/postgresql-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/postgresql-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `postgresql-sink`.
 
-      Output: the body is one row as JSON text, an object with the column 
names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. When 
`useIterator` is false, the body is instead one JSON array with all the rows of 
a poll. The `Content-Type` header is `application/json`.
+      Output: the body is one row as JSON text in bytes, an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. 
When `useIterator` is false, the body is instead one JSON array with all the 
rows of a poll. The `Content-Type` header is `application/json`.
 
       Good to know: the query runs again `delay` milliseconds after the 
previous run, so the same rows are sent again and again, unless `consumedQuery` 
marks or deletes each row once it is sent and `query` leaves such rows out: for 
example `SELECT * FROM accounts WHERE processed = false` with `UPDATE accounts 
SET processed = true WHERE id = :#id`. When the next step fails for a row, 
`consumedQuery` is not run for it, and the row is read again, unless 
`onConsumeFailed` marks it. A query t [...]
     required:
@@ -143,11 +143,17 @@ spec:
       mediaType: application/json
   dataTypes:
     out:
+      default: json
       headers:
         Content-Type:
           title: Content Type
           description: Always `application/json`, as the body is JSON.
           type: string
+      types:
+        json:
+          format: "application-json"
+          description: "One row as a JSON object, or with `useIterator` false 
a JSON array of all the rows of a poll, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
   - "camel:jackson3"
   - "camel:kamelet"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/snowflake-sink.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/snowflake-sink.kamelet.yaml
index fdac4f04a..f45cac3b7 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/snowflake-sink.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/snowflake-sink.kamelet.yaml
@@ -37,7 +37,7 @@ spec:
 
       Input: the body is one JSON object, as text, such as 
`{"username":"oscerd","city":"Rome"}`. In `query`, write `:#username` where the 
value of the field `username` goes. When the object has no field of that name, 
the header of that name is used instead. Fields that `query` does not name are 
ignored.
 
-      Output: the body afterwards is the JSON object as a Map, and the 
`CamelSqlUpdateCount` header holds the number of rows the statement changed. 
When `query` is a SELECT, the body is instead a List of the rows found, each a 
Map, and the `CamelSqlRowCount` header holds their number.
+      Output: the body afterwards is the JSON object as a Map, and the 
`CamelSqlUpdateCount` header holds the number of rows the statement changed. 
When `query` is a SELECT, the body is instead a List of the rows found, each a 
Map, and the `CamelSqlRowCount` header holds their number. The `Content-Type` 
header is set to `application/json`.
 
       Good to know: a message fails when its body is not a JSON object (a JSON 
array or plain text, for example), or when it has no value for a parameter of 
`query`. The values are sent to the database apart from the SQL text, so the 
content of a message cannot change the statement. Do not write `?` in `query`, 
not even in a quoted string: the Kamelet then fails to start. Log in with 
`password`, or with a key pair in `privateKey` or `privateKeyFile`: a Snowflake 
user of type SERVICE, mea [...]
     required:
@@ -112,6 +112,13 @@ spec:
     in:
       mediaType: application/json
   dataTypes:
+    in:
+      default: json
+      types:
+        json:
+          format: "application-json"
+          description: "One JSON object, as JSON text in bytes."
+          mediaType: application/json
     out:
       headers:
         CamelSqlUpdateCount:
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/snowflake-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/snowflake-source.kamelet.yaml
index 7e186390d..ba7fa9a6a 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/snowflake-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/snowflake-source.kamelet.yaml
@@ -35,7 +35,7 @@ spec:
 
       Use it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `snowflake-sink`.
 
-      Output: the body is one row as JSON text, an object with the column 
names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. The 
`Content-Type` header is `application/json`.
+      Output: the body is one row as JSON text in bytes, an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. The 
`Content-Type` header is `application/json`.
 
       Good to know: the query runs again `delay` milliseconds after the 
previous run, so the same rows are sent again and again, unless `consumedQuery` 
marks or deletes each row once it is sent and `query` leaves such rows out: for 
example `SELECT * FROM accounts WHERE processed = false` with `UPDATE accounts 
SET processed = true WHERE id = :#id`. When the next step fails for a row, 
`consumedQuery` is not run for it, and the row is read again. A query that 
finds no rows sends nothing. `q [...]
     required:
@@ -121,11 +121,17 @@ spec:
       mediaType: application/json
   dataTypes:
     out:
+      default: json
       headers:
         Content-Type:
           title: Content Type
           description: Always `application/json`, as the body is a JSON object.
           type: string
+      types:
+        json:
+          format: "application-json"
+          description: "One row as a JSON object, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
   - "camel:jackson3"
   - "camel:kamelet"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/solr-source.kamelet.yaml 
b/library/camel-kamelets/src/main/resources/kamelets/solr-source.kamelet.yaml
index 704fe6f5f..49229cefe 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/solr-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/solr-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to watch a Solr collection on a schedule, for example to send the 
documents that match a query to another system. To add documents to Solr, use 
`solr-sink`.
 
-      Output: the body is JSON text (a stream), the answer of Solr: 
`responseHeader`, and under `response` the list of the documents found, each 
with its fields. The `Content-Type` header is `application/json`, and the 
`CamelSolrOperation` (`SEARCH`), `CamelSolrQueryString` (the `query`) and 
`CamelSolrCollection` (the `collection`) headers are set.
+      Output: the body is JSON text in bytes, the answer of Solr: 
`responseHeader`, and under `response` the list of the documents found, each 
with its fields. The `Content-Type` header is `application/json`, and the 
`CamelSolrOperation` (`SEARCH`), `CamelSolrQueryString` (the `query`) and 
`CamelSolrCollection` (the `collection`) headers are set.
 
       Good to know: every query returns all the matching documents again, not 
only the new ones; filter on a date in the query to get only new documents. 
Each query returns only the first documents found: as many as `size`, or 10 
with the usual Solr settings when `size` is not set. It connects with plain 
HTTP by default; set `enableSSL` to true for a Solr that is reached with HTTPS, 
and give the certificate in `certificate` when Solr uses a self-signed 
certificate. The query runs on the  [...]
     required:
@@ -113,6 +113,14 @@ spec:
   types:
     out:
       mediaType: application/json
+  dataTypes:
+    out:
+      default: json
+      types:
+        json:
+          format: "application-json"
+          description: "The answer of Solr as a JSON object, as JSON text in 
bytes."
+          mediaType: application/json
   dependencies:
   - "camel:solr"
   - "camel:timer"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/sqlserver-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/sqlserver-source.kamelet.yaml
index 16f5d3170..c74ff5fd2 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/sqlserver-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/sqlserver-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to pick up the rows that another application adds to a table, 
such as new orders or events, and pass them on to another system. To write 
rows, use `sqlserver-sink`.
 
-      Output: the body is one row as JSON text (a stream), an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. 
When `useIterator` is false, the body is instead one JSON array with all the 
rows of a poll. The `Content-Type` header is `application/json`.
+      Output: the body is one row as JSON text in bytes, an object with the 
column names as keys, such as `{"id":1,"username":"oscerd","city":"Rome"}`. 
When `useIterator` is false, the body is instead one JSON array with all the 
rows of a poll. The `Content-Type` header is `application/json`.
 
       Good to know: the query runs again `delay` milliseconds after the 
previous run, so the same rows are sent again and again, unless `consumedQuery` 
marks or deletes each row once it is sent and `query` leaves such rows out: for 
example `SELECT * FROM accounts WHERE processed = false` with `UPDATE accounts 
SET processed = true WHERE id = :#id`. When the next step fails for a row, 
`consumedQuery` is not run for it, and the row is read again, unless 
`onConsumeFailed` marks it. A query t [...]
     required:
@@ -148,11 +148,17 @@ spec:
       mediaType: application/json
   dataTypes:
     out:
+      default: json
       headers:
         Content-Type:
           title: Content Type
           description: Always `application/json`, as the body is JSON.
           type: string
+      types:
+        json:
+          format: "application-json"
+          description: "One row as a JSON object, or with `useIterator` false 
a JSON array of all the rows of a poll, as JSON text in bytes."
+          mediaType: application/json
   dependencies:
   - "camel:jackson3"
   - "camel:kamelet"
diff --git a/tests/camel-kamelets-itest/src/test/java/PostgresIT.java 
b/tests/camel-kamelets-itest/src/test/java/PostgresIT.java
index 0bdb082ef..1421ef2c5 100644
--- a/tests/camel-kamelets-itest/src/test/java/PostgresIT.java
+++ b/tests/camel-kamelets-itest/src/test/java/PostgresIT.java
@@ -18,14 +18,49 @@
 import java.util.stream.Stream;
 
 import org.citrusframework.api.common.TestLoader;
+import org.citrusframework.container.SequenceAfterTest;
+import org.citrusframework.container.SequenceBeforeTest;
+import org.citrusframework.http.server.HttpServer;
 import org.citrusframework.junit.jupiter.CitrusSupport;
 import org.citrusframework.junit.jupiter.CitrusTestFactory;
 import org.citrusframework.junit.jupiter.CitrusTestFactorySupport;
+import org.citrusframework.spi.BindToRegistry;
+import org.citrusframework.util.SocketUtils;
 import org.junit.jupiter.api.DynamicTest;
 
+import static 
org.citrusframework.actions.CreateVariablesAction.Builder.createVariables;
+import static 
org.citrusframework.actions.PurgeEndpointAction.Builder.purgeEndpoints;
+import static org.citrusframework.http.endpoint.builder.HttpEndpoints.http;
+
 @CitrusSupport
 public class PostgresIT {
 
+    private static final String TESTS = "postgresql-.*";
+
+    private final int postgresServerPort = SocketUtils.findAvailableTcpPort();
+
+    @BindToRegistry
+    HttpServer postgresServer = http()
+                .server()
+                .port(postgresServerPort)
+                .timeout(60000L)
+                .autoStart(true)
+                .build();
+
+    @BindToRegistry
+    public SequenceBeforeTest beforePostgres() {
+        return new SequenceBeforeTest.Builder().onTests(TESTS).actions(
+                createVariables().variable("postgres.server.port", 
String.valueOf(postgresServerPort))
+        ).build();
+    }
+
+    @BindToRegistry
+    public SequenceAfterTest afterPostgres() {
+        return new SequenceAfterTest.Builder().onTests(TESTS).actions(
+                purgeEndpoints().endpoint(postgresServer)
+        ).build();
+    }
+
     @CitrusTestFactory
     public Stream<DynamicTest> postgres() {
         return 
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("postgres");
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/database/mariadb/mariadb-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/database/mariadb/mariadb-source-route.citrus.it.yaml
index 2624f91da..046cb1ec0 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/database/mariadb/mariadb-source-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/database/mariadb/mariadb-source-route.citrus.it.yaml
@@ -58,7 +58,7 @@ actions:
                 - name: "http.sink.url"
                   value: "http://localhost:${http.server.port}";
 
-  # The row comes out of the Kamelet as a JSON object
+  # The row comes out of the Kamelet as a JSON object, as JSON text in bytes 
(the json output data type)
   - http:
       server: "httpServer"
       receiveRequest:
@@ -66,7 +66,7 @@ actions:
           path: "/result"
           headers:
             - name: "X-Body-Type"
-              value: 'org.apache.camel.converter.stream.InputStreamCache'
+              value: '[B'
             - name: "X-Content-Type"
               value: 'ct=application/json'
           body:
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/database/mysql/mysql-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/database/mysql/mysql-source-route.citrus.it.yaml
index 533b18f2d..1e8c73d73 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/database/mysql/mysql-source-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/database/mysql/mysql-source-route.citrus.it.yaml
@@ -58,7 +58,7 @@ actions:
                 - name: "http.sink.url"
                   value: "http://localhost:${http.server.port}";
 
-  # The row comes out of the Kamelet as a JSON object
+  # The row comes out of the Kamelet as a JSON object, as JSON text in bytes 
(the json output data type)
   - http:
       server: "httpServer"
       receiveRequest:
@@ -66,7 +66,7 @@ actions:
           path: "/result"
           headers:
             - name: "X-Body-Type"
-              value: 'org.apache.camel.converter.stream.InputStreamCache'
+              value: '[B'
             - name: "X-Content-Type"
               value: 'ct=application/json'
           body:
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/database/oracle/oracle-database-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/database/oracle/oracle-database-source-route.citrus.it.yaml
index ac532ce63..95cffd6a7 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/database/oracle/oracle-database-source-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/database/oracle/oracle-database-source-route.citrus.it.yaml
@@ -67,7 +67,7 @@ actions:
                 - name: "http.sink.url"
                   value: "http://localhost:${http.server.port}";
 
-  # The row comes out of the Kamelet as a JSON object
+  # The row comes out of the Kamelet as a JSON object, as JSON text in bytes 
(the json output data type)
   - http:
       server: "httpServer"
       receiveRequest:
@@ -75,7 +75,7 @@ actions:
           path: "/result"
           headers:
             - name: "X-Body-Type"
-              value: 'org.apache.camel.converter.stream.InputStreamCache'
+              value: '[B'
             - name: "X-Content-Type"
               value: 'ct=application/json'
           body:
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/database/sqlserver/sqlserver-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/database/sqlserver/sqlserver-source-route.citrus.it.yaml
index f770a6937..81229e969 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/database/sqlserver/sqlserver-source-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/database/sqlserver/sqlserver-source-route.citrus.it.yaml
@@ -71,7 +71,7 @@ actions:
                 - name: "http.sink.url"
                   value: "http://localhost:${http.server.port}";
 
-  # The row comes out of the Kamelet as a JSON object
+  # The row comes out of the Kamelet as a JSON object, as JSON text in bytes 
(the json output data type)
   - http:
       server: "httpServer"
       receiveRequest:
@@ -79,7 +79,7 @@ actions:
           path: "/result"
           headers:
             - name: "X-Body-Type"
-              value: 'org.apache.camel.converter.stream.InputStreamCache'
+              value: '[B'
             - name: "X-Content-Type"
               value: 'ct=application/json'
           body:
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/mongo/findOrder.groovy 
b/tests/camel-kamelets-itest/src/test/resources/mongo/findOrder.groovy
new file mode 100644
index 000000000..dea3a474a
--- /dev/null
+++ b/tests/camel-kamelets-itest/src/test/resources/mongo/findOrder.groovy
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+// Checks the document "order-1" in the collection "testcol" of the database 
"testdb": it must be
+// equal to the JSON object in the test variable mongodb.expected.
+
+import com.mongodb.client.MongoClients
+import com.mongodb.client.model.Filters
+import org.bson.Document
+import org.citrusframework.exceptions.ValidationException
+
+def expected = Document.parse(context.getVariable('mongodb.expected'))
+def client = 
MongoClients.create('mongodb://${CITRUS_TESTCONTAINERS_MONGODB_HOST}:${CITRUS_TESTCONTAINERS_MONGODB_PORT}')
+try {
+    def stored = 
client.getDatabase('testdb').getCollection('testcol').find(Filters.eq('_id', 
'order-1')).first()
+    if (stored != expected) {
+        throw new ValidationException('Expected the stored document ' + 
expected.toJson() + ', but it is ' + stored?.toJson())
+    }
+} finally {
+    client.close()
+}
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/mongo/mongodb-sink-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/mongo/mongodb-sink-route.citrus.it.yaml
index 892ac025c..4605f9b65 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/mongo/mongodb-sink-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/mongo/mongodb-sink-route.citrus.it.yaml
@@ -22,7 +22,8 @@ actions:
       start:
         mongodb: {}
 
-  # Create Camel JBang integration (sink)
+  # Create Camel JBang integration (sink): insert, save and update the 
document "order-1".
+  # The route waits for the answer of each HTTP request, so the stored 
document is checked before the answer.
   - camel:
       cli:
         run:
@@ -31,10 +32,94 @@ actions:
             file: "mongo/mongodb-sink-route.yaml"
             systemProperties:
               file: "mongo/application.properties"
+              properties:
+                - name: "http.sink.url"
+                  value: "http://localhost:${mongo.server.port}";
 
-  # Verify MongoDB sink executed
-  - camel:
-      cli:
-        verify:
-          integration: "mongodb-sink-route"
-          logMessage: "hello-mongodb"
+  # insert: the body afterwards is the document that was stored; the Kamelet 
sets no Content-Type
+  - http:
+      server: "mongoServer"
+      receiveRequest:
+        POST:
+          path: "/insert"
+          headers:
+            - name: "X-Body-Type"
+              value: 'org.bson.Document'
+            - name: "X-Content-Type"
+              value: 'ct='
+            - name: "X-Oid"
+              value: 'order-1'
+          body:
+            data: '{"_id":"order-1","item":"book","qty":2}'
+  - createVariables:
+      variables:
+        - name: "mongodb.expected"
+          value: '{"_id":"order-1","item":"book","qty":2}'
+  - groovy:
+      script:
+        file: "mongo/findOrder.groovy"
+  - http:
+      server: "mongoServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
+
+  # save: the whole document is replaced; the body afterwards is the result of 
MongoDB
+  - http:
+      server: "mongoServer"
+      receiveRequest:
+        POST:
+          path: "/save"
+          headers:
+            - name: "X-Body-Type"
+              value: "@startsWith('com.mongodb.client.result.UpdateResult')@"
+            - name: "X-Content-Type"
+              value: 'ct='
+            - name: "X-Oid"
+              value: 'order-1'
+  - createVariables:
+      variables:
+        - name: "mongodb.expected"
+          value: '{"_id":"order-1","item":"book","qty":5}'
+  - groovy:
+      script:
+        file: "mongo/findOrder.groovy"
+  - http:
+      server: "mongoServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
+
+  # update: the filter matches the document, and $set adds the field status; 
the body afterwards is the result of MongoDB
+  - http:
+      server: "mongoServer"
+      receiveRequest:
+        POST:
+          path: "/update"
+          headers:
+            - name: "X-Body-Type"
+              value: "@startsWith('com.mongodb.client.result.UpdateResult')@"
+            - name: "X-Content-Type"
+              value: 'ct='
+            - name: "X-Matched"
+              value: '1'
+            - name: "X-Affected"
+              value: '1'
+  - createVariables:
+      variables:
+        - name: "mongodb.expected"
+          value: '{"_id":"order-1","item":"book","qty":5,"status":"shipped"}'
+  - groovy:
+      script:
+        file: "mongo/findOrder.groovy"
+  - http:
+      server: "mongoServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/mongo/mongodb-sink-route.yaml 
b/tests/camel-kamelets-itest/src/test/resources/mongo/mongodb-sink-route.yaml
index b52785ded..e5f4bafd1 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/mongo/mongodb-sink-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/mongo/mongodb-sink-route.yaml
@@ -15,16 +15,17 @@
 # limitations under the License.
 # ---------------------------------------------------------------------------
 
+# insert, save and update the document "order-1" with the Kamelet, one after 
the other, and send what each
+# leaves on the message to the HTTP server of the test
 - route:
     from:
       uri: "timer:tick"
       parameters:
-        period: "10000"
         repeatCount: 1
       steps:
+      # insert: a new document, as JSON text
       - setBody:
-          constant: '{"name": "mongo-test", "value": "hello-mongodb"}'
-      - log: "${body}"
+          constant: '{"_id":"order-1","item":"book","qty":2}'
       - to:
           uri: "kamelet:mongodb-sink"
           parameters:
@@ -34,3 +35,80 @@
             ssl: "{{mongodb.ssl}}"
             sslValidationEnabled: "{{mongodb.sslValidationEnabled}}"
             createCollection: true
+      - setHeader:
+          name: X-Body-Type
+          simple: "${body.getClass().getName()}"
+      - setHeader:
+          name: X-Content-Type
+          simple: "ct=${header.Content-Type}"
+      # the HTTP component does not send the headers that start with Camel
+      - setHeader:
+          name: X-Oid
+          simple: "${header.CamelMongoOid}"
+      - to:
+          uri: "kamelet:json-serialize-action"
+      - to:
+          uri: "{{http.sink.url}}/insert"
+
+      # save: replaces the whole document that has the same _id
+      # start without the headers of the previous step and its HTTP answer
+      - removeHeaders:
+          pattern: "*"
+      - setBody:
+          constant: '{"_id":"order-1","item":"book","qty":5}'
+      - to:
+          uri: "kamelet:mongodb-sink"
+          parameters:
+            hosts: "{{mongodb.hosts}}"
+            collection: "{{mongodb.collection}}"
+            database: "{{mongodb.database}}"
+            ssl: "{{mongodb.ssl}}"
+            sslValidationEnabled: "{{mongodb.sslValidationEnabled}}"
+            createCollection: true
+            operation: save
+      - setHeader:
+          name: X-Body-Type
+          simple: "${body.getClass().getName()}"
+      - setHeader:
+          name: X-Content-Type
+          simple: "ct=${header.Content-Type}"
+      - setHeader:
+          name: X-Oid
+          simple: "${header.CamelMongoOid}"
+      - setBody:
+          constant: 'saved'
+      - to:
+          uri: "{{http.sink.url}}/save"
+
+      # update: the filter and the changes, as a JSON array
+      # start without the headers of the previous step and its HTTP answer
+      - removeHeaders:
+          pattern: "*"
+      - setBody:
+          constant: '[{"_id":"order-1"},{"$set":{"status":"shipped"}}]'
+      - to:
+          uri: "kamelet:mongodb-sink"
+          parameters:
+            hosts: "{{mongodb.hosts}}"
+            collection: "{{mongodb.collection}}"
+            database: "{{mongodb.database}}"
+            ssl: "{{mongodb.ssl}}"
+            sslValidationEnabled: "{{mongodb.sslValidationEnabled}}"
+            createCollection: true
+            operation: update
+      - setHeader:
+          name: X-Body-Type
+          simple: "${body.getClass().getName()}"
+      - setHeader:
+          name: X-Content-Type
+          simple: "ct=${header.Content-Type}"
+      - setHeader:
+          name: X-Matched
+          simple: "${header.CamelMongoDbRecordsMatched}"
+      - setHeader:
+          name: X-Affected
+          simple: "${header.CamelMongoDbRecordsAffected}"
+      - setBody:
+          constant: 'updated'
+      - to:
+          uri: "{{http.sink.url}}/update"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/mongo/mongodb-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/mongo/mongodb-source-route.citrus.it.yaml
index 4dcf9ab0e..6c98b4461 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/mongo/mongodb-source-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/mongo/mongodb-source-route.citrus.it.yaml
@@ -36,10 +36,27 @@ actions:
             file: "mongo/mongodb-source-route.yaml"
             systemProperties:
               file: "mongo/application.properties"
+              properties:
+                - name: "http.sink.url"
+                  value: "http://localhost:${mongo.server.port}";
 
-  # Verify MongoDB source picked up the document
-  - camel:
-      cli:
-        verify:
-          integration: "mongodb-source-route"
-          logMessage: "hello-from-mongo"
+  # The document comes out of the Kamelet as JSON text in bytes; its ObjectId 
_id is an object of its time
+  - http:
+      server: "mongoServer"
+      receiveRequest:
+        POST:
+          path: "/result"
+          headers:
+            - name: "X-Body-Type"
+              value: '[B'
+            - name: "X-Content-Type"
+              value: 'ct=application/json'
+          body:
+            data: 
'{"_id":"@ignore@","name":"source-test","value":"hello-from-mongo"}'
+  - http:
+      server: "mongoServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/mongo/mongodb-source-route.yaml 
b/tests/camel-kamelets-itest/src/test/resources/mongo/mongodb-source-route.yaml
index 9ab1d865a..71d565f00 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/mongo/mongodb-source-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/mongo/mongodb-source-route.yaml
@@ -26,5 +26,12 @@
         sslValidationEnabled: "{{mongodb.sslValidationEnabled}}"
         persistentTailTracking: false
       steps:
-      - to:
-          uri: "kamelet:log-sink"
+        # what the Kamelet gives: the Java type of the body and the 
Content-Type
+        - setHeader:
+            name: X-Body-Type
+            simple: "${body.getClass().getName()}"
+        - setHeader:
+            name: X-Content-Type
+            simple: "ct=${header.Content-Type}"
+        - to:
+            uri: "{{http.sink.url}}/result"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/postgres/postgresql-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/postgres/postgresql-source-route.citrus.it.yaml
index 38ce6bd21..f231a460d 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/postgres/postgresql-source-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/postgres/postgresql-source-route.citrus.it.yaml
@@ -36,10 +36,27 @@ actions:
             file: "postgres/postgresql-source-route.yaml"
             systemProperties:
               file: "postgres/application.properties"
+              properties:
+                - name: "http.sink.url"
+                  value: "http://localhost:${postgres.server.port}";
 
-  # Verify PostgreSQL source
-  - camel:
-      cli:
-        verify:
-          integration: "postgresql-source-route"
-          logMessage: "hello-postgres"
+  # The row comes out of the Kamelet as a JSON object, as JSON text in bytes 
(the json output data type)
+  - http:
+      server: "postgresServer"
+      receiveRequest:
+        POST:
+          path: "/result"
+          headers:
+            - name: "X-Body-Type"
+              value: '[B'
+            - name: "X-Content-Type"
+              value: 'ct=application/json'
+          body:
+            data: '{"id":1,"name":"test-entry","value":"hello-postgres"}'
+  - http:
+      server: "postgresServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/postgres/postgresql-source-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/postgres/postgresql-source-route.yaml
index 6d6801088..1c588852e 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/postgres/postgresql-source-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/postgres/postgresql-source-route.yaml
@@ -25,7 +25,15 @@
         username: "{{postgresql.username}}"
         password: "{{postgresql.password}}"
         query: "SELECT * FROM test_data"
+        consumedQuery: "DELETE FROM test_data WHERE id = :#id"
         delay: 1000
       steps:
-      - to:
-          uri: "kamelet:log-sink"
+        # what the Kamelet gives: the Java type of the body and the 
Content-Type
+        - setHeader:
+            name: X-Body-Type
+            simple: "${body.getClass().getName()}"
+        - setHeader:
+            name: X-Content-Type
+            simple: "ct=${header.Content-Type}"
+        - to:
+            uri: "{{http.sink.url}}/result"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/solr/solr-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/solr/solr-source-route.citrus.it.yaml
index 73c2cc582..93e9b3dde 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/solr/solr-source-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/solr/solr-source-route.citrus.it.yaml
@@ -63,7 +63,7 @@ actions:
                 - name: "http.sink.url"
                   value: "http://localhost:${search.server.port}";
 
-  # the answer of Solr as JSON: the documents found are the list under response
+  # the answer of Solr as JSON text in bytes: the documents found are the list 
under response
   - http:
       server: "searchServer"
       receiveRequest:
@@ -71,7 +71,7 @@ actions:
           path: "/result"
           headers:
             - name: "X-Body-Type"
-              value: 'org.apache.camel.converter.stream.InputStreamCache'
+              value: '[B'
             - name: "X-Content-Type"
               value: 'ct=application/json'
             - name: "X-Solr-Operation"

Reply via email to