Skip to content

Commit

Permalink
Mask Field: Set JsonNode as expected input and output
Browse files Browse the repository at this point in the history
  • Loading branch information
oscerd committed May 6, 2021
1 parent cfb3aa9 commit 26ebc7f
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
camel.apache.org/kamelet.group: "Actions"
spec:
definition:
title: "Mask Fields Action"
title: "Mask Fields"
description: "Mask fields with a constant value in the message in transit"
required:
- fields
Expand All @@ -36,7 +36,9 @@ spec:
- simple: "${header[Content-Type]} == 'application/json'"
steps:
- unmarshal:
json: {}
json:
library: Jackson
unmarshalTypeName: com.fasterxml.jackson.databind.JsonNode
- set-property:
name: "fields"
constant: "{{fields}}"
Expand All @@ -45,7 +47,9 @@ spec:
constant: "{{replacement}}"
- bean: "org.apache.camel.kamelets.utils.transform.MaskField"
- marshal:
json: {}
json:
library: Jackson
unmarshalTypeName: com.fasterxml.jackson.databind.JsonNode
- set-header:
name: "Content-Type"
constant: "application/json"

0 comments on commit 26ebc7f

Please sign in to comment.