[release-11.6.8] Dashboards: Return the correct model in openapi spec (#112868)
Return the correct model (#112858)
(cherry picked from commit 0ba040e866)
Co-authored-by: Selene <selenepinillos@gmail.com>
This commit is contained in:
co-authored by
Selene
parent
784bd3ee87
commit
0b928b9771
@@ -1453,7 +1453,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
|
||||
|
||||
+15
-4
@@ -12170,6 +12170,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"DashboardVersionResponseMeta": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"continueToken": {
|
||||
"type": "string"
|
||||
},
|
||||
"versions": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/DashboardVersionMeta"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"DataLink": {
|
||||
"description": "DataLink define what",
|
||||
"type": "object",
|
||||
@@ -20329,10 +20343,7 @@
|
||||
"dashboardVersionsResponse": {
|
||||
"description": "(empty)",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/DashboardVersionMeta"
|
||||
}
|
||||
"$ref": "#/definitions/DashboardVersionResponseMeta"
|
||||
}
|
||||
},
|
||||
"deleteCorrelationResponse": {
|
||||
|
||||
+15
-4
@@ -447,10 +447,7 @@
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/DashboardVersionMeta"
|
||||
},
|
||||
"type": "array"
|
||||
"$ref": "#/components/schemas/DashboardVersionResponseMeta"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -4182,6 +4179,20 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"DashboardVersionResponseMeta": {
|
||||
"properties": {
|
||||
"continueToken": {
|
||||
"type": "string"
|
||||
},
|
||||
"versions": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/DashboardVersionMeta"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"DataLink": {
|
||||
"description": "DataLink define what",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user