diff --git a/pkg/api/dashboard.go b/pkg/api/dashboard.go index bff3ffadc7a..f41c4ec1834 100644 --- a/pkg/api/dashboard.go +++ b/pkg/api/dashboard.go @@ -1304,7 +1304,7 @@ type GetHomeDashboardResponseBody struct { // swagger:response dashboardVersionsResponse type DashboardVersionsResponse struct { // in: body - Body []dashver.DashboardVersionMeta `json:"body"` + Body *dashver.DashboardVersionResponseMeta `json:"body"` } // swagger:response dashboardVersionResponse diff --git a/public/api-merged.json b/public/api-merged.json index 0706252d551..0911119ee38 100644 --- a/public/api-merged.json +++ b/public/api-merged.json @@ -14779,6 +14779,20 @@ } } }, + "DashboardVersionResponseMeta": { + "type": "object", + "properties": { + "continueToken": { + "type": "string" + }, + "versions": { + "type": "array", + "items": { + "$ref": "#/definitions/DashboardVersionMeta" + } + } + } + }, "DataLink": { "description": "DataLink define what", "type": "object", @@ -23965,10 +23979,7 @@ "dashboardVersionsResponse": { "description": "(empty)", "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/DashboardVersionMeta" - } + "$ref": "#/definitions/DashboardVersionResponseMeta" } }, "deleteCorrelationResponse": { diff --git a/public/openapi3.json b/public/openapi3.json index f44e48250d6..f2fa63df980 100644 --- a/public/openapi3.json +++ b/public/openapi3.json @@ -454,10 +454,7 @@ "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/DashboardVersionMeta" - }, - "type": "array" + "$ref": "#/components/schemas/DashboardVersionResponseMeta" } } }, @@ -4827,6 +4824,20 @@ }, "type": "object" }, + "DashboardVersionResponseMeta": { + "properties": { + "continueToken": { + "type": "string" + }, + "versions": { + "items": { + "$ref": "#/components/schemas/DashboardVersionMeta" + }, + "type": "array" + } + }, + "type": "object" + }, "DataLink": { "description": "DataLink define what", "properties": {