From 05980222e5efc1b6002d3faf9139a7f405b66569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Wed, 3 Apr 2024 12:34:50 +0200 Subject: [PATCH] Remove enum for POST /login type definition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since the enum is not exhaustive, improve the description of the property instead. Signed-off-by: Kévin Commaille --- data/api/client-server/login.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/data/api/client-server/login.yaml b/data/api/client-server/login.yaml index a8953e65..2a484d84 100644 --- a/data/api/client-server/login.yaml +++ b/data/api/client-server/login.yaml @@ -109,10 +109,13 @@ paths: properties: type: type: string - enum: - - m.login.password - - m.login.token - description: The login type being used. + description: |- + The login type being used. + + This must be a type returned in one of the flows of the + response of the [`GET /login`](/client-server-api/#get_matrixclientv3login) + endpoint, like `m.login.password`, `m.login.token` or + `m.login.sso`. identifier: $ref: definitions/user_identifier.yaml user: