Skip to content

Commit

Permalink
Regen catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
oscerd committed May 10, 2021
1 parent b33a80c commit dd14c5e
Showing 1 changed file with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ spec:
when:
- simple: "${header[Content-Type]} == 'application/json'"
steps:
- set-property:
name: deserialized
constant: "true"
- unmarshal:
json:
library: Jackson
Expand All @@ -49,10 +52,14 @@ spec:
name: "value"
constant: "{{value}}"
- bean: "org.apache.camel.kamelets.utils.transform.InsertField"
- marshal:
json:
library: Jackson
unmarshalTypeName: com.fasterxml.jackson.databind.JsonNode
- set-header:
name: "Content-Type"
constant: "application/json"
- choice:
when:
- simple: "${exchangeProperty[deserialized]} == 'true'"
steps:
- marshal:
json:
library: Jackson
unmarshalTypeName: com.fasterxml.jackson.databind.JsonNode
- set-header:
name: "Content-Type"
constant: "application/json"

0 comments on commit dd14c5e

Please sign in to comment.