Add an extension point for FormatSchema
auto-assignment based on type
#1582
Labels
3.x
Issues to be only tackled for Jackson 3.x, not 2.x
Since many dataformat backends require specifying of a
FormatSchema
-- at least Avro, CSV, Protobuf and (Java) Properties do -- and since in most cases there is a way to either generate a schema from type definitions, or perhaps fetch it from an external repository, it would make since to allow plugging of such resolvers. It may also make sense to offer default implementations for simple cases, like POJO-based generation.Such functionality would be especially useful for use cases where
ObjectMapper
can be configured and passed as configuration: for example to use with JAX-RS message body reader/writer provider. While ability to passObjectReader
/ObjectWriter
instead would work around the issue, sometimes passing factory (thatObjectMapper
basically is) works better.It is not clear if this could fit in 2.9 yet; I'll tag this for 3.x for now.
The text was updated successfully, but these errors were encountered: