You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/05/06 11:33:14 UTC
[camel-kamelets] 02/02: Regen catalog
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch insert-field-243
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit dd8de7e28337f62f2a2ecda149957a86df15af0d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 6 13:32:06 2021 +0200
Regen catalog
---
.../src/main/resources/kamelets/insert-field-action.kamelet.yaml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/library/camel-kamelets-catalog/src/main/resources/kamelets/insert-field-action.kamelet.yaml b/library/camel-kamelets-catalog/src/main/resources/kamelets/insert-field-action.kamelet.yaml
index c1dcf4a..4108731 100644
--- a/library/camel-kamelets-catalog/src/main/resources/kamelets/insert-field-action.kamelet.yaml
+++ b/library/camel-kamelets-catalog/src/main/resources/kamelets/insert-field-action.kamelet.yaml
@@ -36,7 +36,9 @@ spec:
- simple: "${header[Content-Type]} == 'application/json'"
steps:
- unmarshal:
- json: {}
+ json:
+ library: Jackson
+ unmarshalTypeName: com.fasterxml.jackson.databind.JsonNode
- set-property:
name: "field"
constant: "{{field}}"
@@ -45,7 +47,9 @@ spec:
constant: "{{value}}"
- bean: "org.apache.camel.kamelets.utils.transform.InsertField"
- marshal:
- json: {}
+ json:
+ library: Jackson
+ unmarshalTypeName: com.fasterxml.jackson.databind.JsonNode
- set-header:
name: "Content-Type"
constant: "application/json"