Skip to content

Commit

Permalink
Specify the room_version response property on /make_{leave|join}
Browse files Browse the repository at this point in the history
Original proposal: #1813
Implementation proof: matrix-org/synapse#4447

There are no changes from the original proposal.
  • Loading branch information
turt2live committed Jan 29, 2019
1 parent 9f44322 commit 70d82ea
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
13 changes: 10 additions & 3 deletions api/server-server/joins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ paths:
schema:
type: object
properties:
room_version:
type: string
description: |-
The version of the room where the server is trying to join. If not provided,
the room version is assumed to be either "1" or "2".
example: "2"
event:
allOf:
- $ref: "definitions/unsigned_pdu.yaml"
Expand All @@ -80,7 +86,7 @@ paths:
origin:
type: string
description: The name of the resident homeserver.
example: "matrix.org"
example: "matrix.org"
origin_server_ts:
type: integer
format: int64
Expand Down Expand Up @@ -113,7 +119,7 @@ paths:
type: array
description: |-
An event reference list containing the authorization events that would
allow the member to join the room. This should normally be the
allow the member to join the room. This should normally be the
``m.room.create``, ``m.room.power_levels``, and ``m.room.join_rules``
events.
items:
Expand Down Expand Up @@ -143,6 +149,7 @@ paths:
- state_key
examples:
application/json: {
room_version: 2,
event: {
"$ref": "examples/unsigned_pdu.json",
"type": "m.room.member",
Expand Down Expand Up @@ -220,7 +227,7 @@ paths:
origin:
type: string
description: The name of the joining homeserver.
example: "matrix.org"
example: "matrix.org"
origin_server_ts:
type: integer
format: int64
Expand Down
11 changes: 9 additions & 2 deletions api/server-server/leaving.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ paths:
schema:
type: object
properties:
room_version:
type: string
description: |-
The version of the room where the server is trying to leave. If not provided,
the room version is assumed to be either "1" or "2".
example: "2"
event:
allOf:
- $ref: "definitions/unsigned_pdu.yaml"
Expand Down Expand Up @@ -101,7 +107,7 @@ paths:
type: array
description: |-
An event reference list containing the authorization events that would
allow the member to leave the room. This should normally be the
allow the member to leave the room. This should normally be the
``m.room.create``, ``m.room.power_levels``, and ``m.room.join_rules``
events.
items:
Expand Down Expand Up @@ -131,6 +137,7 @@ paths:
- state_key
examples:
application/json: {
"room_version": 2,
"event": {
"$ref": "examples/unsigned_pdu.json",
"type": "m.room.member",
Expand Down Expand Up @@ -194,7 +201,7 @@ paths:
origin:
type: string
description: The name of the leaving homeserver.
example: "matrix.org"
example: "matrix.org"
origin_server_ts:
type: integer
format: int64
Expand Down

0 comments on commit 70d82ea

Please sign in to comment.