Skip to content

fix: allow sending isDisabled=false in UpdateServiceAccountForm #115

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

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

Conversation

ndk
Copy link

@ndk ndk commented May 7, 2025

Problem

The client couldn't disable a service account: the generated struct omitted isDisabled when set to false, so Grafana read it as unchanged.

Fix

During schema pull it now marks UpdateServiceAccountForm.isDisabled as x-nullable=true.
After codegen the field is *bool, so:

  • nil - don't touch the flag
  • true - disable account
  • false - enable account

Notes

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.

1 participant