Skip to content
This repository was archived by the owner on Jan 25, 2019. It is now read-only.

Conversation

@koraykoska
Copy link
Contributor

As stated in the JSONAPI documentation:

Note: Although recommended, sort fields do not necessarily need to correspond to resource attribute and association names.

it is not required that sort fields are a valid resource field. I added addCustomAscendingOrder and addCustomDescendingOrder which don't fail if the provided attribute is not a valid field.

I also changed the router so that it does not fail if a custom value was provided.

I think this should be added to Spine as JSONAPI does not restrict us to have custom sort fields.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant