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 233dd09d7b66fd31040fe1060320efd11d7fc1ce Author: Andrea Cosentino <[email protected]> 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
