This repository was archived by the owner on Mar 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
nullable
support for model classes
#45
Comments
hauner
added a commit
that referenced
this issue
Feb 20, 2021
hauner
added a commit
that referenced
this issue
Feb 20, 2021
hauner
added a commit
that referenced
this issue
Feb 21, 2021
hauner
added a commit
that referenced
this issue
Feb 21, 2021
hauner
added a commit
that referenced
this issue
Feb 21, 2021
hauner
added a commit
that referenced
this issue
Feb 21, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
mapping a json payload to a java class looses the
nullable
information.For example the following two payloads will produce the same java object for a model class with a single
String
propertyfoo
:{}
{foo: null}
Both will be deserialized to an object with
foo = null
. No way to know if it was missing or if it was null.This is a necessary info to implement
PATCH
with json merge patch:This could be implemented by using jackson-databind-nullable.
Because of the additional dependency it should be off by default and it gets enabled by setting a new configuration option.
The text was updated successfully, but these errors were encountered: