Blank strings should not be deserialized as JsonNullable.undefined() #125
JO
4mo ago+11+11+01234567890123456789-54-54-01234567890123456789
addresses #125
@wing328 I hope that works for you. If you want any changes, please let me know.
Summary by cubic
Blank strings now deserialize to JsonNullable.of(null) (present null) instead of JsonNullable.undefined() for non-String types. Fixes #125 and aligns behavior with default deserialization.
- Bug Fixes
- Removed the empty-string check from
JsonNullableJackson2DeserializerandJsonNullableJackson3Deserializerto let blank strings coerce to null. - Updated tests to expect
JsonNullable.of(null)for empty or whitespace strings; missing fields still yieldJsonNullable.undefined().
- Removed the empty-string check from