-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Avoid nested objects with a single optional field #3928
Comments
As of today, I think this is the list:
|
Is the GKE API's default behavior different than assuming |
I believe this is now done, so closing. |
Just kidding, apparently there's a few more. |
This can be closed by the PRs referenced above. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
For example, GKE
addons_config
has a bunch of nested objects with a single boolean field inside them:This means that hypothetically, a user could put the following in their schema:
From the user's point of view, this behavior would probably just take the API-level default. However, what it actually does is set disabled = false, since we ForceSend the field. If we decide to keep these fields nested in this way, we should make the booleans Required in order to make their behavior more clear.
Marking as 3.0 since this would be a breaking change.
The text was updated successfully, but these errors were encountered: