Merge pull request #132 from matrix-org/markjh/room_tags
Document a v2 api for setting tags on rooms
This commit is contained in:
commit
c5f457cee9
8 changed files with 274 additions and 2 deletions
8
event-schemas/examples/v1/m.tag
Normal file
8
event-schemas/examples/v1/m.tag
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"type": "m.tag",
|
||||
"content": {
|
||||
"tags": {
|
||||
"work": {"order": 1}
|
||||
}
|
||||
}
|
||||
}
|
25
event-schemas/schema/v1/m.tag
Normal file
25
event-schemas/schema/v1/m.tag
Normal 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"]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue