Skip to content

Conversation

@gufo
Copy link

@gufo gufo commented Sep 24, 2018

Adds basic support for metadata on resource identifiers, as described in the spec:

A “resource identifier object” MAY also include a meta member, whose value is a meta object that contains non-standard meta-information.

Our project uses that meta information to convey preferred sort order on a relation. The server does not guarantee preserved array ordering, so we need to use that metadata.

I'm aware the API for this is not optimal; I'll have to access <collection>.linkage and then map its metadata to each resource by myself. API-wise I would prefer having a ResourceIdentifier.resource accessor for convenience, but I believe it would lead to a lot of work for a comparatively small gain.

All tests are passing, and I have manually run this against our production back-end to verify that I can access the metadata as described.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants