Skip to content

Commit

Permalink
Describe M_UNSUPPORTED_ROOM_VERSION on invite and createRoom endpoints
Browse files Browse the repository at this point in the history
Spec for MSC1866: #1866
  • Loading branch information
turt2live committed Feb 25, 2019
1 parent 23b2420 commit baf8948
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/client-server/create_room.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ paths:
invalid: for example, the user's ``power_level`` is set below
that necessary to set the room name (``errcode`` set to
``M_INVALID_ROOM_STATE``).
- The homeserver doesn't support the requested room version, or
one or more users being invited to the new room are residents
of a homeserver which does not support the requested room version.
The ``errcode`` will be ``M_UNSUPPORTED_ROOM_VERSION`` in these
cases.
schema:
"$ref": "definitions/errors/error.yaml"
tags:
Expand Down
14 changes: 14 additions & 0 deletions api/client-server/inviting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,20 @@ paths:
}
schema:
type: object
400:
description: |-
The request is invalid. A meaningful ``errcode`` and description
error text will be returned. Example reasons for rejection include:
- The request body is malformed (``errcode`` set to ``M_BAD_JSON``
or ``M_NOT_JSON``).
- One or more users being invited to the room are residents of a
homeserver which does not support the requested room version. The
``errcode`` will be ``M_UNSUPPORTED_ROOM_VERSION`` in these cases.
schema:
"$ref": "definitions/errors/error.yaml"
403:
description: |-
You do not have permission to invite the user to the room. A meaningful ``errcode`` and description error text will be returned. Example reasons for rejections are:
Expand Down
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1903.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Emit ``M_UNSUPPORTED_ROOM_VERSION`` error codes where applicable on ``/createRoom`` and ``/invite`` APIs.

0 comments on commit baf8948

Please sign in to comment.