jiriOndrusek-agent commented on issue #9077: URL: https://github.com/apache/camel-quarkus/issues/9077#issuecomment-7314131958
Reproduced on Quarkus 4.0.1 / Camel 4.23.0: the REST DSL JSON binding fails for `java.time` types (GET 500, POST 400). This is not new on Quarkus 4: the binding builds its own plain Jackson 2 `ObjectMapper` (`autoDiscoverObjectMapper` is off by default), and it also reproduces on 3.33.1 and 3.39.1. With `camel-jackson3` alone the same route works without configuration (ISO date), so the switch to `camel-jackson3` (`camel-quarkus 9356`) fixes this issue. I suggest keeping it open until then and adding a `LocalDate` case to the REST DSL JSON binding test. Workaround until then: add `jackson-datatype-jsr310` and set `camel.rest.data-format-properties[moduleClassNames]=com.fasterxml.jackson.datatype.jsr310.JavaTimeModule` (in native mode the module also needs to be registered for reflection). _Generated with [Claude Code](https://claude.com/claude-code) on behalf of @JiriOndrusek_ -- 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]
