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

Serialize recursively placing all nested objects in the 'included' array #110

Merged
merged 1 commit into from
Jun 3, 2016

Conversation

rhyek
Copy link
Contributor

@rhyek rhyek commented May 27, 2016

Added functionality that recursively serializes a model, placing all nested objects in the included array. This conforms to the JSON API spec, which states:

http://jsonapi.org/format/#document-top-level

A document MAY contain any of these top-level members:

  • jsonapi: an object describing the server’s implementation
  • links: a links object related to the primary data.
  • included: an array of resource objects that are related to the primary data and/or each other (“included resources”).

@joukevandermaas
Copy link
Owner

Thanks a lot for doing this! I will review your changes this weekend and hopefully publish a new pre-release.

@joukevandermaas joukevandermaas merged commit 5e16259 into joukevandermaas:master Jun 3, 2016
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.

None yet

3 participants