-
Notifications
You must be signed in to change notification settings - Fork 399
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
Clarify interaction of fields
and default
#533
Comments
I think this is related to #483, because if @meshcalero what do you think? |
Can you elaborate on that? |
From the Guild meeting Having a default value for the |
To add to the guideline:
We also discussed whether it might make sense to make this parameter required, but didn't come to an agreement here. So for now we don't add anything about this to the guidelines. |
feat: clarified default on fields rule; cleaned up code; fixed bugs (#533)
It's not clear whether the
fields
parameter is intended to have adefault
(at the level of design), or if it's intended to be used only to create partials from a whole. As things stand in the guidelines, it seems to not be an incorrect approach technically speaking. to combine the two so as to allow a resource using fields to return a partial object by default.The follow on implication is an API designer using these guidelines can require a client that wants to obtain a whole object to ask for every field at every level of depth.The text was updated successfully, but these errors were encountered: