You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@simonc I'd be interested in getting a PR out removing the if. I'm not sure what the JSON:API spec is related to this, maybe it only allows for field parameters with GET requests?
Hello there,
We've been experiencing an issue with Devour where passing
fields: { comments: 'title' }
will not get serialized forcreate
orupdate
calls.For GET requests it will pass
fields[comments]=title
but for other types of requests it will sendfields={"comments": "title"}
.I could track this issue down to those lines:
https://github.com/twg/devour/blob/e27377c3b5734ae026ff770477fee608c2f4d936/src/middleware/json-api/rails-params-serializer.js#L6-L13
I suppose that this kind of
if
has a reason for being present but I didn't find one.if
?Thanks ❤️
The text was updated successfully, but these errors were encountered: