@JsonSetter(nulls=...)
handling of Collection
null
values during deserialization with READ_UNKNOWN_ENUM_VALUES_AS_NULL
and FAIL_ON_INVALID_SUBTYPE
wrong
#4309
Labels
2.17
Issues planned at earliest for 2.17
Search before asking
Describe the bug
Issue comes from 2018, #1402 (two last comments).
Unknown enum values and subtypes are added as null into result collection instead of being skipped.
@JsonSetter(nulls = Nulls.SKIP)
and.defaultSetterInfo(JsonSetter.Value.forContentNulls(Nulls.SKIP))
have no effect on nulls with:Version Information
2.15.3
Reproduction
READ_UNKNOWN_ENUM_VALUES_AS_NULL:
FAIL_ON_INVALID_SUBTYPE:
Expected behavior
When
@JsonSetter(nulls = Nulls.SKIP)
or.defaultSetterInfo(JsonSetter.Value.forContentNulls(Nulls.SKIP))
is used, null should be skipped.Additional context
No response
The text was updated successfully, but these errors were encountered: