davsclaus commented on code in PR #28336:
URL: https://github.com/apache/camel/pull/28336#discussion_r4364453818
##########
components/camel-keycloak/src/main/docs/keycloak-consumer.adoc:
##########
@@ -500,22 +508,36 @@ YAML::
maxResults=100&
delay=10000
steps:
+ # build the audit record (every named parameter of the SQL insert
needs a value, null included)
- setBody:
- simple: >
- {
- "timestamp": ${body.time},
- "operation": "${body.operationType}",
- "resourceType": "${body.resourceType}",
- "resourcePath": "${body.resourcePath}",
- "userId": "${body.authDetails.userId}",
- "ipAddress": "${body.authDetails.ipAddress}"
- }
+ expression:
+ simple:
+ expression: >-
+ ${map(timestamp,${body.time},
Review Comment:
Same answer as for the Java DSL: both write the epoch milliseconds on
purpose, and the doc now says the `event_time` column is a `BIGINT`. A
`${date:...}` with a pattern would give text, which is not a `TIMESTAMP`
binding either.
_Claude Code on behalf of davsclaus_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]