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

Handle error values explicitly set to null. #131

Merged
merged 1 commit into from
Oct 13, 2015

Conversation

dennisfaust
Copy link
Contributor

JSONAPI states that error objects may contain quite a few data items. It does not say that if they are nil they should not be included. Either way they should be handled properly if they are explicitly set to nil. Currently, if they are there and set to nil an exception will be thrown on nil.fetch for about and source. I threw the rest into the test just for completeness.

@chingor13
Copy link
Collaborator

Thanks!

chingor13 added a commit that referenced this pull request Oct 13, 2015
Handle error values explicitly set to null.
@chingor13 chingor13 merged commit dcf2897 into JsonApiClient:master Oct 13, 2015
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 this pull request may close these issues.

2 participants