mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 14:29:31 +00:00
When using the relationship link with a block, calling "meta" without "href", e.g.
has_one :bio do
link :related do
meta id: 1
end
end
results in in a nil "href", e.g.
{ links: { posts: { related: { href: nil, meta: { id: 1 } } } } }.
According to JSONAPI, we should be able to use meta without href
(http://jsonapi.org/format/#document-links).
|
||
|---|---|---|
| .. | ||
| api_objects | ||
| belongs_to_test.rb | ||
| collection_test.rb | ||
| fields_test.rb | ||
| has_many_embed_ids_test.rb | ||
| has_many_explicit_serializer_test.rb | ||
| has_many_test.rb | ||
| has_one_test.rb | ||
| json_api_test.rb | ||
| linked_test.rb | ||
| links_test.rb | ||
| pagination_links_test.rb | ||
| parse_test.rb | ||
| relationship_test.rb | ||
| resource_meta_test.rb | ||
| resource_type_config_test.rb | ||
| toplevel_jsonapi_test.rb | ||