Skip to content

Commit

Permalink
Use only camelCase in kamelets yaml - Drop Field, Drop Header and Dro…
Browse files Browse the repository at this point in the history
…p Headers Kamelets

Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
  • Loading branch information
oscerd committed Nov 9, 2023
1 parent a274864 commit 60b727d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions kamelets/drop-field-action.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ spec:
when:
- simple: "${header[Content-Type]} == 'application/json'"
steps:
- set-property:
- setProperty:
name: deserialized
constant: "true"
- unmarshal:
Expand All @@ -79,6 +79,6 @@ spec:
json:
library: Jackson
unmarshalType: com.fasterxml.jackson.databind.JsonNode
- set-header:
- setHeader:
name: "Content-Type"
constant: "application/json"
2 changes: 1 addition & 1 deletion kamelets/drop-header-action.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ spec:
from:
uri: kamelet:source
steps:
- remove-header:
- removeHeader:
name: "{{name}}"
2 changes: 1 addition & 1 deletion kamelets/drop-headers-action.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ spec:
from:
uri: kamelet:source
steps:
- remove-headers:
- removeHeaders:
pattern: "{{pattern}}"
excludePattern: "{{?excludePattern}}"
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ spec:
when:
- simple: "${header[Content-Type]} == 'application/json'"
steps:
- set-property:
- setProperty:
name: deserialized
constant: "true"
- unmarshal:
Expand All @@ -79,6 +79,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 @@ -47,5 +47,5 @@ spec:
from:
uri: kamelet:source
steps:
- remove-header:
- removeHeader:
name: "{{name}}"
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ spec:
from:
uri: kamelet:source
steps:
- remove-headers:
- removeHeaders:
pattern: "{{pattern}}"
excludePattern: "{{?excludePattern}}"

0 comments on commit 60b727d

Please sign in to comment.