Skip to content

Omit null attributes in included array #461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 18, 2018
Merged

Omit null attributes in included array #461

merged 1 commit into from
Dec 18, 2018

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
2 participants