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 2022/01/10 13:49:47 UTC

[camel-kamelets] 03/03: Extract Field Action: Sanitize/check the header name if set and avoid clashes

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch ex-field-improvements
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 444438959ed589eb3bc97864c8012769f7262a69
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jan 10 14:47:09 2022 +0100

    Extract Field Action: Sanitize/check the header name if set and avoid clashes
---
 .../src/main/resources/kamelets/extract-field-action.kamelet.yaml   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/extract-field-action.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/extract-field-action.kamelet.yaml
index 562952c..b13561f 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/extract-field-action.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/extract-field-action.kamelet.yaml
@@ -41,7 +41,9 @@ spec:
       The optional parameter headerOutputName allows the user to specify a custom header name instead of the default 'CamelKameletsExtractFieldName'. This parameter must be used in conjunction with headerOutput. 
       If no headerOutputName parameter will be provided, the default 'CamelKameletsExtractFieldName' will be used.
 
-      The headerOutput/headerOutputName parameters are particulary useful in case you would like to reuse an extracted field as parameter for another header, for example.
+      The optional parameter strictHeaderCheck allows to user to enable a strict header name check. If enabled the action will check if the header output name (custom or default) has been used already in the     exchange. If so, the extracted field will be stored in the message body, if not, the extracted field will be stored in the selected header (custom or default).
+
+      The headerOutput/headerOutputName/strictHeaderCheck parameters are particulary useful in case you would like to reuse an extracted field as parameter for another header, for example.
     required:
       - field
     properties:
@@ -63,7 +65,7 @@ spec:
         type: string
       strictHeaderCheck:
         title: Strict Header Check
-        description: If enable the action will check if the header output name (custom or default) has been used already in the exchange. If so, the extracted field will be stored in the message body, if not, the extracted field will be stored in the selected header (custom or default).
+        description: If enabled the action will check if the header output name (custom or default) has been used already in the exchange. If so, the extracted field will be stored in the message body, if not, the extracted field will be stored in the selected header (custom or default).
         type: boolean
         default: false
         x-descriptors: