Croway opened a new pull request, #30077: URL: https://github.com/apache/camel/pull/30077
- **Jackson data format pages** (`jackson2`, `jackson3`, `avroJackson2/3`, `protobufJackson2/3`): "Using custom ObjectMapper" said a single `ObjectMapper` in the registry is looked up and used automatically, with `INFO` logging. The lookup only happens with `autoDiscoverObjectMapper=true` (and `useDefaultObjectMapper=true`), needs exactly one mapper of the class the data format asks for (`ObjectMapper` of that Jackson line, `AvroMapper`, `ProtobufMapper`), does not apply the data format's mapper options (`include`, `prettyPrint`, features, modules, timezone, naming strategy) to it, and logs at `DEBUG` (`AbstractJacksonDataFormat.resolveObjectMapper()` and `doStart()` in camel-jackson and camel-jackson3). The pages now say so, and point to the `objectMapper` option. - **`useDefaultObjectMapper` / `autoDiscoverObjectMapper` descriptions** of the `json`, `avro` and `protobuf` models: the first now says the registry is only searched when `autoDiscoverObjectMapper` is true as well; the second says a single mapper is used and the mapper options are not applied to it. Regenerated: model and data format descriptors, catalog, YAML DSL schemas and deserializers, XSDs. - **rest-dsl-binding.adoc**, "Enabling or disabling Jackson JSON features": it said unknown properties are only rejected with Jackson 3 when you enable `FAIL_ON_UNKNOWN_PROPERTIES`. The binding turns it on for request bodies (`RestBindingAdviceFactory.failOnUnknownProperties()`), so they are rejected as with Jackson 2, unless `json.in.disableFeatures` names it or a mapper of your own is set. - **rest-dsl-binding.adoc**, new "Using your own Jackson ObjectMapper": `json.in.objectMapper` / `json.out.objectMapper` (Java, XML, YAML), the `objectMapper` of a data format configured elsewhere is not used by the binding (in line with the `camel.dataformat` options the binding now takes, except the mappers), and `autoDiscoverObjectMapper` as the way to use the single mapper in the registry. The request side matches `RestJettyPostJsonPojoOwnObjectMapperTest`. _Claude Code on behalf of Federico Mariani_ -- 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]
