-
Notifications
You must be signed in to change notification settings - Fork 4
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
ToOne and ToMany should allow for having just one of data
, links
or meta
fields
#2
Comments
"at least one of the following" does mean that it can have just one of |
fix: ToOne forces `data` Fixes laravel-json-api#2
I must apologise - I completely misread this issue when you opened it! I hadn't taken in it was in the So the part of the spec that is relevant here says this:
And for updating:
The section you've quoted is about the serialization of a relationship within a resource object, i.e. when a server is serializing a resource. |
I'm sorry, you are complete correct... Guess now I'll have to see how I get my client lib to not serialize relationships for PATCH/POST when there is no data available (but |
Per the spec:
The text was updated successfully, but these errors were encountered: