You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Date values start out as null (no value). Once a date value is set, it can never be unset back to null.
The current implementation of the object mapper ignores all null values, including date values, and only a null value can set the date back to it's original empty state. The proper JSON payload for setting a null date value is:
{
"customDate1": null
}
This is not currently achievable with the global Jackson annotation:
@JsonInclude(JsonInclude.Include.NON_NULL)
Which is used in order to avoid race conditions that occur when sending all values, including null values that were not set on the entity object. In order to support the sending of null values for dates, there will have to be special logic that determines when a user has explicitly set a null value on the date, and distinguish that from the initial default state of the object.
The text was updated successfully, but these errors were encountered:
Date values start out as null (no value). Once a date value is set, it can never be unset back to null.
The current implementation of the object mapper ignores all null values, including date values, and only a null value can set the date back to it's original empty state. The proper JSON payload for setting a null date value is:
This is not currently achievable with the global Jackson annotation:
Which is used in order to avoid race conditions that occur when sending all values, including null values that were not set on the entity object. In order to support the sending of null values for dates, there will have to be special logic that determines when a user has explicitly set a null value on the date, and distinguish that from the initial default state of the object.
The text was updated successfully, but these errors were encountered: