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 bceb9c1f0 chore: the no-op data type on the Kamelets that leave the
body as it is (#3117) (#3308)
bceb9c1f0 is described below
commit bceb9c1f0f29a5246dfbdcc9df48ebe583406c4d
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 20 21:23:48 2026 +0100
chore: the no-op data type on the Kamelets that leave the body as it is
(#3117) (#3308)
20 actions get `in` and `out` defaults of `application-x-unchanged`
(CAMEL-27269), and 5 sinks get an `in` default. These are the actions
that delay, throttle, filter, set or drop headers, route Kafka records,
commit Kafka offsets, log, resolve a schema, validate JSON or sign, and
the sinks log-sink, aws-cloudwatch-sink, aws-ec2-sink,
aws-timestream-query-sink and aws-bedrock-agent-sink. Their transformer
leaves the body, its type and the headers as they are, so the YAML
validator knows that the body after the Kamelet is the body before it.
The headers declared before are kept.
The only visible change is the message's data type, which is now
application-x-unchanged after these Kamelets.
The Citrus tests of these Kamelets now check the body class and the
Content-Type after the Kamelet. The guides describe the new data type.
Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
docs/modules/ROOT/pages/development.adoc | 4 +++
docs/modules/ROOT/pages/documenting.adoc | 40 +++++++++++++++++++---
kamelets/aws-bedrock-agent-sink.kamelet.yaml | 5 +++
kamelets/aws-cloudwatch-sink.kamelet.yaml | 5 +++
kamelets/aws-ec2-sink.kamelet.yaml | 5 +++
kamelets/aws-timestream-query-sink.kamelet.yaml | 5 +++
kamelets/delay-action.kamelet.yaml | 13 +++++++
kamelets/drop-header-action.kamelet.yaml | 13 +++++++
kamelets/drop-headers-action.kamelet.yaml | 13 +++++++
kamelets/has-header-filter-action.kamelet.yaml | 13 +++++++
kamelets/header-matches-filter-action.kamelet.yaml | 13 +++++++
kamelets/insert-header-action.kamelet.yaml | 13 +++++++
kamelets/is-tombstone-filter-action.kamelet.yaml | 13 +++++++
kamelets/json-schema-validator-action.kamelet.yaml | 13 +++++++
.../kafka-batch-manual-commit-action.kamelet.yaml | 11 ++++++
kamelets/kafka-manual-commit-action.kamelet.yaml | 11 ++++++
kamelets/log-action.kamelet.yaml | 13 +++++++
kamelets/log-sink.kamelet.yaml | 7 ++++
kamelets/pqc-signature-action.kamelet.yaml | 10 ++++++
kamelets/predicate-filter-action.kamelet.yaml | 13 +++++++
kamelets/regex-router-action.kamelet.yaml | 10 ++++++
kamelets/resolve-pojo-schema-action.kamelet.yaml | 13 +++++++
kamelets/set-kafka-key-action.kamelet.yaml | 11 ++++++
kamelets/simple-filter-action.kamelet.yaml | 13 +++++++
kamelets/throttle-action.kamelet.yaml | 13 +++++++
kamelets/timestamp-router-action.kamelet.yaml | 10 ++++++
.../topic-name-matches-filter-action.kamelet.yaml | 11 ++++++
.../kamelets/aws-bedrock-agent-sink.kamelet.yaml | 5 +++
.../kamelets/aws-cloudwatch-sink.kamelet.yaml | 5 +++
.../resources/kamelets/aws-ec2-sink.kamelet.yaml | 5 +++
.../aws-timestream-query-sink.kamelet.yaml | 5 +++
.../resources/kamelets/delay-action.kamelet.yaml | 13 +++++++
.../kamelets/drop-header-action.kamelet.yaml | 13 +++++++
.../kamelets/drop-headers-action.kamelet.yaml | 13 +++++++
.../kamelets/has-header-filter-action.kamelet.yaml | 13 +++++++
.../header-matches-filter-action.kamelet.yaml | 13 +++++++
.../kamelets/insert-header-action.kamelet.yaml | 13 +++++++
.../is-tombstone-filter-action.kamelet.yaml | 13 +++++++
.../json-schema-validator-action.kamelet.yaml | 13 +++++++
.../kafka-batch-manual-commit-action.kamelet.yaml | 11 ++++++
.../kafka-manual-commit-action.kamelet.yaml | 11 ++++++
.../resources/kamelets/log-action.kamelet.yaml | 13 +++++++
.../main/resources/kamelets/log-sink.kamelet.yaml | 7 ++++
.../kamelets/pqc-signature-action.kamelet.yaml | 10 ++++++
.../kamelets/predicate-filter-action.kamelet.yaml | 13 +++++++
.../kamelets/regex-router-action.kamelet.yaml | 10 ++++++
.../resolve-pojo-schema-action.kamelet.yaml | 13 +++++++
.../kamelets/set-kafka-key-action.kamelet.yaml | 11 ++++++
.../kamelets/simple-filter-action.kamelet.yaml | 13 +++++++
.../kamelets/throttle-action.kamelet.yaml | 13 +++++++
.../kamelets/timestamp-router-action.kamelet.yaml | 10 ++++++
.../topic-name-matches-filter-action.kamelet.yaml | 11 ++++++
.../delay/delay-action-route.citrus.it.yaml | 5 +++
.../test/resources/delay/delay-action-route.yaml | 7 ++++
.../has-header-filter-action-route.citrus.it.yaml | 4 +++
.../filter/has-header-filter-action-route.yaml | 7 ++++
...ader-matches-filter-action-route.citrus.it.yaml | 4 +++
.../filter/header-matches-filter-action-route.yaml | 7 ++++
.../predicate-filter-action-route.citrus.it.yaml | 5 +++
.../filter/predicate-filter-action-route.yaml | 7 ++++
.../simple-filter-action-route.citrus.it.yaml | 5 +++
.../filter/simple-filter-action-route.yaml | 7 ++++
.../header/drop-header-action-route.citrus.it.yaml | 4 +++
.../resources/header/drop-header-action-route.yaml | 7 ++++
.../drop-headers-action-route.citrus.it.yaml | 4 +++
.../header/drop-headers-action-route.yaml | 7 ++++
.../insert-header-action-route.citrus.it.yaml | 4 +++
.../header/insert-header-action-route.yaml | 7 ++++
.../kafka/kafka-batch-source-route.citrus.it.yaml | 4 +++
.../resources/kafka/kafka-batch-source-route.yaml | 7 ++++
...kafka-manual-commit-action-route.citrus.it.yaml | 2 ++
.../kafka/kafka-manual-commit-action-route.yaml | 3 ++
.../regex-router-action-route.citrus.it.yaml | 28 +++++++++++++++
.../kafkarouter/regex-router-action-route.yaml | 12 +++++++
.../timestamp-router-action-route.citrus.it.yaml | 28 +++++++++++++++
.../kafkarouter/timestamp-router-action-route.yaml | 12 +++++++
...name-matches-filter-action-route.citrus.it.yaml | 26 ++++++++++++++
.../topic-name-matches-filter-action-route.yaml | 9 +++++
.../resources/log/log-sink-route.citrus.it.yaml | 24 +++++++++++++
.../src/test/resources/log/log-sink-route.yaml | 10 ++++++
.../throttle/throttle-action-route.citrus.it.yaml | 5 +++
.../resources/throttle/throttle-action-route.yaml | 7 ++++
82 files changed, 848 insertions(+), 4 deletions(-)
diff --git a/docs/modules/ROOT/pages/development.adoc
b/docs/modules/ROOT/pages/development.adoc
index 82736e8b5..bd6289a6b 100644
--- a/docs/modules/ROOT/pages/development.adoc
+++ b/docs/modules/ROOT/pages/development.adoc
@@ -489,6 +489,10 @@ spec:
<1> A `headers` block with no `types` and no `default`. Nothing is
transformed; this only
describes what the Kamelet emits.
+A sink or an action that leaves the body as it is also declares the data type
+`application-x-unchanged` as its `default`, next to its headers, so the YAML
validator knows that
+the body after it is the body before it. See
xref:documenting.adoc#documenting-unchanged[Documenting a Kamelet].
+
A source declares the headers it emits under `out`; a sink or action declares
the ones it
consumes under `in`.
diff --git a/docs/modules/ROOT/pages/documenting.adoc
b/docs/modules/ROOT/pages/documenting.adoc
index 039a0a104..c8055eb75 100644
--- a/docs/modules/ROOT/pages/documenting.adoc
+++ b/docs/modules/ROOT/pages/documenting.adoc
@@ -187,10 +187,10 @@ The description tells a person what goes in and what
comes out. `spec.dataTypes`
=== Headers
A Kamelet declares the headers it reads under `in` and the headers it sets
under `out`, each with a `title`, a
-`description` and a `type`. A Kamelet that transforms nothing declares the
`headers` block alone, without `types` and
-without `default`: it changes nothing at runtime, and the catalog API
(`getKameletSupportedHeaders`) answers with it
-instead of with the headers of the Camel component. See the
xref:development.adoc[Kamelets Developer Guide], section
-_Declaring headers without a transformation_.
+`description` and a `type`. A `headers` block alone, without `types` and
without `default`, changes nothing at
+runtime, and the catalog API (`getKameletSupportedHeaders`) answers with it
instead of with the headers of the Camel
+component. See the xref:development.adoc[Kamelets Developer Guide], section
_Declaring headers without a
+transformation_. A Kamelet that leaves the body as it is also declares the
<<documenting-unchanged,`application-x-unchanged` data type>>.
[source,yaml]
----
@@ -217,6 +217,38 @@ Kamelet route and runs its transformer on every message.
For example, `log-sink`
`application-octet-stream` turns a `String` body into a `byte[]` and adds a
`Content-Type` header. Adding a `default`
to an existing Kamelet therefore changes what it does: test it, and add a note
to the upgrade guide.
+[[documenting-unchanged]]
+A Kamelet that leaves the body as it is, or does not read it, such as a
filter, an action that only sets headers, or
+`log-sink`, declares the data type `application-x-unchanged` as its `default`:
`in` and `out` for an action, `in` for a
+sink. Its transformer leaves the body, its type and the headers as they are,
and sets no `Content-Type`, so the YAML
+validator knows that the body after the Kamelet is the body before it. Keep
the `headers` next to it:
+
+[source,yaml]
+----
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
+ out:
+ default: unchanged
+ headers:
+ CamelKafkaKey:
+ title: Kafka Key
+ description: The value of the header named by `headerName`.
+ type: string
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
+----
+
+It has no media type. Camel still records it as the data type of the message,
so the data type an earlier Kamelet set,
+such as `application-json`, is forgotten: a Kamelet after it with an `in`
default runs its transformer again instead
+of skipping it.
+
A data type in `types` without a `default` is not run.
`camel_catalog_kamelet_doc` still shows it with its body, but
the YAML validator does not follow it. Which of the two the catalog should use
to describe the body of all its
Kamelets is open, in
https://github.com/apache/camel-kamelets/issues/3117[#3117].
diff --git a/kamelets/aws-bedrock-agent-sink.kamelet.yaml
b/kamelets/aws-bedrock-agent-sink.kamelet.yaml
index 645e7e423..f72839e00 100644
--- a/kamelets/aws-bedrock-agent-sink.kamelet.yaml
+++ b/kamelets/aws-bedrock-agent-sink.kamelet.yaml
@@ -138,11 +138,16 @@ spec:
example: HTTP
dataTypes:
in:
+ default: unchanged
headers:
CamelAwsBedrockAgentIngestionJobId:
title: Ingestion Job ID
description: The ID of the job to look up with `getIngestionJob`, as
given by `startIngestionJob`.
type: string
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not used."
out:
headers:
CamelAwsBedrockAgentIngestionJobStatus:
diff --git a/kamelets/aws-cloudwatch-sink.kamelet.yaml
b/kamelets/aws-cloudwatch-sink.kamelet.yaml
index 993b913a5..204c20c7e 100644
--- a/kamelets/aws-cloudwatch-sink.kamelet.yaml
+++ b/kamelets/aws-cloudwatch-sink.kamelet.yaml
@@ -145,6 +145,7 @@ spec:
example: HTTP
dataTypes:
in:
+ default: unchanged
headers:
metric-name:
title: Metric Name
@@ -170,6 +171,10 @@ spec:
title: Metric Timestamp
description: The time of the data point, as a Java `Instant` or
`Date`; text is ignored. `ce-metrictimestamp` works too. When it is not set,
the time it is sent is used.
type: object
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not changed."
dependencies:
- "camel:aws2-cw"
- "camel:kamelet"
diff --git a/kamelets/aws-ec2-sink.kamelet.yaml
b/kamelets/aws-ec2-sink.kamelet.yaml
index a94ff47cd..2bfd7da57 100644
--- a/kamelets/aws-ec2-sink.kamelet.yaml
+++ b/kamelets/aws-ec2-sink.kamelet.yaml
@@ -128,6 +128,7 @@ spec:
enum: ["describeInstancesStatus", "describeInstances",
"startInstances", "stopInstances", "rebootInstances"]
dataTypes:
in:
+ default: unchanged
headers:
instanceIds:
title: Instance IDs
@@ -137,6 +138,10 @@ spec:
title: Instance IDs (CloudEvents)
description: The IDs of the instances, when the message is a
CloudEvent. Used only when `instanceIds` is not set.
type: string
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not used."
out:
headers:
CamelAwsEC2NextToken:
diff --git a/kamelets/aws-timestream-query-sink.kamelet.yaml
b/kamelets/aws-timestream-query-sink.kamelet.yaml
index eaa5d8b02..ac29bf1a3 100644
--- a/kamelets/aws-timestream-query-sink.kamelet.yaml
+++ b/kamelets/aws-timestream-query-sink.kamelet.yaml
@@ -121,6 +121,7 @@ spec:
example: HTTP
dataTypes:
in:
+ default: unchanged
headers:
query:
title: Query
@@ -130,6 +131,10 @@ spec:
title: Query (CloudEvents)
description: The SQL query to run, when the message is a CloudEvent.
Used only when `query` is not set.
type: string
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not used."
dependencies:
- "camel:aws2-timestream"
- "camel:kamelet"
diff --git a/kamelets/delay-action.kamelet.yaml
b/kamelets/delay-action.kamelet.yaml
index 655997955..413a29a83 100644
--- a/kamelets/delay-action.kamelet.yaml
+++ b/kamelets/delay-action.kamelet.yaml
@@ -48,6 +48,19 @@ spec:
description: "How long to hold each message, in milliseconds. For
example, 1000 is one second."
type: integer
example: 1000
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git a/kamelets/drop-header-action.kamelet.yaml
b/kamelets/drop-header-action.kamelet.yaml
index b1b7e576a..d1241e422 100644
--- a/kamelets/drop-header-action.kamelet.yaml
+++ b/kamelets/drop-header-action.kamelet.yaml
@@ -50,6 +50,19 @@ spec:
description: "The name of the header to remove, such as
`Authorization`. Upper and lower case do not matter."
type: string
example: "Authorization"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git a/kamelets/drop-headers-action.kamelet.yaml
b/kamelets/drop-headers-action.kamelet.yaml
index e6a102fa2..5eaea58d1 100644
--- a/kamelets/drop-headers-action.kamelet.yaml
+++ b/kamelets/drop-headers-action.kamelet.yaml
@@ -55,6 +55,19 @@ spec:
description: "The headers to keep even when they match `pattern`,
written in the same way. When it is not set, every header that matches
`pattern` is removed."
type: string
example: "CamelKafkaKey"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git a/kamelets/has-header-filter-action.kamelet.yaml
b/kamelets/has-header-filter-action.kamelet.yaml
index 428f43438..7c8795a2c 100644
--- a/kamelets/has-header-filter-action.kamelet.yaml
+++ b/kamelets/has-header-filter-action.kamelet.yaml
@@ -55,6 +55,19 @@ spec:
description: "The value the header must have, exactly, for the message
to be kept, such as `high`. When it is not set, any value is enough, as long as
the header is there."
type: string
example: "high"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git a/kamelets/header-matches-filter-action.kamelet.yaml
b/kamelets/header-matches-filter-action.kamelet.yaml
index d5efcb762..3c7798b85 100644
--- a/kamelets/header-matches-filter-action.kamelet.yaml
+++ b/kamelets/header-matches-filter-action.kamelet.yaml
@@ -56,6 +56,19 @@ spec:
description: "The name of the header whose value is matched, such as
`type`. It must be set: the Kamelet does not start without it."
type: string
example: "type"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git a/kamelets/insert-header-action.kamelet.yaml
b/kamelets/insert-header-action.kamelet.yaml
index 45269def4..520bdfac4 100644
--- a/kamelets/insert-header-action.kamelet.yaml
+++ b/kamelets/insert-header-action.kamelet.yaml
@@ -56,6 +56,19 @@ spec:
description: "The value of the header: plain text, such as
`orders-app`, or a Simple expression whose `${...}` parts are filled in from
the message, such as `$\\{body}` or `${header.customerId}`."
type: string
example: "${header.customerId}"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read, unless `value` reads it."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git a/kamelets/is-tombstone-filter-action.kamelet.yaml
b/kamelets/is-tombstone-filter-action.kamelet.yaml
index e8b339a72..1b72346b0 100644
--- a/kamelets/is-tombstone-filter-action.kamelet.yaml
+++ b/kamelets/is-tombstone-filter-action.kamelet.yaml
@@ -40,6 +40,19 @@ spec:
Output: the same message, unchanged, when it has a body. A message with
no body, or with empty text as its body, is dropped and nothing is sent on.
type: object
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. Only whether it is empty is checked."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git a/kamelets/json-schema-validator-action.kamelet.yaml
b/kamelets/json-schema-validator-action.kamelet.yaml
index e36cb6ce1..53d6989cb 100644
--- a/kamelets/json-schema-validator-action.kamelet.yaml
+++ b/kamelets/json-schema-validator-action.kamelet.yaml
@@ -51,6 +51,19 @@ spec:
type: string
example: "file:///etc/camel/order-schema.json"
pattern: "^(http|https|file|classpath|ref|bean)://.*"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "JSON text, as text, bytes or a stream, or parsed JSON.
It is read, not changed. A Map fails."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:json-validator"
- "camel:kamelet"
diff --git a/kamelets/kafka-batch-manual-commit-action.kamelet.yaml
b/kamelets/kafka-batch-manual-commit-action.kamelet.yaml
index 6fe170c94..451a4e256 100644
--- a/kamelets/kafka-batch-manual-commit-action.kamelet.yaml
+++ b/kamelets/kafka-batch-manual-commit-action.kamelet.yaml
@@ -44,11 +44,22 @@ spec:
type: object
dataTypes:
in:
+ default: unchanged
headers:
CamelKafkaManualCommit:
title: Kafka Manual Commit
description: "Set by the batch source when `allowManualCommit` is
true. Without it, nothing is saved."
type: object
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The batch, a List. When the message has no commit
header, that of the last entry is used; the batch is not changed."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git a/kamelets/kafka-manual-commit-action.kamelet.yaml
b/kamelets/kafka-manual-commit-action.kamelet.yaml
index db7a6053f..6dea79ae3 100644
--- a/kamelets/kafka-manual-commit-action.kamelet.yaml
+++ b/kamelets/kafka-manual-commit-action.kamelet.yaml
@@ -44,11 +44,22 @@ spec:
type: object
dataTypes:
in:
+ default: unchanged
headers:
CamelKafkaManualCommit:
title: Kafka Manual Commit
description: "Set by `kafka-source` when `allowManualCommit` is
true. Without it, nothing is saved."
type: object
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git a/kamelets/log-action.kamelet.yaml b/kamelets/log-action.kamelet.yaml
index 4b63aa169..6cca65d63 100644
--- a/kamelets/log-action.kamelet.yaml
+++ b/kamelets/log-action.kamelet.yaml
@@ -110,6 +110,19 @@ spec:
description: "If true, a body that is a stream cached by Camel, which
can be read again, is logged. Camel caches stream bodies by default, so this is
the usual case."
type: boolean
default: true
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is logged, not changed."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
- "camel:log"
diff --git a/kamelets/log-sink.kamelet.yaml b/kamelets/log-sink.kamelet.yaml
index 50a490fe5..8eb9630e9 100644
--- a/kamelets/log-sink.kamelet.yaml
+++ b/kamelets/log-sink.kamelet.yaml
@@ -110,6 +110,13 @@ spec:
description: "If true, a body that is a stream cached by Camel, which
can be read again, is logged. Camel caches stream bodies by default, so this is
the usual case."
type: boolean
default: true
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is logged, not changed."
dependencies:
- "camel:kamelet"
- "camel:log"
diff --git a/kamelets/pqc-signature-action.kamelet.yaml
b/kamelets/pqc-signature-action.kamelet.yaml
index a78118618..0c2f30432 100644
--- a/kamelets/pqc-signature-action.kamelet.yaml
+++ b/kamelets/pqc-signature-action.kamelet.yaml
@@ -80,13 +80,19 @@ spec:
example: "#bean:pqcKeyPair"
dataTypes:
in:
+ default: unchanged
headers:
CamelPQCSignature:
title: Signature
description: The signature to check, as bytes, as set by `sign`.
Required for `verify`.
type: string
format: binary
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The data to sign or to check, as text, bytes or a
stream. It is read, not changed."
out:
+ default: unchanged
headers:
CamelPQCSignature:
title: Signature
@@ -97,6 +103,10 @@ spec:
title: Verification Result
description: True when the signature matches the body, false when it
does not. Set by `verify`.
type: boolean
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:pqc"
- "camel:kamelet"
diff --git a/kamelets/predicate-filter-action.kamelet.yaml
b/kamelets/predicate-filter-action.kamelet.yaml
index 53ff272a6..27e8e3787 100644
--- a/kamelets/predicate-filter-action.kamelet.yaml
+++ b/kamelets/predicate-filter-action.kamelet.yaml
@@ -50,6 +50,19 @@ spec:
type: string
example: '@.foo =~ /.*John/'
type: object
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "A JSON object, as JSON text or as parsed JSON. It is
read, not changed."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
- "camel:jsonpath"
diff --git a/kamelets/regex-router-action.kamelet.yaml
b/kamelets/regex-router-action.kamelet.yaml
index 24c2c10cf..722448e7b 100644
--- a/kamelets/regex-router-action.kamelet.yaml
+++ b/kamelets/regex-router-action.kamelet.yaml
@@ -58,6 +58,7 @@ spec:
type: object
dataTypes:
in:
+ default: unchanged
headers:
CamelKafkaTopic:
title: Kafka Topic
@@ -67,7 +68,12 @@ spec:
title: CloudEvents Type
description: "Optional. Replaced too when `regex` matches it."
type: string
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
out:
+ default: unchanged
headers:
CamelKafkaOverrideTopic:
title: Kafka Override Topic
@@ -77,6 +83,10 @@ spec:
title: CloudEvents Type
description: "The `ce-type` header, with the match replaced, when
`regex` matches it."
type: string
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
- "camel:kafka"
diff --git a/kamelets/resolve-pojo-schema-action.kamelet.yaml
b/kamelets/resolve-pojo-schema-action.kamelet.yaml
index bc4130f56..e0f9d4abe 100644
--- a/kamelets/resolve-pojo-schema-action.kamelet.yaml
+++ b/kamelets/resolve-pojo-schema-action.kamelet.yaml
@@ -65,6 +65,19 @@ spec:
description: The kind of schema to find, as in `mimeType`, such as
`avro/binary`. Only used when `mimeType` is `application/x-java-object`.
type: string
example: "avro/binary"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not changed."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
- "camel:jackson3-avro"
diff --git a/kamelets/set-kafka-key-action.kamelet.yaml
b/kamelets/set-kafka-key-action.kamelet.yaml
index 6006f10ae..04fdc52a5 100644
--- a/kamelets/set-kafka-key-action.kamelet.yaml
+++ b/kamelets/set-kafka-key-action.kamelet.yaml
@@ -56,12 +56,23 @@ spec:
default: false
type: object
dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
out:
+ default: unchanged
headers:
CamelKafkaKey:
title: Kafka Key
description: The value of the header named by `headerName`, which
`kafka-sink` uses as the key of the record.
type: string
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git a/kamelets/simple-filter-action.kamelet.yaml
b/kamelets/simple-filter-action.kamelet.yaml
index eedb3e873..4d2765c9b 100644
--- a/kamelets/simple-filter-action.kamelet.yaml
+++ b/kamelets/simple-filter-action.kamelet.yaml
@@ -50,6 +50,19 @@ spec:
description: "The condition, in the Camel Simple language, that makes
a message be dropped. `$\\{body}` is the body and `${header.name}` the value of
a header. For example, `${header.type} == 'test'` drops the messages whose
`type` header is `test`, and `${header.amount} > 100` those whose `amount`
header is more than 100."
type: string
example: "${header.type} == 'test'"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not changed, even when the condition
reads it."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git a/kamelets/throttle-action.kamelet.yaml
b/kamelets/throttle-action.kamelet.yaml
index aeece49e7..d8271c0ba 100644
--- a/kamelets/throttle-action.kamelet.yaml
+++ b/kamelets/throttle-action.kamelet.yaml
@@ -54,6 +54,19 @@ spec:
type: string
default: "1000"
example: "60000"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git a/kamelets/timestamp-router-action.kamelet.yaml
b/kamelets/timestamp-router-action.kamelet.yaml
index 65827968c..d1cc8f8e4 100644
--- a/kamelets/timestamp-router-action.kamelet.yaml
+++ b/kamelets/timestamp-router-action.kamelet.yaml
@@ -68,6 +68,7 @@ spec:
type: object
dataTypes:
in:
+ default: unchanged
headers:
CamelKafkaTopic:
title: Kafka Topic
@@ -77,12 +78,21 @@ spec:
title: Kafka Timestamp
description: "The time of the record, in milliseconds since 1970, as
`kafka-source` sets it. Without it, nothing changes."
type: integer
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
out:
+ default: unchanged
headers:
CamelKafkaOverrideTopic:
title: Kafka Override Topic
description: "The new topic, which `kafka-sink` writes the record to
instead of its own `topic`."
type: string
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
- "camel:kafka"
diff --git a/kamelets/topic-name-matches-filter-action.kamelet.yaml
b/kamelets/topic-name-matches-filter-action.kamelet.yaml
index 5fac58ea7..5ceaa63fa 100644
--- a/kamelets/topic-name-matches-filter-action.kamelet.yaml
+++ b/kamelets/topic-name-matches-filter-action.kamelet.yaml
@@ -52,11 +52,22 @@ spec:
type: object
dataTypes:
in:
+ default: unchanged
headers:
CamelKafkaTopic:
title: Kafka Topic
description: "The topic the record was read from, as `kafka-source`
sets it."
type: string
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/aws-bedrock-agent-sink.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/aws-bedrock-agent-sink.kamelet.yaml
index 645e7e423..f72839e00 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/aws-bedrock-agent-sink.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/aws-bedrock-agent-sink.kamelet.yaml
@@ -138,11 +138,16 @@ spec:
example: HTTP
dataTypes:
in:
+ default: unchanged
headers:
CamelAwsBedrockAgentIngestionJobId:
title: Ingestion Job ID
description: The ID of the job to look up with `getIngestionJob`, as
given by `startIngestionJob`.
type: string
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not used."
out:
headers:
CamelAwsBedrockAgentIngestionJobStatus:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/aws-cloudwatch-sink.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/aws-cloudwatch-sink.kamelet.yaml
index 993b913a5..204c20c7e 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/aws-cloudwatch-sink.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/aws-cloudwatch-sink.kamelet.yaml
@@ -145,6 +145,7 @@ spec:
example: HTTP
dataTypes:
in:
+ default: unchanged
headers:
metric-name:
title: Metric Name
@@ -170,6 +171,10 @@ spec:
title: Metric Timestamp
description: The time of the data point, as a Java `Instant` or
`Date`; text is ignored. `ce-metrictimestamp` works too. When it is not set,
the time it is sent is used.
type: object
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not changed."
dependencies:
- "camel:aws2-cw"
- "camel:kamelet"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/aws-ec2-sink.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/aws-ec2-sink.kamelet.yaml
index a94ff47cd..2bfd7da57 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/aws-ec2-sink.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/aws-ec2-sink.kamelet.yaml
@@ -128,6 +128,7 @@ spec:
enum: ["describeInstancesStatus", "describeInstances",
"startInstances", "stopInstances", "rebootInstances"]
dataTypes:
in:
+ default: unchanged
headers:
instanceIds:
title: Instance IDs
@@ -137,6 +138,10 @@ spec:
title: Instance IDs (CloudEvents)
description: The IDs of the instances, when the message is a
CloudEvent. Used only when `instanceIds` is not set.
type: string
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not used."
out:
headers:
CamelAwsEC2NextToken:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/aws-timestream-query-sink.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/aws-timestream-query-sink.kamelet.yaml
index eaa5d8b02..ac29bf1a3 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/aws-timestream-query-sink.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/aws-timestream-query-sink.kamelet.yaml
@@ -121,6 +121,7 @@ spec:
example: HTTP
dataTypes:
in:
+ default: unchanged
headers:
query:
title: Query
@@ -130,6 +131,10 @@ spec:
title: Query (CloudEvents)
description: The SQL query to run, when the message is a CloudEvent.
Used only when `query` is not set.
type: string
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not used."
dependencies:
- "camel:aws2-timestream"
- "camel:kamelet"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/delay-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/delay-action.kamelet.yaml
index 655997955..413a29a83 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/delay-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/delay-action.kamelet.yaml
@@ -48,6 +48,19 @@ spec:
description: "How long to hold each message, in milliseconds. For
example, 1000 is one second."
type: integer
example: 1000
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/drop-header-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/drop-header-action.kamelet.yaml
index b1b7e576a..d1241e422 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/drop-header-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/drop-header-action.kamelet.yaml
@@ -50,6 +50,19 @@ spec:
description: "The name of the header to remove, such as
`Authorization`. Upper and lower case do not matter."
type: string
example: "Authorization"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/drop-headers-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/drop-headers-action.kamelet.yaml
index e6a102fa2..5eaea58d1 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/drop-headers-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/drop-headers-action.kamelet.yaml
@@ -55,6 +55,19 @@ spec:
description: "The headers to keep even when they match `pattern`,
written in the same way. When it is not set, every header that matches
`pattern` is removed."
type: string
example: "CamelKafkaKey"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/has-header-filter-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/has-header-filter-action.kamelet.yaml
index 428f43438..7c8795a2c 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/has-header-filter-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/has-header-filter-action.kamelet.yaml
@@ -55,6 +55,19 @@ spec:
description: "The value the header must have, exactly, for the message
to be kept, such as `high`. When it is not set, any value is enough, as long as
the header is there."
type: string
example: "high"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/header-matches-filter-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/header-matches-filter-action.kamelet.yaml
index d5efcb762..3c7798b85 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/header-matches-filter-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/header-matches-filter-action.kamelet.yaml
@@ -56,6 +56,19 @@ spec:
description: "The name of the header whose value is matched, such as
`type`. It must be set: the Kamelet does not start without it."
type: string
example: "type"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/insert-header-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/insert-header-action.kamelet.yaml
index 45269def4..520bdfac4 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/insert-header-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/insert-header-action.kamelet.yaml
@@ -56,6 +56,19 @@ spec:
description: "The value of the header: plain text, such as
`orders-app`, or a Simple expression whose `${...}` parts are filled in from
the message, such as `$\\{body}` or `${header.customerId}`."
type: string
example: "${header.customerId}"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read, unless `value` reads it."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/is-tombstone-filter-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/is-tombstone-filter-action.kamelet.yaml
index e8b339a72..1b72346b0 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/is-tombstone-filter-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/is-tombstone-filter-action.kamelet.yaml
@@ -40,6 +40,19 @@ spec:
Output: the same message, unchanged, when it has a body. A message with
no body, or with empty text as its body, is dropped and nothing is sent on.
type: object
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. Only whether it is empty is checked."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/json-schema-validator-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/json-schema-validator-action.kamelet.yaml
index e36cb6ce1..53d6989cb 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/json-schema-validator-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/json-schema-validator-action.kamelet.yaml
@@ -51,6 +51,19 @@ spec:
type: string
example: "file:///etc/camel/order-schema.json"
pattern: "^(http|https|file|classpath|ref|bean)://.*"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "JSON text, as text, bytes or a stream, or parsed JSON.
It is read, not changed. A Map fails."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:json-validator"
- "camel:kamelet"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/kafka-batch-manual-commit-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/kafka-batch-manual-commit-action.kamelet.yaml
index 6fe170c94..451a4e256 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/kafka-batch-manual-commit-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/kafka-batch-manual-commit-action.kamelet.yaml
@@ -44,11 +44,22 @@ spec:
type: object
dataTypes:
in:
+ default: unchanged
headers:
CamelKafkaManualCommit:
title: Kafka Manual Commit
description: "Set by the batch source when `allowManualCommit` is
true. Without it, nothing is saved."
type: object
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The batch, a List. When the message has no commit
header, that of the last entry is used; the batch is not changed."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/kafka-manual-commit-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/kafka-manual-commit-action.kamelet.yaml
index db7a6053f..6dea79ae3 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/kafka-manual-commit-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/kafka-manual-commit-action.kamelet.yaml
@@ -44,11 +44,22 @@ spec:
type: object
dataTypes:
in:
+ default: unchanged
headers:
CamelKafkaManualCommit:
title: Kafka Manual Commit
description: "Set by `kafka-source` when `allowManualCommit` is
true. Without it, nothing is saved."
type: object
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/log-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/log-action.kamelet.yaml
index 4b63aa169..6cca65d63 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/log-action.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/log-action.kamelet.yaml
@@ -110,6 +110,19 @@ spec:
description: "If true, a body that is a stream cached by Camel, which
can be read again, is logged. Camel caches stream bodies by default, so this is
the usual case."
type: boolean
default: true
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is logged, not changed."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
- "camel:log"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/log-sink.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/log-sink.kamelet.yaml
index 50a490fe5..8eb9630e9 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/log-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/log-sink.kamelet.yaml
@@ -110,6 +110,13 @@ spec:
description: "If true, a body that is a stream cached by Camel, which
can be read again, is logged. Camel caches stream bodies by default, so this is
the usual case."
type: boolean
default: true
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is logged, not changed."
dependencies:
- "camel:kamelet"
- "camel:log"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/pqc-signature-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/pqc-signature-action.kamelet.yaml
index a78118618..0c2f30432 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/pqc-signature-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/pqc-signature-action.kamelet.yaml
@@ -80,13 +80,19 @@ spec:
example: "#bean:pqcKeyPair"
dataTypes:
in:
+ default: unchanged
headers:
CamelPQCSignature:
title: Signature
description: The signature to check, as bytes, as set by `sign`.
Required for `verify`.
type: string
format: binary
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The data to sign or to check, as text, bytes or a
stream. It is read, not changed."
out:
+ default: unchanged
headers:
CamelPQCSignature:
title: Signature
@@ -97,6 +103,10 @@ spec:
title: Verification Result
description: True when the signature matches the body, false when it
does not. Set by `verify`.
type: boolean
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:pqc"
- "camel:kamelet"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/predicate-filter-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/predicate-filter-action.kamelet.yaml
index 53ff272a6..27e8e3787 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/predicate-filter-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/predicate-filter-action.kamelet.yaml
@@ -50,6 +50,19 @@ spec:
type: string
example: '@.foo =~ /.*John/'
type: object
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "A JSON object, as JSON text or as parsed JSON. It is
read, not changed."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
- "camel:jsonpath"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/regex-router-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/regex-router-action.kamelet.yaml
index 24c2c10cf..722448e7b 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/regex-router-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/regex-router-action.kamelet.yaml
@@ -58,6 +58,7 @@ spec:
type: object
dataTypes:
in:
+ default: unchanged
headers:
CamelKafkaTopic:
title: Kafka Topic
@@ -67,7 +68,12 @@ spec:
title: CloudEvents Type
description: "Optional. Replaced too when `regex` matches it."
type: string
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
out:
+ default: unchanged
headers:
CamelKafkaOverrideTopic:
title: Kafka Override Topic
@@ -77,6 +83,10 @@ spec:
title: CloudEvents Type
description: "The `ce-type` header, with the match replaced, when
`regex` matches it."
type: string
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
- "camel:kafka"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/resolve-pojo-schema-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/resolve-pojo-schema-action.kamelet.yaml
index bc4130f56..e0f9d4abe 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/resolve-pojo-schema-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/resolve-pojo-schema-action.kamelet.yaml
@@ -65,6 +65,19 @@ spec:
description: The kind of schema to find, as in `mimeType`, such as
`avro/binary`. Only used when `mimeType` is `application/x-java-object`.
type: string
example: "avro/binary"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not changed."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
- "camel:jackson3-avro"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/set-kafka-key-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/set-kafka-key-action.kamelet.yaml
index 6006f10ae..04fdc52a5 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/set-kafka-key-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/set-kafka-key-action.kamelet.yaml
@@ -56,12 +56,23 @@ spec:
default: false
type: object
dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
out:
+ default: unchanged
headers:
CamelKafkaKey:
title: Kafka Key
description: The value of the header named by `headerName`, which
`kafka-sink` uses as the key of the record.
type: string
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/simple-filter-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/simple-filter-action.kamelet.yaml
index eedb3e873..4d2765c9b 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/simple-filter-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/simple-filter-action.kamelet.yaml
@@ -50,6 +50,19 @@ spec:
description: "The condition, in the Camel Simple language, that makes
a message be dropped. `$\\{body}` is the body and `${header.name}` the value of
a header. For example, `${header.type} == 'test'` drops the messages whose
`type` header is `test`, and `${header.amount} > 100` those whose `amount`
header is more than 100."
type: string
example: "${header.type} == 'test'"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not changed, even when the condition
reads it."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/throttle-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/throttle-action.kamelet.yaml
index aeece49e7..d8271c0ba 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/throttle-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/throttle-action.kamelet.yaml
@@ -54,6 +54,19 @@ spec:
type: string
default: "1000"
example: "60000"
+ dataTypes:
+ in:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/timestamp-router-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/timestamp-router-action.kamelet.yaml
index 65827968c..d1cc8f8e4 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/timestamp-router-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/timestamp-router-action.kamelet.yaml
@@ -68,6 +68,7 @@ spec:
type: object
dataTypes:
in:
+ default: unchanged
headers:
CamelKafkaTopic:
title: Kafka Topic
@@ -77,12 +78,21 @@ spec:
title: Kafka Timestamp
description: "The time of the record, in milliseconds since 1970, as
`kafka-source` sets it. Without it, nothing changes."
type: integer
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
out:
+ default: unchanged
headers:
CamelKafkaOverrideTopic:
title: Kafka Override Topic
description: "The new topic, which `kafka-sink` writes the record to
instead of its own `topic`."
type: string
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
- "camel:kafka"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/topic-name-matches-filter-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/topic-name-matches-filter-action.kamelet.yaml
index 5fac58ea7..5ceaa63fa 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/topic-name-matches-filter-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/topic-name-matches-filter-action.kamelet.yaml
@@ -52,11 +52,22 @@ spec:
type: object
dataTypes:
in:
+ default: unchanged
headers:
CamelKafkaTopic:
title: Kafka Topic
description: "The topic the record was read from, as `kafka-source`
sets it."
type: string
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "Any body. It is not read."
+ out:
+ default: unchanged
+ types:
+ unchanged:
+ format: "application-x-unchanged"
+ description: "The body as it came in, of the same type."
dependencies:
- "camel:kamelet"
template:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/delay/delay-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/delay/delay-action-route.citrus.it.yaml
index 164485ea4..932e9b39f 100644
---
a/tests/camel-kamelets-itest/src/test/resources/delay/delay-action-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/delay/delay-action-route.citrus.it.yaml
@@ -36,6 +36,11 @@ actions:
receiveRequest:
POST:
path: "/result"
+ headers:
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct='
body:
data: "${test.message}"
- http:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/delay/delay-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/delay/delay-action-route.yaml
index 4b5a6e6bb..0cd95025f 100644
---
a/tests/camel-kamelets-itest/src/test/resources/delay/delay-action-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/delay/delay-action-route.yaml
@@ -28,6 +28,13 @@
uri: "kamelet:delay-action"
parameters:
milliseconds: 100
+ # What the Kamelet leaves on the message
+ - setHeader:
+ name: X-Body-Type
+ simple: "${body.getClass().getName()}"
+ - setHeader:
+ name: X-Content-Type
+ simple: "ct=${header.Content-Type}"
- to:
uri: "kamelet:http-sink"
parameters:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/filter/has-header-filter-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/filter/has-header-filter-action-route.citrus.it.yaml
index 7c0afe51a..fbdd8056e 100644
---
a/tests/camel-kamelets-itest/src/test/resources/filter/has-header-filter-action-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/filter/has-header-filter-action-route.citrus.it.yaml
@@ -54,6 +54,10 @@ actions:
POST:
path: "/result"
headers:
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct=text/plain'
- name: "${header.name}"
value: "${header.value}"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/filter/has-header-filter-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/filter/has-header-filter-action-route.yaml
index 942c16842..540a53195 100644
---
a/tests/camel-kamelets-itest/src/test/resources/filter/has-header-filter-action-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/filter/has-header-filter-action-route.yaml
@@ -31,5 +31,12 @@
uri: "kamelet:has-header-filter-action"
parameters:
name: '{{header.name}}'
+ # What the Kamelet leaves on the message
+ - 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/filter/header-matches-filter-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/filter/header-matches-filter-action-route.citrus.it.yaml
index ded0bae43..00c91eebe 100644
---
a/tests/camel-kamelets-itest/src/test/resources/filter/header-matches-filter-action-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/filter/header-matches-filter-action-route.citrus.it.yaml
@@ -35,6 +35,10 @@ actions:
path: "/result"
type: "plaintext"
headers:
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct='
- name: "kind"
value: 'order-2'
body:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/filter/header-matches-filter-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/filter/header-matches-filter-action-route.yaml
index f3cde2c99..76a3121d5 100644
---
a/tests/camel-kamelets-itest/src/test/resources/filter/header-matches-filter-action-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/filter/header-matches-filter-action-route.yaml
@@ -44,5 +44,12 @@
parameters:
headerName: 'kind'
regex: 'order-[0-9]+'
+ # What the Kamelet leaves on the message
+ - 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/filter/predicate-filter-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/filter/predicate-filter-action-route.citrus.it.yaml
index d397736bb..fe295a0d0 100644
---
a/tests/camel-kamelets-itest/src/test/resources/filter/predicate-filter-action-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/filter/predicate-filter-action-route.citrus.it.yaml
@@ -47,6 +47,11 @@ actions:
receiveRequest:
POST:
path: "/result"
+ headers:
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct=application/json'
body:
data: |
{ "name": "${name.value}" }
diff --git
a/tests/camel-kamelets-itest/src/test/resources/filter/predicate-filter-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/filter/predicate-filter-action-route.yaml
index 0a2982e5f..430f20178 100644
---
a/tests/camel-kamelets-itest/src/test/resources/filter/predicate-filter-action-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/filter/predicate-filter-action-route.yaml
@@ -27,5 +27,12 @@
uri: "kamelet:predicate-filter-action"
parameters:
expression: '{{filter.expression}}'
+ # What the Kamelet leaves on the message
+ - 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/filter/simple-filter-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/filter/simple-filter-action-route.citrus.it.yaml
index caee0857f..94c4a7529 100644
---
a/tests/camel-kamelets-itest/src/test/resources/filter/simple-filter-action-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/filter/simple-filter-action-route.citrus.it.yaml
@@ -36,6 +36,11 @@ actions:
receiveRequest:
POST:
path: "/result"
+ headers:
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct='
body:
data: "${test.message}"
- http:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/filter/simple-filter-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/filter/simple-filter-action-route.yaml
index dc29c726b..09e5b7152 100644
---
a/tests/camel-kamelets-itest/src/test/resources/filter/simple-filter-action-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/filter/simple-filter-action-route.yaml
@@ -28,6 +28,13 @@
uri: "kamelet:simple-filter-action"
parameters:
expression: "${body} == 'DROP_ME'"
+ # What the Kamelet leaves on the message
+ - setHeader:
+ name: X-Body-Type
+ simple: "${body.getClass().getName()}"
+ - setHeader:
+ name: X-Content-Type
+ simple: "ct=${header.Content-Type}"
- to:
uri: "kamelet:http-sink"
parameters:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/header/drop-header-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/header/drop-header-action-route.citrus.it.yaml
index 2ad89bb81..4478d2a85 100644
---
a/tests/camel-kamelets-itest/src/test/resources/header/drop-header-action-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/header/drop-header-action-route.citrus.it.yaml
@@ -35,6 +35,10 @@ actions:
path: "/result"
type: "plaintext"
headers:
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct='
- name: "X-Remaining"
value: 'x-drop= x-keep=b'
- name: "x-keep"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/header/drop-header-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/header/drop-header-action-route.yaml
index 4bf4a9821..8a51fb707 100644
---
a/tests/camel-kamelets-itest/src/test/resources/header/drop-header-action-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/header/drop-header-action-route.yaml
@@ -34,6 +34,13 @@
uri: "kamelet:drop-header-action"
parameters:
name: 'X-DROP'
+ # What the Kamelet leaves on the message
+ - setHeader:
+ name: X-Body-Type
+ simple: "${body.getClass().getName()}"
+ - setHeader:
+ name: X-Content-Type
+ simple: "ct=${header.Content-Type}"
- setHeader:
name: X-Remaining
simple: "x-drop=${header.x-drop} x-keep=${header.x-keep}"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/header/drop-headers-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/header/drop-headers-action-route.citrus.it.yaml
index 6281e2270..01402c385 100644
---
a/tests/camel-kamelets-itest/src/test/resources/header/drop-headers-action-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/header/drop-headers-action-route.citrus.it.yaml
@@ -35,6 +35,10 @@ actions:
path: "/result"
type: "plaintext"
headers:
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct='
- name: "X-Remaining"
value: 'x-tmp-one= x-tmp-keep=b x-other=c'
body:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/header/drop-headers-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/header/drop-headers-action-route.yaml
index 4014696f1..80b096d0d 100644
---
a/tests/camel-kamelets-itest/src/test/resources/header/drop-headers-action-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/header/drop-headers-action-route.yaml
@@ -38,6 +38,13 @@
parameters:
pattern: 'x-tmp-*'
excludePattern: 'x-tmp-keep'
+ # What the Kamelet leaves on the message
+ - setHeader:
+ name: X-Body-Type
+ simple: "${body.getClass().getName()}"
+ - setHeader:
+ name: X-Content-Type
+ simple: "ct=${header.Content-Type}"
- setHeader:
name: X-Remaining
simple: "x-tmp-one=${header.x-tmp-one}
x-tmp-keep=${header.x-tmp-keep} x-other=${header.x-other}"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/header/insert-header-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/header/insert-header-action-route.citrus.it.yaml
index 613dc31b5..aca848d83 100644
---
a/tests/camel-kamelets-itest/src/test/resources/header/insert-header-action-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/header/insert-header-action-route.citrus.it.yaml
@@ -54,6 +54,10 @@ actions:
POST:
path: "/result"
headers:
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct=text/plain'
- name: "${header.name}"
value: "${header.value}"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/header/insert-header-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/header/insert-header-action-route.yaml
index ab2fd67f7..483c34fe3 100644
---
a/tests/camel-kamelets-itest/src/test/resources/header/insert-header-action-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/header/insert-header-action-route.yaml
@@ -27,5 +27,12 @@
parameters:
name: '{{header.name}}'
value: '{{header.value}}'
+ # What the Kamelet leaves on the message
+ - 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/kafka/kafka-batch-source-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/kafka/kafka-batch-source-route.citrus.it.yaml
index 9ac822fb1..318c4f67e 100644
---
a/tests/camel-kamelets-itest/src/test/resources/kafka/kafka-batch-source-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/kafka/kafka-batch-source-route.citrus.it.yaml
@@ -84,6 +84,10 @@ actions:
value: "@startsWith('java.util.ImmutableCollections$List')@"
- name: "X-Content-Type"
value: "ct="
+ - name: "X-Commit-Body-Type"
+ value: "@startsWith('java.util.ImmutableCollections$List')@"
+ - name: "X-Commit-Content-Type"
+ value: "ct="
body:
data: "record-1|record-2|record-3"
- http:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/kafka/kafka-batch-source-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/kafka/kafka-batch-source-route.yaml
index b3768b9ab..8bbcbaacc 100644
---
a/tests/camel-kamelets-itest/src/test/resources/kafka/kafka-batch-source-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/kafka/kafka-batch-source-route.yaml
@@ -41,6 +41,13 @@
simple: "${body.size()}"
- to:
uri: "kamelet:kafka-batch-manual-commit-action"
+ # what the commit action leaves: the same batch
+ - setHeader:
+ name: X-Commit-Body-Type
+ simple: "${body.getClass().getName()}"
+ - setHeader:
+ name: X-Commit-Content-Type
+ simple: "ct=${header.Content-Type}"
- setBody:
simple:
"${body[0].getMessage().getBody()}|${body[1].getMessage().getBody()}|${body[2].getMessage().getBody()}"
- to:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/kafka/kafka-manual-commit-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/kafka/kafka-manual-commit-action-route.citrus.it.yaml
index d8aa9b140..a8e246a08 100644
---
a/tests/camel-kamelets-itest/src/test/resources/kafka/kafka-manual-commit-action-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/kafka/kafka-manual-commit-action-route.citrus.it.yaml
@@ -70,6 +70,8 @@ actions:
value: "@startsWith('KafkaManualCommit[topic=commit-topic')@"
- name: "X-Body-Type"
value: "java.lang.String"
+ - name: "X-Content-Type"
+ value: "ct="
body:
data: "record-1"
- http:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/kafka/kafka-manual-commit-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/kafka/kafka-manual-commit-action-route.yaml
index 8e43443e5..ec69a7cc3 100644
---
a/tests/camel-kamelets-itest/src/test/resources/kafka/kafka-manual-commit-action-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/kafka/kafka-manual-commit-action-route.yaml
@@ -35,5 +35,8 @@
- 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/kafkarouter/regex-router-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/kafkarouter/regex-router-action-route.citrus.it.yaml
index 29586c156..3f38b53ec 100644
---
a/tests/camel-kamelets-itest/src/test/resources/kafkarouter/regex-router-action-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/kafkarouter/regex-router-action-route.citrus.it.yaml
@@ -23,8 +23,36 @@ actions:
waitForRunningState: false
integration:
file: "kafkarouter/regex-router-action-route.yaml"
+ systemProperties:
+ properties:
+ - name: "http.sink.url"
+ value: "http://localhost:${http.server.port}"
- camel:
cli:
verify:
integration: "regex-router-action-route"
logMessage: "prefix-my-topic"
+
+ # The body is unchanged
+ - http:
+ server: "httpServer"
+ receiveRequest:
+ POST:
+ path: "/result"
+ type: "plaintext"
+ headers:
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct='
+ - name: "X-Override-Topic"
+ value: 'prefix-my-topic'
+ body:
+ data: 'test-data'
+ - http:
+ server: "httpServer"
+ sendResponse:
+ response:
+ status: 200
+ reasonPhrase: "OK"
+ version: "HTTP/1.1"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/kafkarouter/regex-router-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/kafkarouter/regex-router-action-route.yaml
index 059d1b121..92b240242 100644
---
a/tests/camel-kamelets-itest/src/test/resources/kafkarouter/regex-router-action-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/kafkarouter/regex-router-action-route.yaml
@@ -32,7 +32,19 @@
parameters:
regex: "(.*)"
replacement: "prefix-$1"
+ # What the Kamelet leaves on the message
+ - setHeader:
+ name: X-Body-Type
+ simple: "${body.getClass().getName()}"
+ - setHeader:
+ name: X-Content-Type
+ simple: "ct=${header.Content-Type}"
+ - setHeader:
+ name: X-Override-Topic
+ simple: "${header.CamelKafkaOverrideTopic}"
- to:
uri: "kamelet:log-sink"
parameters:
showHeaders: true
+ - to:
+ uri: "{{http.sink.url}}/result"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/kafkarouter/timestamp-router-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/kafkarouter/timestamp-router-action-route.citrus.it.yaml
index ace63fd15..638ef04c6 100644
---
a/tests/camel-kamelets-itest/src/test/resources/kafkarouter/timestamp-router-action-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/kafkarouter/timestamp-router-action-route.citrus.it.yaml
@@ -23,8 +23,36 @@ actions:
waitForRunningState: false
integration:
file: "kafkarouter/timestamp-router-action-route.yaml"
+ systemProperties:
+ properties:
+ - name: "http.sink.url"
+ value: "http://localhost:${http.server.port}"
- camel:
cli:
verify:
integration: "timestamp-router-action-route"
logMessage: "my-topic-20240703"
+
+ # The body is unchanged
+ - http:
+ server: "httpServer"
+ receiveRequest:
+ POST:
+ path: "/result"
+ type: "plaintext"
+ headers:
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct='
+ - name: "X-Override-Topic"
+ value: 'my-topic-20240703'
+ body:
+ data: 'test-data'
+ - http:
+ server: "httpServer"
+ sendResponse:
+ response:
+ status: 200
+ reasonPhrase: "OK"
+ version: "HTTP/1.1"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/kafkarouter/timestamp-router-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/kafkarouter/timestamp-router-action-route.yaml
index 9a78e8e7a..9c6741957 100644
---
a/tests/camel-kamelets-itest/src/test/resources/kafkarouter/timestamp-router-action-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/kafkarouter/timestamp-router-action-route.yaml
@@ -35,7 +35,19 @@
parameters:
topicFormat: "$[topic]-$[timestamp]"
timestampFormat: "yyyyMMdd"
+ # What the Kamelet leaves on the message
+ - setHeader:
+ name: X-Body-Type
+ simple: "${body.getClass().getName()}"
+ - setHeader:
+ name: X-Content-Type
+ simple: "ct=${header.Content-Type}"
+ - setHeader:
+ name: X-Override-Topic
+ simple: "${header.CamelKafkaOverrideTopic}"
- to:
uri: "kamelet:log-sink"
parameters:
showHeaders: true
+ - to:
+ uri: "{{http.sink.url}}/result"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/kafkarouter/topic-name-matches-filter-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/kafkarouter/topic-name-matches-filter-action-route.citrus.it.yaml
index 845fbd2d1..a8573da59 100644
---
a/tests/camel-kamelets-itest/src/test/resources/kafkarouter/topic-name-matches-filter-action-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/kafkarouter/topic-name-matches-filter-action-route.citrus.it.yaml
@@ -23,8 +23,34 @@ actions:
waitForRunningState: false
integration:
file: "kafkarouter/topic-name-matches-filter-action-route.yaml"
+ systemProperties:
+ properties:
+ - name: "http.sink.url"
+ value: "http://localhost:${http.server.port}"
- camel:
cli:
verify:
integration: "topic-name-matches-filter-action-route"
logMessage: "topic-filter-test-data"
+
+ # The body is unchanged
+ - http:
+ server: "httpServer"
+ receiveRequest:
+ POST:
+ path: "/result"
+ type: "plaintext"
+ headers:
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct='
+ body:
+ data: 'topic-filter-test-data'
+ - http:
+ server: "httpServer"
+ sendResponse:
+ response:
+ status: 200
+ reasonPhrase: "OK"
+ version: "HTTP/1.1"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/kafkarouter/topic-name-matches-filter-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/kafkarouter/topic-name-matches-filter-action-route.yaml
index 2049740a0..d87fa2572 100644
---
a/tests/camel-kamelets-itest/src/test/resources/kafkarouter/topic-name-matches-filter-action-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/kafkarouter/topic-name-matches-filter-action-route.yaml
@@ -31,5 +31,14 @@
uri: "kamelet:topic-name-matches-filter-action"
parameters:
regex: "orders.*"
+ # What the Kamelet leaves on the message
+ - setHeader:
+ name: X-Body-Type
+ simple: "${body.getClass().getName()}"
+ - setHeader:
+ name: X-Content-Type
+ simple: "ct=${header.Content-Type}"
- to:
uri: "kamelet:log-sink"
+ - to:
+ uri: "{{http.sink.url}}/result"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/log/log-sink-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/log/log-sink-route.citrus.it.yaml
index 80c5c78ab..c7ac7d39d 100644
---
a/tests/camel-kamelets-itest/src/test/resources/log/log-sink-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/log/log-sink-route.citrus.it.yaml
@@ -31,6 +31,8 @@ actions:
properties:
- name: "message"
value: "${log.message}"
+ - name: "http.sink.url"
+ value: "http://localhost:${http.server.port}"
# Verify the log output contains the message
- camel:
@@ -38,3 +40,25 @@ actions:
verify:
integration: "log-sink-route"
logMessage: "${log.message}"
+
+ # The message after the sink is unchanged
+ - http:
+ server: "httpServer"
+ receiveRequest:
+ POST:
+ path: "/result"
+ type: "plaintext"
+ headers:
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct=text/plain'
+ body:
+ data: '${log.message}'
+ - http:
+ server: "httpServer"
+ sendResponse:
+ response:
+ status: 200
+ reasonPhrase: "OK"
+ version: "HTTP/1.1"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/log/log-sink-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/log/log-sink-route.yaml
index 07b1eab44..0ce6750be 100644
--- a/tests/camel-kamelets-itest/src/test/resources/log/log-sink-route.yaml
+++ b/tests/camel-kamelets-itest/src/test/resources/log/log-sink-route.yaml
@@ -20,6 +20,7 @@
uri: "kamelet:timer-source"
parameters:
period: 10000
+ repeatCount: 1
message: '{{message}}'
steps:
- to:
@@ -27,3 +28,12 @@
parameters:
loggerName: test-log-sink
showHeaders: false
+ # What the Kamelet leaves on the message
+ - 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/throttle/throttle-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/throttle/throttle-action-route.citrus.it.yaml
index a806ec0bf..4978a82d8 100644
---
a/tests/camel-kamelets-itest/src/test/resources/throttle/throttle-action-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/throttle/throttle-action-route.citrus.it.yaml
@@ -36,6 +36,11 @@ actions:
receiveRequest:
POST:
path: "/result"
+ headers:
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct='
body:
data: "${test.message}"
- http:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/throttle/throttle-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/throttle/throttle-action-route.yaml
index bb4eb2c85..b87ad7aa6 100644
---
a/tests/camel-kamelets-itest/src/test/resources/throttle/throttle-action-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/throttle/throttle-action-route.yaml
@@ -28,6 +28,13 @@
uri: "kamelet:throttle-action"
parameters:
messages: 5
+ # What the Kamelet leaves on the message
+ - setHeader:
+ name: X-Body-Type
+ simple: "${body.getClass().getName()}"
+ - setHeader:
+ name: X-Content-Type
+ simple: "ct=${header.Content-Type}"
- to:
uri: "kamelet:http-sink"
parameters: