Skip to content
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

Representer attributes with null values are excluded from resource document #34

Closed
fran-worley opened this issue Nov 6, 2017 · 0 comments · Fixed by #35
Closed

Representer attributes with null values are excluded from resource document #34

fran-worley opened this issue Nov 6, 2017 · 0 comments · Fixed by #35

Comments

@fran-worley
Copy link
Collaborator

Attributes with null values are excluded from resource document.

Per the JSONAPI spec:
If a request does not include all of the attributes for a resource, the server MUST interpret the missing attributes as if they were included with their current values. The server MUST NOT interpret missing attributes as null values.

By not including attributes with null values, API consumers will treat their values as unchanged, rather than NULL.

@fran-worley fran-worley changed the title Representer attributes with null values are excluded from resource document. Representer attributes with null values are excluded from resource document Nov 6, 2017
@myabc myabc closed this as completed in #35 Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant