From 595b75f299ac023a7f073bccf8fffc558b69023d Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 5 Oct 2016 10:32:03 +0100 Subject: [PATCH] Try & make example closer to valid --- api/client-server/notifications.yaml | 32 +++++++++++++++++++--------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/api/client-server/notifications.yaml b/api/client-server/notifications.yaml index c23864f3..b875aa28 100644 --- a/api/client-server/notifications.yaml +++ b/api/client-server/notifications.yaml @@ -65,17 +65,29 @@ paths: application/json: |- { "next_token": "abcdef", - "notifications": { - "actions": [ - "notify" - ], - "profile_tag": null, - "read": true, - "room_id": "!abcdefg:example.com", - "ts": "1475508881945", - "event": { + "notifications": [ + { + "actions": [ + "notify" + ], + "profile_tag": null, + "read": true, + "room_id": "!abcdefg:example.com", + "ts": "1475508881945", + "event": { + "sender": "@alice:example.com", + "type": "m.room.message", + "age": 124524, + "txn_id": "1234", + "content": { + "body": "I am a fish", + "msgtype": "m.text" + }, + "origin_server_ts": 1417731086797, + "event_id": "$74686972643033:example.com" + } } - } + ] } schema: type: object