We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi!
If I send a null or an empty array as a data member like:
PATCH /articles/1/relationships/author HTTP/1.1 Content-Type: application/vnd.api+json Accept: application/vnd.api+json { "data": null // or [] }
Is this normal behavior? Because in the JSON API specification I read that:
The PATCH request MUST include a top-level member named data containing one of: a resource identifier object corresponding to the new related resource. null, to remove the relationship. .... For all request types, the body MUST contain a data member whose value is an empty array or an array of resource identifier objects. ....
The PATCH request MUST include a top-level member named data containing one of:
....
For all request types, the body MUST contain a data member whose value is an empty array or an array of resource identifier objects.
jsonapi.org
Thanks for this extension!
The text was updated successfully, but these errors were encountered:
Hi @gast! Thank you for reporting this. It seems like a bug to me. I will investigate further and provide a solution soon.
Sorry, something went wrong.
Resolved in #43
tuyakhov
No branches or pull requests
Hi!
If I send a null or an empty array as a data member like:
Is this normal behavior? Because in the JSON API specification I read that:
jsonapi.org
Thanks for this extension!
The text was updated successfully, but these errors were encountered: