You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
10 years ago
|
{
|
||
|
"type": "object",
|
||
10 years ago
|
"title": "Describes how users are allowed to join the room.",
|
||
10 years ago
|
"description": "A room may be ``public`` meaning anyone can join the room without any prior action. Alternatively, it can be ``invite`` meaning that a user who wishes to join the room must first receive an invite to the room from someone already inside of the room. Currently, ``knock`` and ``private`` are reserved keywords which are not implemented.",
|
||
10 years ago
|
"allOf": [{
|
||
9 years ago
|
"$ref": "core-event-schema/state_event.json"
|
||
10 years ago
|
}],
|
||
|
"properties": {
|
||
|
"content": {
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"join_rule": {
|
||
|
"type": "string",
|
||
10 years ago
|
"description": "The type of rules used for users wishing to join this room.",
|
||
10 years ago
|
"enum": ["public","knock","invite","private"]
|
||
|
}
|
||
|
},
|
||
|
"required": ["join_rule"]
|
||
|
},
|
||
|
"state_key": {
|
||
|
"type": "string",
|
||
10 years ago
|
"description": "A zero-length string.",
|
||
10 years ago
|
"pattern": "^$"
|
||
|
},
|
||
|
"type": {
|
||
|
"type": "string",
|
||
|
"enum": ["m.room.join_rules"]
|
||
|
}
|
||
|
}
|
||
|
}
|