diff --git a/.redocly.lint-ignore.yaml b/.redocly.lint-ignore.yaml index 871a222..17f1c28 100644 --- a/.redocly.lint-ignore.yaml +++ b/.redocly.lint-ignore.yaml @@ -1,5 +1,9 @@ # This file instructs Redocly's linter to ignore the rules contained for specific parts of your API. # See https://redocly.com/docs/cli/ for more information. -# -# Intentionally empty for AP-14 foundation. Add justified ignores in the same -# style as Sea-Haven-Industries/procurement-ingest when needed. +# Login and callback fail with a 302 redirect, or 500 when Cognito is not configured. +packages/api/openapi/paths/auth-login.yaml: + operation-4xx-response: + - '#/get/responses' +packages/api/openapi/paths/auth-callback.yaml: + operation-4xx-response: + - '#/get/responses' diff --git a/packages/api/openapi/paths/auth-callback.yaml b/packages/api/openapi/paths/auth-callback.yaml index b86106f..b8566a8 100644 --- a/packages/api/openapi/paths/auth-callback.yaml +++ b/packages/api/openapi/paths/auth-callback.yaml @@ -30,14 +30,3 @@ get: responses: "302": description: Redirect to the SPA or the login error page. - "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/auth-login.yaml b/packages/api/openapi/paths/auth-login.yaml index c782154..84f7c5f 100644 --- a/packages/api/openapi/paths/auth-login.yaml +++ b/packages/api/openapi/paths/auth-login.yaml @@ -17,17 +17,6 @@ get: responses: "302": description: Redirect to Cognito hosted UI. - "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 "500": description: Cognito is not configured. content: diff --git a/packages/api/openapi/paths/auth-logout.yaml b/packages/api/openapi/paths/auth-logout.yaml index ce5162b..71b0b42 100644 --- a/packages/api/openapi/paths/auth-logout.yaml +++ b/packages/api/openapi/paths/auth-logout.yaml @@ -19,14 +19,3 @@ post: code: FORBIDDEN message: Origin is not allowed. correlationId: 11111111-1111-4111-8111-111111111111 - "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