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:40 UTC

[camel-kamelets] 03/04: Regen

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 953501053148bbc3923dbfc7da362a93691715f5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Aug 23 12:28:23 2021 +0200

    Regen
---
 insert-field-action.kamelet.yaml                                 | 9 ++++-----
 .../src/main/resources/kamelets/insert-field-action.kamelet.yaml | 9 ++++-----
 2 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/insert-field-action.kamelet.yaml b/insert-field-action.kamelet.yaml
index a1ee831..732c267 100644
--- a/insert-field-action.kamelet.yaml
+++ b/insert-field-action.kamelet.yaml
@@ -14,14 +14,13 @@ spec:
   definition:
     title: "Insert Field Action"
     description: |-
+      Adds a custom field with a constant value to the message in transit.
 
-    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.
 
-    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" }'
 
-    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.
+      No headers mapping supported, only constant values.
     required:
       - field
       - value
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 a1ee831..732c267 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
@@ -14,14 +14,13 @@ spec:
   definition:
     title: "Insert Field Action"
     description: |-
+      Adds a custom field with a constant value to the message in transit.
 
-    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.
 
-    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" }'
 
-    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.
+      No headers mapping supported, only constant values.
     required:
       - field
       - value