room_type is not a required parameter in practice (#1110)

* 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 <n.werner@famedly.com>

* Add changelog

Signed-off-by: Nicolas Werner <n.werner@famedly.com>

* 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 <n.werner@famedly.com>

* Fix copy and paste error of newsfragment

Signed-off-by: Nicolas Werner <n.werner@famedly.com>
This commit is contained in:
Nicolas Werner 2022-06-07 23:27:53 +00:00 committed by GitHub
parent 8d82366cf2
commit e70045f4cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1 @@
Fix various typos throughout the specification.

View file

@ -0,0 +1 @@
Fix various typos throughout the specification.

View file

@ -149,7 +149,7 @@ paths:
format: int64 format: int64
description: The `origin_server_ts` for the event. description: The `origin_server_ts` for the event.
required: [origin_server_ts] required: [origin_server_ts]
required: [room_type, children_state] required: [children_state]
next_batch: next_batch:
type: string type: string
description: |- description: |-

View file

@ -158,7 +158,7 @@ paths:
format: int64 format: int64
description: The `origin_server_ts` for the event. description: The `origin_server_ts` for the event.
required: [origin_server_ts] required: [origin_server_ts]
required: [room_type, allowed_room_ids, children_state] required: [children_state]
children: children:
type: array type: array
description: |- description: |-