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
{{ message }}
This repository was archived by the owner on Jan 22, 2019. It is now read-only.
Meaning of nillable property of @XmlElement and @XmlElements comes from XML Schema, and defines whether it is legal/mandatory to suppress writing out of empty collections. For Jackson this can be achieved by returning different inclusion criteria for a property annotated with one of these annotations.
For a longer discussion, see the original change #39 (for Jackson 2.5.1), which covers many aspects of handling.
Since I am not convinced that the change suggested in #48 / #49 is safe (although perhaps returning Include.NON_NULL might be acceptable, more so than NON_EMPTY), I will add a setting with which one can specifically define which JsonInclude.Incude value to use for nillable = false; default being null (meaning none). To do what #48 asks, Include.NON_EMPTY should be returned, or possibly Include.NON_NULL.