Skip to content

Commit

Permalink
Use only camelCase in kamelets yaml - Value To Key Kamelet
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
  • Loading branch information
oscerd committed Nov 13, 2023
1 parent 46dd46d commit c09042e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions kamelets/value-to-key-action.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ spec:
when:
- simple: "${header[Content-Type]} == 'application/json'"
steps:
- set-property:
- setProperty:
name: deserialized
constant: "true"
- unmarshal:
json:
library: Jackson
unmarshalType: com.fasterxml.jackson.databind.JsonNode
- set-property:
- setProperty:
name: "fields"
constant: "{{fields}}"
- bean: "org.apache.camel.kamelets.utils.transform.kafka.ValueToKey"
Expand All @@ -71,6 +71,6 @@ spec:
json:
library: Jackson
unmarshalType: com.fasterxml.jackson.databind.JsonNode
- set-header:
- setHeader:
name: "Content-Type"
constant: "application/json"
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ spec:
when:
- simple: "${header[Content-Type]} == 'application/json'"
steps:
- set-property:
- setProperty:
name: deserialized
constant: "true"
- unmarshal:
json:
library: Jackson
unmarshalType: com.fasterxml.jackson.databind.JsonNode
- set-property:
- setProperty:
name: "fields"
constant: "{{fields}}"
- bean: "org.apache.camel.kamelets.utils.transform.kafka.ValueToKey"
Expand All @@ -71,6 +71,6 @@ spec:
json:
library: Jackson
unmarshalType: com.fasterxml.jackson.databind.JsonNode
- set-header:
- setHeader:
name: "Content-Type"
constant: "application/json"

0 comments on commit c09042e

Please sign in to comment.