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

Support optional fields in resource object #121

Open
bxh opened this issue Jun 27, 2016 · 1 comment
Open

Support optional fields in resource object #121

bxh opened this issue Jun 27, 2016 · 1 comment

Comments

@bxh
Copy link
Contributor

bxh commented Jun 27, 2016

Per JSON API spec, attributes, relationships and links are optional. However, in Saule they are always provided. This could cause unexpected behaviors for JSON API clients such as Ember Data. And although link is a neat feature, it takes up additional space. I'm wondering if the community here is willing to make those fields optional like included?

@joukevandermaas
Copy link
Owner

I'm very much in favor of leaving out optional keys when they are empty. Sounds like a good feature to me.

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

No branches or pull requests

2 participants