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 abc129d1ac2dc5e89a9b04f469fb26c37ae91739 Author: Andrea Cosentino <anco...@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"