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
If DocumentBuilderOptions.OmitNullValuedAttributes is set to true and an included resource object has a null valued attribute, it will not be omitted. Any null valued attributes in primary resource objects are correctly omitted. It looks like DocumentBuilder.GetIncludedEntity() does not check OmitNullValuedAttribute() method when adding attributes.
Environment
JsonApiDotNetCore Version: 3.0
Other Relevant Package Versions:
The text was updated successfully, but these errors were encountered:
Description
If
DocumentBuilderOptions.OmitNullValuedAttributes
is set totrue
and an included resource object has a null valued attribute, it will not be omitted. Any null valued attributes in primary resource objects are correctly omitted. It looks likeDocumentBuilder.GetIncludedEntity()
does not checkOmitNullValuedAttribute()
method when adding attributes.Environment
The text was updated successfully, but these errors were encountered: