Swagger: Type postDashboardResponse.id as int instead of string (#76749)

* Swagger: Type postDashboardResponse.id as int instead of string

* Swagger: Type postDashboardResponse.id as int64
This commit is contained in:
Joan López de la Franca Beltran
2023-10-19 09:16:53 +02:00
committed by GitHub
parent acee3efcf9
commit 584381e838
5 changed files with 1665 additions and 265 deletions
+1 -1
View File
@@ -79,4 +79,4 @@ make swagger-clean && make openapi3-gen
They can observe its output into the `public/api-merged.json` and `public/openapi3.json` files.
Finally, they can browser and try out both the OpenAPI v2 and v3 via the Swagger UI editor (served by the grafana server) by navigating to `/swagger-ui` and `/openapi3` respectivally.
Finally, they can browser and try out both the OpenAPI v2 and v3 via the Swagger UI editor (served by the grafana server) by navigating to `/swagger-ui` and `/openapi3` respectively.
+1 -1
View File
@@ -1283,7 +1283,7 @@ type PostDashboardResponse struct {
// ID The unique identifier (id) of the created/updated dashboard.
// required: true
// example: 1
ID string `json:"id"`
ID int64 `json:"id"`
// UID The unique identifier (uid) of the created/updated dashboard.
// required: true