Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion kamelets/aws-ddb-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,13 @@ spec:
type: boolean
default: false
dataTypes:
# No 'default:' here on purpose. Declaring a default input type makes Camel
# apply the aws2-ddb:application-json transformation at the kamelet:source
# boundary, before any step below runs -- so the operation set by this
# template was never visible to it and every message was transformed as
# PutItem. The transformDataType step below applies the same type after the
# operation is set. See #2941.
in:
default: json
types:
json:
format: "aws2-ddb:application-json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
steps:
- setBody:
constant: "{{aws.ddb.json.data}}"
- setProperty:
name: operation
constant: "{{aws.ddb.operation}}"
- log: "${body}"
- to:
uri: "kamelet:aws-ddb-sink"
Expand Down
Loading