-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Serialising relationship arrays is not handled #80
Comments
Possibly fixes wopian#80
Is this the right approach to fix this? duk3luk3@3f6ea89 |
Not quite. Will need to handle objects and arrays separately, since that check will only verify the first item in the array is valid and the contents of the |
OK, I've backed out that commit and just added a spec for now so I can make sure I understand fully what needs to be changed (This is my first real JSONAPI rodeo). I made a PR so I can run the tests without setting them up myself. Please let me know if the spec needs fixing. It fails as expected in the appveyor build: https://ci.appveyor.com/project/wopian/kitsu/build/519/job/h8rp731s63chvols |
Possibly fixes wopian#80
Trying to post this with kitsu:
results in this being POSTed:
it puts
users
into attributes instead of relationships, where it should go.This is because the relationship test in
serialise.js
does not test for arrays.The text was updated successfully, but these errors were encountered: