From 2c0b45fd14ec462bdc00c659eb58c0f85c865f84 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sat, 1 Sep 2018 02:41:53 +0100 Subject: [PATCH] fix example? --- .../event-schemas/m.direct_to_device.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/api/server-server/definitions/event-schemas/m.direct_to_device.yaml b/api/server-server/definitions/event-schemas/m.direct_to_device.yaml index 48cdc4ed..b151158a 100644 --- a/api/server-server/definitions/event-schemas/m.direct_to_device.yaml +++ b/api/server-server/definitions/event-schemas/m.direct_to_device.yaml @@ -51,16 +51,17 @@ allOf: The contents of the messages to be sent. These are arranged in a map of user IDs to a map of device IDs to message bodies. The device ID may also be *, meaning all known devices for the user. - example: { - "alice@example.org": { - "IWHQUZUIAH": { - "algorithm": "m.megolm.v1.aes-sha2", - "room_id": "!Cuyf34gef24t:localhost", - "session_id": "X3lUlvLELLYxeTx4yOVu6UDpasGEVO0Jbu+QFnm0cKQ", - "session_key": "AgAAAADxKHa9uFxcXzwYoNueL5Xqi69IkD4sni8LlfJL7qNBEY..." + example: |- + { + "alice@example.org": { + "IWHQUZUIAH": { + "algorithm": "m.megolm.v1.aes-sha2", + "room_id": "!Cuyf34gef24t:localhost", + "session_id": "X3lUlvLELLYxeTx4yOVu6UDpasGEVO0Jbu+QFnm0cKQ", + "session_key": "AgAAAADxKHa9uFxcXzwYoNueL5Xqi69IkD4sni8LlfJL7qNBEY..." + } } } - } required: - sender - type