matrix-spec/event-schemas/schema/m.direct
David Baker 4480553bf9 Move m.direct description to the swagger
Also change the swagger to yaml so I can put that description in it
without having to figure out how to embed that in json.
2016-10-05 13:12:14 +01:00

22 lines
557 B
Plaintext

---
allOf:
- $ref: core-event-schema/event.yaml
description: |-
A map of which rooms are considered 'direct' rooms for specific users
is kept in ``account_data`` in an event of type ``m.direct``. The
content of this event is an object where the keys are the user IDs
and values are lists of room ID strings of the 'direct' rooms for
that user ID.
properties:
content:
additionalProperties:
type: array
title: User ID
type: object
type:
enum:
- m.direct
type: string
title: Direct Chat Mapping
type: object