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-09-18 12:39:44 +02:00
|
|
|
"$ref": "core-event-schema/state_event.json"
|
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-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"]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|