-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Fix serialisation validation #84
Comments
So other than the |
The validation here: https://github.com/wopian/kitsu/blob/master/src/util/serialise/index.js#L31-L42 is only relevant for |
|
OK, that tells me everything I needed to know I think :-) I will make a new PR as soon as I find time. |
Removes alternative check for type attribute on relationship elements. The check is superfluous, ID check is necessary. Fixes wopian#84.
Removes alternative check for type attribute on relationship elements. The check is superfluous, ID check is necessary. Fixes wopian#84.
* Fix validation of relationship serialisation Removes alternative check for type attribute on relationship elements. The check is superfluous, ID check is necessary. Fixes #84. * Reformat and turn for-loop into map
In the course of #81 it came up that
serialise
doesn't validate data correctly: #81 (comment)Do we need different validation logic for different methods (POST/PATCH/PUT?) or is it the same for all?
The text was updated successfully, but these errors were encountered: