Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make FormatRequired compatible with multi-RIOs payloads #175

Closed
kbaird opened this issue Feb 8, 2019 · 1 comment
Closed

Make FormatRequired compatible with multi-RIOs payloads #175

kbaird opened this issue Feb 8, 2019 · 1 comment

Comments

@kbaird
Copy link
Contributor

kbaird commented Feb 8, 2019

The FormatRequired plug currently expects that the "data" value will be a single Resource Identifier Object (RIO).

However, the examples at https://jsonapi.org/format/#crud-updating-to-many-relationships show "data" payloads comprising a list/array of multiple RIOs for use in relationship endpoints.

The FormatRequired plug should be updated to accept both legal formats: a single RIO and multiple RIOs.

@kbaird
Copy link
Contributor Author

kbaird commented Feb 8, 2019

PR: #176

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

No branches or pull requests

2 participants