-
Notifications
You must be signed in to change notification settings - Fork 18
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
double included fields #26
Comments
@twiduch I'm trying to find where in the JSON API docs this behaviour is specified :)
What would your expected behaviour be? That only the first-level of an object tree is included? - Or that the tree is flattened to still allow for side-loading of an entire object graph? |
I believe that objects can be nested, but only one If User has Roles and User has Friends (of type User). Friends have also Roles. There should be That is my understanding of spec |
@twiduch is correct. There should only be one |
For me this is a problem due to the fact that my API consuming frontend lib can't (and shouldn't) handle multiple/nested Is there a way to workaround this bug? Will this be fixed in the near future? |
I have model User which has many Roles and Role has many Permissions
The UserRepresenter
The RoleRepresenter
When I call it, I receive
included
for user andincluded
for roles. I think that in Json API there should be only oneincluded
fieldThe text was updated successfully, but these errors were encountered: