Infer @JsonCreator(mode = Mode.DELEGATING)
from use of @JsonValue
)
#3654
Milestone
@JsonCreator(mode = Mode.DELEGATING)
from use of @JsonValue
)
#3654
(note: continuation of [some issue but wrote originally down wrong])
Although
@JsonValue
is currently only used for serialization purposes, it seems it could be used for deciding on one otherwise ambiguous use case: that of 1-argument Creator method withoutmode
property.This case currently uses heuristics, such that:
@JsonProperty
),Mode.PROPERTIES
is usedMode.PROPERTIES
is used -- this is typically the case for Record typesMode.DELEGATING
is used (unless different default choice specified)However: use of
@JsonValue
would strongly suggest that as the second step (after explicit name for Creator argument) we should consider its existence to selectMode.DELEGATING
instead.The text was updated successfully, but these errors were encountered: