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

Fix PaidServicesAllowed to type bool #432

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fapo85
Copy link

@fapo85 fapo85 commented Oct 30, 2024

The Cloud Controller API states that the PaidServicesAllowed field must not be null.
The field should be a boolean and not a *bool (pointer).
https://v3-apidocs.cloudfoundry.org/version/3.180.0/index.html#the-organization-quota-object

This way, the calling application can assume that it is not nil.
The other fields are designated as nullable or pointers and thus defined as unlimited.
This makes no sense for a boolean.

Other use cases also follow this pattern: pointer = nullable, otherwise value.

Therefore, I assume that this is a bug, which I fix with this PR.

Currently, the command make all throws lint warnings, which also happens to me in the main branch.

Copy link

CLA Not Signed

@sneal
Copy link
Contributor

sneal commented Nov 13, 2024

LGTM, I can merge it if you sign the CLA

@fapo85
Copy link
Author

fapo85 commented Dec 2, 2024

as a little time has already passed, a short feedback.
We are currently clarifying internally why this has not yet happened or does not count.

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

Successfully merging this pull request may close these issues.

2 participants