[release-12.0.7] Dashboards: Return the correct model in openapi spec (#112869)
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
2983dc4819
commit
fd4e08b511
@@ -1305,7 +1305,7 @@ type GetHomeDashboardResponseBody struct {
|
|||||||
// swagger:response dashboardVersionsResponse
|
// swagger:response dashboardVersionsResponse
|
||||||
type DashboardVersionsResponse struct {
|
type DashboardVersionsResponse struct {
|
||||||
// in: body
|
// in: body
|
||||||
Body []dashver.DashboardVersionMeta `json:"body"`
|
Body *dashver.DashboardVersionResponseMeta `json:"body"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// swagger:response dashboardVersionResponse
|
// swagger:response dashboardVersionResponse
|
||||||
|
|||||||
+15
-4
@@ -12175,6 +12175,20 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"DashboardVersionResponseMeta": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"continueToken": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"versions": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/DashboardVersionMeta"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"DataLink": {
|
"DataLink": {
|
||||||
"description": "DataLink define what",
|
"description": "DataLink define what",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@@ -20424,10 +20438,7 @@
|
|||||||
"dashboardVersionsResponse": {
|
"dashboardVersionsResponse": {
|
||||||
"description": "(empty)",
|
"description": "(empty)",
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "array",
|
"$ref": "#/definitions/DashboardVersionResponseMeta"
|
||||||
"items": {
|
|
||||||
"$ref": "#/definitions/DashboardVersionMeta"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"deleteCorrelationResponse": {
|
"deleteCorrelationResponse": {
|
||||||
|
|||||||
+15
-4
@@ -401,10 +401,7 @@
|
|||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
"schema": {
|
"schema": {
|
||||||
"items": {
|
"$ref": "#/components/schemas/DashboardVersionResponseMeta"
|
||||||
"$ref": "#/components/schemas/DashboardVersionMeta"
|
|
||||||
},
|
|
||||||
"type": "array"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -4186,6 +4183,20 @@
|
|||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
"DashboardVersionResponseMeta": {
|
||||||
|
"properties": {
|
||||||
|
"continueToken": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"versions": {
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/DashboardVersionMeta"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"DataLink": {
|
"DataLink": {
|
||||||
"description": "DataLink define what",
|
"description": "DataLink define what",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|||||||
Reference in New Issue
Block a user