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:47:08 UTC
[camel-kamelets] branch main updated (a5e0a91 -> e483969)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.
from a5e0a91 Attempt to use JSONNode as base building block in data manipulation
new 7d5f94d Switch to JSONNode as intermediate representation in transformations - Insert Field
new e483969 Regen catalog
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
insert-field-action.kamelet.yaml | 8 ++++++--
.../src/main/resources/kamelets/insert-field-action.kamelet.yaml | 8 ++++++--
2 files changed, 12 insertions(+), 4 deletions(-)
[camel-kamelets] 02/02: Regen catalog
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit e483969ed953e86eab8b5d1075008dd2b7697d22
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"
[camel-kamelets] 01/02: Switch to JSONNode as intermediate
representation in transformations - Insert Field
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 7d5f94dc3af33b402386f2a9d0522f3710a5571c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 6 13:31:13 2021 +0200
Switch to JSONNode as intermediate representation in transformations - Insert Field
---
insert-field-action.kamelet.yaml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/insert-field-action.kamelet.yaml b/insert-field-action.kamelet.yaml
index c1dcf4a..4108731 100644
--- a/insert-field-action.kamelet.yaml
+++ b/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"