From 487e8b43abf4d53c0a7a79ee35528ca241058a5d Mon Sep 17 00:00:00 2001 From: chlins Date: Tue, 4 Aug 2020 12:21:50 +0800 Subject: [PATCH] fix(swagger): fix the definition of errors Signed-off-by: chlins --- api/v2.0/swagger.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/api/v2.0/swagger.yaml b/api/v2.0/swagger.yaml index 339b2e7e6..409a1f571 100644 --- a/api/v2.0/swagger.yaml +++ b/api/v2.0/swagger.yaml @@ -1349,9 +1349,12 @@ responses: definitions: Errors: description: The error array that describe the errors got during the handling of request - type: array - items: - $ref: '#/definitions/Error' + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' Error: description: a model for all the error response coming from harbor type: object