-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Milestone
Description
Describe the bug
A class with @JsonTypeInfo(use = JsonTypeInfo.Id.DEDUCTION, defaultImpl = Animal.class)
that fails to deduce a solo candidate should use defaultImpl
Version information
2.12.0
To Reproduce
TBA see #2976
Expected behavior
In the absence of a single candidate, defaultImpl
should be the target type regardless of suitability.
Additional context
The current deduction process does not support pojo-hierarchies such that the absence of child properties infers a parent type. That is, every deducible subtype MUST have some unique properties and the input data MUST contain said unique properties to provide a positive match.