Skip to content

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

Closed as not planned

Description

@cowtowncoder

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.

Activity

  1. added
    3.x
    on Mar 30, 2017
  2. guidomedina commented on Mar 30, 2017

    @guidomedina
  3. cowtowncoder commented on Feb 8, 2026

    @cowtowncoder
    MemberAuthor

    No concrete plans on what this might mean, closing. May be re-opened with a plan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.x

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions