Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert field action doc #466

Merged
merged 4 commits into from
Aug 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/modules/ROOT/pages/insert-field-action.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@

*Support Level for this Kamelet is: "Preview"*

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.

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.

== Configuration Options

Expand Down
9 changes: 8 additions & 1 deletion insert-field-action.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ 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
Expand Down