Skip to content

Conversation

@milosloub
Copy link
Contributor

@milosloub milosloub commented Dec 15, 2018

Closes #454

Concept - I had to provide extra parameter RelationshipAttribute to ShouldIncludeAttribute(). In case of nested sparse fields and it's values like "Nested.Attribute", there was no chance to recognize, if user asks for "Attribute" of resource or relationship.

I had to update nested sparse fields tests. With this fix I can just check presence of attributes instead of null value check.

Copy link
Contributor

@jaredcnance jaredcnance left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks!

@milosloub milosloub merged commit 2a8a02f into master Dec 18, 2018
@milosloub milosloub deleted the fix/#454 branch December 18, 2018 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Null valued attributes are not omitted from included data

3 participants