Skip to content

Null valued attributes are not omitted from included data #454

Closed
@ddaspit

Description

@ddaspit

Description

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions