Fix level of `counts` and `devices`

They are actually within the notification object rather than the top level object. Add titles to objects so it works.
dbkr/add_push_change_event_id
David Baker 8 years ago
parent 89453bfd8c
commit cf850b4270

@ -55,7 +55,6 @@ paths:
"content": {
"msgtype": "m.text",
"body": "I'm floating in a most peculiar way."
}
},
"counts": {
"unread" : 2,
@ -73,11 +72,14 @@ paths:
}
]
}
required: ["notification", "counts", "devices"]
}
required: ["notification"]
properties:
notification:
type: object
title: Notification
description: Information about the push notification
required: ["devices"]
properties:
event_id:
type: string
@ -138,6 +140,7 @@ paths:
event had no content field, this field is omitted.
counts:
type: object
title: Counts
description: |-
This is a dictionary of the current number of unacknowledged
communications for the recipient user. Counts whose value is
@ -160,6 +163,7 @@ paths:
This is an array of devices that the notification should be sent to.
items:
type: object
title: Device
properties:
app_id:
type: string

Loading…
Cancel
Save