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
The HAL adapter seems to need an :href key on the link hash (e.g. opts[:href]) to set the link object for the relationship (lib/oat/adapters/hal.rb:6).
Is there another way to set an array of link objects for a single relationship? HAL supports this (spec reference).
The text was updated successfully, but these errors were encountered:
Thanks for this. The current HAL implementation needs to be brought up to date with the current spec in order to cover this. Happy to accept pull requests for this specific feature.
This change does not affect the interface of the link method. The
options hash position can be a type of Array which conveys multiple
linked objects for a single relationship.
The specification tests were updated as a new rspec context so the
existing tests would not be affected.
fixesismasan#58
I am trying to capture multiple
item
link objects in a HAL representation. Something like:The HAL adapter seems to need an
:href
key on the link hash (e.g.opts[:href]
) to set the link object for the relationship (lib/oat/adapters/hal.rb:6).Is there another way to set an array of link objects for a single relationship? HAL supports this (spec reference).
The text was updated successfully, but these errors were encountered: