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 2393c06020a04eb0230b7a723eb321eff1288797
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Aug 23 12:08:33 2021 +0200

    Insert Field Action documentation: Add more details
---
 insert-field-action.kamelet.yaml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/insert-field-action.kamelet.yaml b/insert-field-action.kamelet.yaml
index 26988c9..a1ee831 100644
--- a/insert-field-action.kamelet.yaml
+++ b/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

Reply via email to