Skip to content

Commit 499eac0

Browse files
committed
removed status from envelope
1 parent 67e1d65 commit 499eac0

File tree

10 files changed

+1552
-1464
lines changed

10 files changed

+1552
-1464
lines changed

apis/shared/schemas/error.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ ErrorEnveloped:
1010
default: null
1111
error:
1212
$ref: '#/ErrorType'
13-
status:
14-
type: integer
15-
example: 404
1613

1714
ErrorType:
1815
type: object

apis/shared/schemas/health_check.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ HealthCheckEnveloped:
1010
type: object
1111
nullable: true
1212
default: null
13-
status:
14-
type: integer
15-
example: 200
1613

1714
HealthCheckType:
1815
type: object

apis/shared/schemas/response204.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,4 @@ Response204Enveloped:
1111
error:
1212
type: object
1313
nullable: true
14-
default: null
15-
status:
16-
type: integer
17-
example: 204
18-
default: 204
14+
default: null

apis/shared/schemas/running_service.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ RunningServiceEnveloped:
1010
type: object
1111
nullable: true
1212
default: null
13-
status:
14-
type: integer
15-
example: 200
1613

1714
RunningServiceType:
1815
type: object

apis/shared/schemas/services.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ ServicesEnveloped:
1212
type: object
1313
nullable: true
1414
default: null
15-
status:
16-
type: integer
17-
example: 200
15+

services/director/codegen.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ async def __handle_errors(request, handler):
9393
# aiohttp apiset errors
9494
log.exception("error happened in handling route")
9595
error = dict(status=ex.status, message=ex.to_tree())
96-
error_enveloped = dict(data=error, status=ex.status_code)
96+
error_enveloped = dict(error=error)
9797
return web.json_response(error_enveloped, status=ex.status)
9898
except web.HTTPError as ex:
9999
log.exception("error happened in handling route")
100100
error = dict(status=ex.status, message=str(ex.reason))
101-
error_enveloped = dict(data=error, status=ex.status_code)
101+
error_enveloped = dict(data=error)
102102
return web.json_response(error_enveloped, status=ex.status)
103103
104104

0 commit comments

Comments
 (0)