Chore: Update to the latest grafana-plugin-sdk-go and more swagger fixes (#52445)

* Fix get legacy alert response

* Swagger: Fix get folder by UID response

* Fix conflicting swagger model Alert

Reanme legacy alerting swagger model to LegacyAlert to differentiate it
from the prometheus Alert

* Bump grafana-plugin-sdk-go

* Fix get folder response

* Use go-swagger command for merging the specifications and remove merge_specs script
This commit is contained in:
Sofia Papagiannaki
2022-07-20 16:09:42 +03:00
committed by GitHub
parent d3d8fdd878
commit f7c5eceb21
10 changed files with 916 additions and 962 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ import (
// Get folder by uid.
//
// Responses:
// 200:
// 200: folderResponse
// 401: unauthorisedError
// 403: forbiddenError
// 404: notFoundError
+1 -1
View File
@@ -148,7 +148,7 @@ type GetAlertsResponse struct {
type GetAlertResponse struct {
// The response message
// in: body
Body []*models.Alert `json:"body"`
Body *models.Alert `json:"body"`
}
// swagger:response pauseAlertResponse
+1 -1
View File
@@ -65,7 +65,7 @@ import (
// Get Team Members.
//
// Responses:
// 200: okResponse
// 200: getTeamMembersResponse
// 401: unauthorisedError
// 403: forbiddenError
// 404: notFoundError