-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
room_type is not a required parameter in practice #1110
room_type is not a required parameter in practice #1110
Conversation
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]>
Signed-off-by: Nicolas Werner <[email protected]>
This seems to match the language in MSC2946:
Not sure if the server-server API doc needs to be updated too or if it re-uses this same chunk? |
Yeah, it also matches the spec text (which has that exact text). Didn't check the server-server API, let me do that. |
Yes, the server-server APi has that field as required too. It also lists allowed_roomids and such as required, which contradicts the spec text as well, let me update that. |
They are optional according to the text, but the openapi marks them as required instead. Signed-off-by: Nicolas Werner <[email protected]>
Done. room_type and allowed_roomids are optional according to the text a few lines above the field marking them as required. |
Signed-off-by: Nicolas Werner <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
BREAKING CHANGE (because from is now optional, so it can't be specified conditionally) See also: - matrix-org/matrix-spec#1110 - matrix-org/matrix-spec#1097
BREAKING CHANGE (because from is now optional, so it can't be specified conditionally) See also: - matrix-org/matrix-spec#1110 - matrix-org/matrix-spec#1097
BREAKING CHANGE (because from is now optional, so it can't be specified conditionally) See also: - matrix-org/matrix-spec#1110 - matrix-org/matrix-spec#1097
In practice servers seem to mirror what the room create event does and
leave out the room_type when unset.
I don't think the intention of the spec was to have the room type required
on normal rooms and the text seems to match that too.
Signed-off-by: Nicolas Werner [email protected]
Preview: https://pr1110--matrix-spec-previews.netlify.app