-
Notifications
You must be signed in to change notification settings - Fork 20
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
Deserializing a Compound document #19
Comments
@oeyiowuawi I have a working branch with support for deserializing 1 level of includes - poteto@9a8cd7a |
@poteto Thanks for your response. I've checked out the working branch and that would work for a single resource. What I'm really looking for is when |
Hey @poteto |
Hi
I tried deserializing a compound json api document with the gem and found out this isn't supported as of now. For example, if the payload looks like this
One would have to manually to iterate over the
data
key and feed each resource into the Article deserializer.But going this way would mean other top level document related resources(the
included
key) wouldn't be available in thehas_many
block defined in the deserializer.Is there a way to get the related resources added in the
included
top-level part of the document into thehas_many/has_one
block so we can easily get all the needed data deserialized together?The text was updated successfully, but these errors were encountered: