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/08/23 10:29:38 UTC

[camel-kamelets] 01/04: Insert Field Action documentation: Add more details

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 aebd86d5abb431809988863d5b1b0a0f638a7fc1
Author: Andrea Cosentino <an...@gmail.com>
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