From cc02b21632f511620278051f612a273f87f08f05 Mon Sep 17 00:00:00 2001 From: Alex <33497058+bexsoft@users.noreply.github.com> Date: Fri, 7 May 2021 16:14:54 -0500 Subject: [PATCH] Fixed missing object in swagger (#725) Co-authored-by: Benjamin Perez --- restapi/embedded_spec.go | 22 ++++++++++++++++++++++ swagger.yml | 17 +++++++++++------ 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/restapi/embedded_spec.go b/restapi/embedded_spec.go index a3be522fe..9d75126c6 100644 --- a/restapi/embedded_spec.go +++ b/restapi/embedded_spec.go @@ -6398,6 +6398,17 @@ func init() { } } }, + "tenantResponseItem": { + "type": "object", + "properties": { + "access_key": { + "type": "string" + }, + "secret_key": { + "type": "string" + } + } + }, "tenantUsage": { "type": "object", "properties": { @@ -13639,6 +13650,17 @@ func init() { } } }, + "tenantResponseItem": { + "type": "object", + "properties": { + "access_key": { + "type": "string" + }, + "secret_key": { + "type": "string" + } + } + }, "tenantUsage": { "type": "object", "properties": { diff --git a/swagger.yml b/swagger.yml index 8edb2d7fe..9ecb89284 100644 --- a/swagger.yml +++ b/swagger.yml @@ -3878,12 +3878,17 @@ definitions: type: object properties: console: - type: object - properties: - access_key: - type: string - secret_key: - type: string + type: array + items: + $ref: "#/definitions/tenantResponseItem" + + tenantResponseItem: + type: object + properties: + access_key: + type: string + secret_key: + type: string tenantPod: type: object