Fix: Invalid API specification schemes for endpoints returning single object
@@ -44,8 +44,6 @@ paths:
200:
description: {{RESPONSES['users']['get']['success']}}
schema:
- type: array
- items:
$ref: '#/definitions/UserToDisplay'
401:
description: {{RESPONSES['general']['unauthorized']}}
@@ -78,8 +76,6 @@ paths:
type: string
example: {{RESPONSES['user']['create']['success']}}
user:
- type: array
- items:
$ref: '#/definitions/UserToDisplay'
400:
description: {{RESPONSES['general']['bad_request']}}
@@ -118,8 +114,6 @@ paths:
type: string
example: {{RESPONSES['user']['update']['success']}}
user:
- type: array
- items:
$ref: '#/definitions/UserToDisplay'
400:
description: {{RESPONSES['general']['bad_request']}}
@@ -319,8 +313,6 @@ paths:
type: string
example: {{RESPONSES['reservation']['create']['success']}}
reservation:
- type: array
- items:
$ref: '#/definitions/Reservation'
400:
description: {{RESPONSES['general']['bad_request']}}
@@ -354,8 +346,6 @@ paths:
type: string
example: {{RESPONSES['reservation']['update']['success']}}
reservation:
- type: array
- items:
$ref: '#/definitions/Reservation'
400:
description: {{RESPONSES['general']['bad_request']}}
@@ -529,8 +519,6 @@ paths:
type: string
example: {{RESPONSES['task']['create']['success']}}
task:
- type: array
- items:
$ref: '#/definitions/TaskToDisplay'
400:
description: {{RESPONSES['general']['bad_request']}}
