Merge pull request #132 from matrix-org/markjh/room_tags

Document a v2 api for setting tags on rooms
This commit is contained in:
Mark Haines 2015-11-27 15:31:54 +00:00
commit c5f457cee9
8 changed files with 274 additions and 2 deletions

View file

@ -0,0 +1,8 @@
{
"type": "m.tag",
"content": {
"tags": {
"work": {"order": 1}
}
}
}

View file

@ -0,0 +1,25 @@
{
"type": "object",
"title": "Tag Event",
"description": "Informs the client of tags on a room.",
"properties": {
"type": {
"type": "string",
"enum": ["m.tag"]
},
"content": {
"type": "object",
"properties": {
"tags": {
"type": "object",
"description": "The tags on the room and their contents.",
"additionalProperties": {
"title": "Tag",
"type": "object"
}
}
}
}
},
"required": ["type", "content"]
}