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.
This commit is contained in:
parent
89453bfd8c
commit
cf850b4270
1 changed files with 69 additions and 65 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue