diff --git a/changelogs/client_server/newsfragments/1210.clarification b/changelogs/client_server/newsfragments/1210.clarification new file mode 100644 index 000000000..6a0248525 --- /dev/null +++ b/changelogs/client_server/newsfragments/1210.clarification @@ -0,0 +1 @@ +Clarify that the "device_id", "user_id" and "access_token" fields are required in the response body of `POST /_matrix/client/v3/login`. \ No newline at end of file diff --git a/data/api/client-server/login.yaml b/data/api/client-server/login.yaml index d279445d8..4c348fcd9 100644 --- a/data/api/client-server/login.yaml +++ b/data/api/client-server/login.yaml @@ -210,6 +210,7 @@ paths: form as the one returned from .well-known autodiscovery. allOf: - "$ref": "definitions/wellknown/full.yaml" + required: ["access_token", "device_id", "user_id"] 400: description: |- Part of the request was invalid. For example, the login type may not be recognised.