Remove enum for POST /login type definition (#1776)

Since the enum is not exhaustive, improve the description of the property instead.
This commit is contained in:
Kévin Commaille 2024-04-09 18:27:26 +02:00 committed by GitHub
parent efe72d3b26
commit 2ea8e0f514
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View file

@ -0,0 +1 @@
Clarify that the `type` of the `POST /login` request must be one of the types returned by the `GET /login` response.

View file

@ -109,10 +109,12 @@ paths:
properties: properties:
type: type:
type: string type: string
enum: description: |-
- m.login.password The login type being used.
- m.login.token
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` or `m.login.token`.
identifier: identifier:
$ref: definitions/user_identifier.yaml $ref: definitions/user_identifier.yaml
user: user: