Incorrect generated api #87957
Labels
area/alerting
Grafana Alerting
area/backend/api
triage/needs-confirmation
used for OSS triage rotation - reported issue needs to be reproduced
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
The text was updated successfully, but these errors were encountered: