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

Incorrect generated api #87957

Open
diorcety opened this issue May 16, 2024 · 1 comment
Open

Incorrect generated api #87957

diorcety opened this issue May 16, 2024 · 1 comment

Comments

@diorcety
Copy link

What happened?

There is issue with enum on the generated openapi file, for example here https://github.com/grafana/grafana/blob/main/public/api-merged.json#L21196C15-L21196C27

"[unprocessed active suppressed]"

What did you expect to happen?

Should be ["unprocessed", "active", "suppressed"]

Did this work before?

Can't tell

How do we reproduce it?

Look at the sources.

The issue seems to come from go-swagger (generate spec, and generate client/server from prometheus-alertmanager). Updating to v0.31.0 seems to solve this issue

Is the bug inside a dashboard panel?

No response

Environment (with versions)?

Grafana:
OS:
Browser:

Grafana platform?

None

Datasource(s)?

No response

@diorcety
Copy link
Author

Should remove duplicated annotations too !!! : go-swagger/go-swagger#3110

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

No branches or pull requests

1 participant