Allow room tags to have asssociated content, and return that content in the m.tag events

pull/977/head
Mark Haines 9 years ago
parent f557e69860
commit 52f55e0542

@ -49,16 +49,15 @@ paths:
type: object
properties:
tags:
type: array
items:
type: string
title: Tags
type: object
examples:
application/json: |-
{
"tags": [
"work",
"pinned"
]
"tags": {
"work": {"order": 1},
"pinned": {}
}
}
"/user/{userId}/rooms/{roomId}/tags/{tag}":
put:
@ -94,11 +93,11 @@ paths:
name: body
required: true
description: |-
An empty JSON object.
Extra data for the tag, e.g. ordering.
schema:
type: object
example: |-
{}
{"order": 1}
responses:
200:
description:

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

@ -11,9 +11,10 @@
"type": "object",
"properties": {
"tags": {
"type": "array",
"items": {
"type": "string"
"type": "object",
"additionalProperties": {
"title": "Tag",
"type": "object"
}
}
}

@ -18,6 +18,9 @@ The ``m.tag`` can also be received in a v1 /events response or in the
events appearing in v1 /events will have a ``room_id`` with the room
the tags are for.
Each tag has an associated JSON object with information about the tag, e.g how
to order the tags.
{{m_tag_event}}
Client Behaviour

Loading…
Cancel
Save