Skip to content

enable following embedded self-link when matching with secondary key #10

@travi

Description

@travi

When following a link and using a secondary key and value, it appears that the embedded resource is preferred rather than following the link in the embedded resource to request the full representation.

I am able to confirm this behavior both by a difference in attributes included in the embedded version of the resource and the full one as well as my integration tests. I use nock to stub api calls and the output for calls to the stub show that a call is never made for the resource itself. The chain stops after the list is requested.

I thought that my pull request for #8 covered this, but it appears that I did not pay close enough attention. This is still the behavior after the 2.0.1 release. Feel free to reference my sample api client and see the problem there, if that would be helpful. npm test will at least show the output from the calls to nock.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions