mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-27 11:28:38 +01:00
...and corresponding structures in tag-related CS API calls Signed-off-by: Alexey Rusakov <Alexey.Rusakov@pm.me>
37 lines
900 B
Plaintext
37 lines
900 B
Plaintext
{
|
|
"type": "object",
|
|
"title": "Tag Event",
|
|
"description": "Informs the client of tags on a room.",
|
|
"allOf": [{
|
|
"$ref": "core-event-schema/event.yaml"
|
|
}],
|
|
"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",
|
|
"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."
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": ["type", "content"]
|
|
}
|