Merge pull request #12656 from chlins/fix/v2.0-swagger-errors-definition

fix(swagger): fix the definition of errors
This commit is contained in:
He Weiwei 2020-08-05 11:01:01 +08:00 committed by GitHub
commit 0ae8133a60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1354,9 +1354,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