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
Complex data structures involving JSON objects and arrays are allowed as attribute values.
json-api-doc will properly serialize an attribute that is a list, provided it is not empty. If it is empty, it will incorrectly serialize it as a relationship object representing an empty many-to-many relationship.
Summary
json-api-doc
incorrectly serializes an attribute that is an empty list as as an empty many-to-many relationship.Description
The JSON API specification states:
json-api-doc
will properly serialize an attribute that is a list, provided it is not empty. If it is empty, it will incorrectly serialize it as a relationship object representing an empty many-to-many relationship.The text was updated successfully, but these errors were encountered: