2015-05-18 18:10:11 +02:00
|
|
|
{
|
|
|
|
|
"type": "object",
|
2015-05-19 17:49:20 +02:00
|
|
|
"title": "The first event in the room.",
|
2015-05-20 13:41:25 +02:00
|
|
|
"description": "This is the first event in a room and cannot be changed. It acts as the root of all other events.",
|
2015-05-18 18:10:11 +02:00
|
|
|
"allOf": [{
|
2015-12-07 14:53:48 +01:00
|
|
|
"$ref": "core-event-schema/state_event.yaml"
|
2015-05-18 18:10:11 +02:00
|
|
|
}],
|
|
|
|
|
"properties": {
|
|
|
|
|
"content": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"creator": {
|
2015-05-21 13:02:07 +02:00
|
|
|
"type": "string",
|
|
|
|
|
"description": "The ``user_id`` of the room creator. This is set by the homeserver."
|
2015-09-28 17:39:54 +02:00
|
|
|
},
|
|
|
|
|
"m.federate": {
|
|
|
|
|
"type": "boolean",
|
2015-09-29 17:19:27 +02:00
|
|
|
"description": "Whether users on other servers can join this room. Defaults to ``true`` if key does not exist."
|
2015-05-18 18:10:11 +02:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": ["creator"]
|
|
|
|
|
},
|
|
|
|
|
"state_key": {
|
|
|
|
|
"type": "string",
|
2015-05-21 17:04:52 +02:00
|
|
|
"description": "A zero-length string.",
|
2015-05-18 18:10:11 +02:00
|
|
|
"pattern": "^$"
|
|
|
|
|
},
|
|
|
|
|
"type": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"enum": ["m.room.create"]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|