mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
If you specify include_data false, and do not have any links for this
relationship, we would output something like:
`{ relationships: { comments: {} } }`
This is not valid jsonapi. We will now render
`{ relationships: { comments: { meta: {} } } }`
Instead.
Relevant jsonapi spec: http://jsonapi.org/format/#document-resource-object-relationships
|
||
|---|---|---|
| .. | ||
| json | ||
| json_api | ||
| attributes_test.rb | ||
| deprecation_test.rb | ||
| json_test.rb | ||
| null_test.rb | ||
| polymorphic_test.rb | ||