Skip to content

Commit

Permalink
room_type is not a required parameter in practice (#1110)
Browse files Browse the repository at this point in the history
* room_type is not a required parameter in practice

In practice servers seem to mirror what the room create event does and
leave out the room_type when unset.

Signed-off-by: Nicolas Werner <[email protected]>

* Add changelog

Signed-off-by: Nicolas Werner <[email protected]>

* Also make room_type and allowed_room_ids optional in the openapi

They are optional according to the text, but the openapi marks them as
required instead.

Signed-off-by: Nicolas Werner <[email protected]>

* Fix copy and paste error of newsfragment

Signed-off-by: Nicolas Werner <[email protected]>
  • Loading branch information
nico-famedly authored Jun 7, 2022
1 parent 8d82366 commit e70045f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1110.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix various typos throughout the specification.
1 change: 1 addition & 0 deletions changelogs/server_server/newsfragments/1110.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix various typos throughout the specification.
2 changes: 1 addition & 1 deletion data/api/client-server/space_hierarchy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ paths:
format: int64
description: The `origin_server_ts` for the event.
required: [origin_server_ts]
required: [room_type, children_state]
required: [children_state]
next_batch:
type: string
description: |-
Expand Down
2 changes: 1 addition & 1 deletion data/api/server-server/space_hierarchy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ paths:
format: int64
description: The `origin_server_ts` for the event.
required: [origin_server_ts]
required: [room_type, allowed_room_ids, children_state]
required: [children_state]
children:
type: array
description: |-
Expand Down

0 comments on commit e70045f

Please sign in to comment.