Skip to content

Add option to resolve type from multiple existing properties (@JsonTypeInfo(use=DEDUCTION)) #43

@bytesandwich

Description

@bytesandwich

Rather than forcing the creation of an additional typeId property, or class info, determine the type by its natural properties. Possible As.EXISTING_PROPERTIES, and register a TypeResolver that returns the JavaType by inspecting the object.

Given a type hierarchy, naturally subtypes have additional fields and their type can likely be determined simply by inspecting the fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    most-wantedTag to indicate that there is heavy user +1'ing actionpolymorphic-deductionIssues related to "Id.DEDUCTION" mode of `@JsonTypeInfo`

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions