mirror of
https://github.com/Sea-Haven-Industries/seahaven-ap.git
synced 2026-10-06 14:41:57 +00:00
fix(api): drop health 400 responses the routes never return
This commit is contained in:
parent
26f6f48de8
commit
df0e911c89
3 changed files with 7 additions and 22 deletions
|
|
@ -7,3 +7,10 @@ packages/api/openapi/paths/auth-login.yaml:
|
||||||
packages/api/openapi/paths/auth-callback.yaml:
|
packages/api/openapi/paths/auth-callback.yaml:
|
||||||
operation-4xx-response:
|
operation-4xx-response:
|
||||||
- '#/get/responses'
|
- '#/get/responses'
|
||||||
|
# Health returns 200. Ready returns 200 or 503. Neither returns 4xx.
|
||||||
|
packages/api/openapi/paths/health.yaml:
|
||||||
|
operation-4xx-response:
|
||||||
|
- '#/get/responses'
|
||||||
|
packages/api/openapi/paths/ready.yaml:
|
||||||
|
operation-4xx-response:
|
||||||
|
- '#/get/responses'
|
||||||
|
|
|
||||||
|
|
@ -15,14 +15,3 @@ get:
|
||||||
example:
|
example:
|
||||||
stage: local
|
stage: local
|
||||||
sha: deadbeef
|
sha: deadbeef
|
||||||
"400":
|
|
||||||
description: Bad request.
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: ../components/schemas.yaml#/Error
|
|
||||||
example:
|
|
||||||
error:
|
|
||||||
code: VALIDATION_ERROR
|
|
||||||
message: Bad request.
|
|
||||||
correlationId: 11111111-1111-4111-8111-111111111111
|
|
||||||
|
|
|
||||||
|
|
@ -15,17 +15,6 @@ get:
|
||||||
example:
|
example:
|
||||||
status: ok
|
status: ok
|
||||||
database: up
|
database: up
|
||||||
"400":
|
|
||||||
description: Bad request.
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: ../components/schemas.yaml#/Error
|
|
||||||
example:
|
|
||||||
error:
|
|
||||||
code: VALIDATION_ERROR
|
|
||||||
message: Bad request.
|
|
||||||
correlationId: 11111111-1111-4111-8111-111111111111
|
|
||||||
"503":
|
"503":
|
||||||
description: Database ping failed.
|
description: Database ping failed.
|
||||||
content:
|
content:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue