diff --git a/.redocly.lint-ignore.yaml b/.redocly.lint-ignore.yaml index 17f1c28..7b3f1bf 100644 --- a/.redocly.lint-ignore.yaml +++ b/.redocly.lint-ignore.yaml @@ -7,3 +7,10 @@ packages/api/openapi/paths/auth-login.yaml: packages/api/openapi/paths/auth-callback.yaml: operation-4xx-response: - '#/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' diff --git a/packages/api/openapi/paths/health.yaml b/packages/api/openapi/paths/health.yaml index 818e55f..5d08746 100644 --- a/packages/api/openapi/paths/health.yaml +++ b/packages/api/openapi/paths/health.yaml @@ -15,14 +15,3 @@ get: example: stage: local 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 diff --git a/packages/api/openapi/paths/ready.yaml b/packages/api/openapi/paths/ready.yaml index 7ba6d77..b64c207 100644 --- a/packages/api/openapi/paths/ready.yaml +++ b/packages/api/openapi/paths/ready.yaml @@ -15,17 +15,6 @@ get: example: status: ok 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": description: Database ping failed. content: