From 762104f480d76909161351a408111f691ae6362a Mon Sep 17 00:00:00 2001 From: tamassoltesz Date: Tue, 5 Nov 2024 16:00:42 +0100 Subject: [PATCH 1/2] fix: adding new response for session api --- api_spec.yaml | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/api_spec.yaml b/api_spec.yaml index 531badc..b66ed11 100644 --- a/api_spec.yaml +++ b/api_spec.yaml @@ -3161,18 +3161,27 @@ paths: content: application/json: schema: - type: object - properties: - status: - $ref: '#/components/schemas/statusOK' - session: - $ref: '#/components/schemas/session' - accessToken: - $ref: '#/components/schemas/cookieInfo' - refreshToken: - $ref: '#/components/schemas/cookieInfo' - antiCsrfToken: - $ref: '#/components/schemas/token' + oneOf: + - type: object + properties: + status: + $ref: '#/components/schemas/statusOK' + session: + $ref: '#/components/schemas/session' + accessToken: + $ref: '#/components/schemas/cookieInfo' + refreshToken: + $ref: '#/components/schemas/cookieInfo' + antiCsrfToken: + $ref: '#/components/schemas/token' + + - type: object + properties: + status: + type: string + enum: ['USER_DOES_NOT_BELONG_TO_TENANT_ERROR'] + message: + type: string '400': $ref: '#/components/responses/400' From c537fb47d77b94c58403dd734210eb52d2fb63e7 Mon Sep 17 00:00:00 2001 From: tamassoltesz Date: Tue, 5 Nov 2024 16:02:19 +0100 Subject: [PATCH 2/2] chore: changelog update --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a09c437..d82ea3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] +- Adds new response for `/appid-//recipe/session` when the user is not in the tenant + ## [5.1.1] - Fixes response schema of thirdparty signInUp POST