Skip to content

Properly handle individual resource object #22

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 11, 2014

Conversation

meismann
Copy link

@meismann meismann commented Dec 9, 2014

According to the JSON API specification at
http://jsonapi.org/format/#document-structure-individual-resource-representations,
representations of an individual resource are Objects
that are not necessarily wrapped in an Array.

According to the JSON API specification at
http://jsonapi.org/format/#document-structure-individual-resource-representations,
representations of an individual resource are Objects
that are not necessarily wrapped in an Array.
@chingor13
Copy link
Collaborator

When I first created this client, the spec said everything had to be an array. Since then, they've changed it to allow it both ways. Thanks for this, and I'll create a new version today.

chingor13 added a commit that referenced this pull request Dec 11, 2014
Properly handle individual resource object
@chingor13 chingor13 merged commit ded1314 into JsonApiClient:master Dec 11, 2014
@meismann
Copy link
Author

I imagined that, actually, since your gem has been around for a while. I find it extremely useful, btw, and well coded, too. It is me who has to thank you!

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