2015-10-26 17:14:24 +01:00
|
|
|
{
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Tag Event",
|
|
|
|
|
"description": "Informs the client of tags on a room.",
|
2016-03-08 15:51:09 +01:00
|
|
|
"allOf": [{
|
|
|
|
|
"$ref": "core-event-schema/event.yaml"
|
|
|
|
|
}],
|
2015-10-26 17:14:24 +01:00
|
|
|
"properties": {
|
|
|
|
|
"type": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"enum": ["m.tag"]
|
|
|
|
|
},
|
|
|
|
|
"content": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"tags": {
|
2015-11-02 14:31:25 +01:00
|
|
|
"type": "object",
|
2015-11-03 16:46:01 +01:00
|
|
|
"description": "The tags on the room and their contents.",
|
2015-11-02 14:31:25 +01:00
|
|
|
"additionalProperties": {
|
2015-11-03 16:48:30 +01:00
|
|
|
"title": "Tag",
|
2018-08-26 13:25:05 +02:00
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"order": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"format": "float",
|
|
|
|
|
"description":
|
|
|
|
|
"A number in a range ``[0,1]`` describing a relative position of the room under the given tag."
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-10-26 17:14:24 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-11-03 16:46:01 +01:00
|
|
|
"required": ["type", "content"]
|
2015-10-26 17:14:24 +01:00
|
|
|
}
|