Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an extension point for FormatSchema auto-assignment based on type #1582

Open
cowtowncoder opened this issue Mar 30, 2017 · 1 comment
Open
Labels
3.x Issues to be only tackled for Jackson 3.x, not 2.x

Comments

@cowtowncoder
Copy link
Member

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 pass ObjectReader/ObjectWriter instead would work around the issue, sometimes passing factory (that ObjectMapper 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.

@cowtowncoder cowtowncoder added the 3.x Issues to be only tackled for Jackson 3.x, not 2.x label Mar 30, 2017
@guidomedina
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Issues to be only tackled for Jackson 3.x, not 2.x
Projects
None yet
Development

No branches or pull requests

2 participants