Fix swagger definition

This commit is contained in:
Jannis Mattheis 2018-06-03 09:58:50 +02:00
parent 16d16eb539
commit b58062f508
2 changed files with 4 additions and 19 deletions

View File

@ -289,10 +289,7 @@
"200": { "200": {
"description": "Ok", "description": "Ok",
"schema": { "schema": {
"type": "array", "$ref": "#/definitions/PagedMessages"
"items": {
"$ref": "#/definitions/PagedMessages"
}
} }
}, },
"401": { "401": {
@ -653,10 +650,7 @@
"200": { "200": {
"description": "Ok", "description": "Ok",
"schema": { "schema": {
"type": "array", "$ref": "#/definitions/PagedMessages"
"items": {
"$ref": "#/definitions/PagedMessages"
}
} }
}, },
"401": { "401": {
@ -709,10 +703,7 @@
"200": { "200": {
"description": "Ok", "description": "Ok",
"schema": { "schema": {
"type": "array", "$ref": "#/definitions/Message"
"items": {
"$ref": "#/definitions/Message"
}
} }
}, },
"401": { "401": {

View File

@ -91,9 +91,7 @@ func Create(db *database.GormDatabase, vInfo *model.VersionInfo, conf *config.Co
// 200: // 200:
// description: Ok // description: Ok
// schema: // schema:
// type: array // $ref: "#/definitions/Message"
// items:
// $ref: "#/definitions/Message"
// 401: // 401:
// description: Unauthorized // description: Unauthorized
// schema: // schema:
@ -278,8 +276,6 @@ func Create(db *database.GormDatabase, vInfo *model.VersionInfo, conf *config.Co
// 200: // 200:
// description: Ok // description: Ok
// schema: // schema:
// type: array
// items:
// $ref: "#/definitions/PagedMessages" // $ref: "#/definitions/PagedMessages"
// 401: // 401:
// description: Unauthorized // description: Unauthorized
@ -455,8 +451,6 @@ func Create(db *database.GormDatabase, vInfo *model.VersionInfo, conf *config.Co
// 200: // 200:
// description: Ok // description: Ok
// schema: // schema:
// type: array
// items:
// $ref: "#/definitions/PagedMessages" // $ref: "#/definitions/PagedMessages"
// 401: // 401:
// description: Unauthorized // description: Unauthorized