This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch insert-field-action-doc in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 8c4c0613e1e5d9f574b42b5873c8ddc0e0672b0d Author: Andrea Cosentino <[email protected]> AuthorDate: Mon Aug 23 12:09:23 2021 +0200 Regen --- .../main/resources/kamelets/insert-field-action.kamelet.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/library/camel-kamelets/src/main/resources/kamelets/insert-field-action.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/insert-field-action.kamelet.yaml index 26988c9..a1ee831 100644 --- a/library/camel-kamelets/src/main/resources/kamelets/insert-field-action.kamelet.yaml +++ b/library/camel-kamelets/src/main/resources/kamelets/insert-field-action.kamelet.yaml @@ -13,7 +13,15 @@ metadata: spec: definition: title: "Insert Field Action" - description: "Adds a custom field with a constant value to the message in transit" + description: |- + + Adds a custom field with a constant value to the message in transit. + + This action works with Json Object. So it will expect a Json Array or a Json Object. + + If for example you have an array like '{ "foo":"John", "bar":30 }' and your action has been configured with field as 'element' and value as 'hello', you'll get '{ "foo":"John", "bar":30, "element":"hello" }' + + No headers mapping supported, only constant values. required: - field - value
