mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-28 21:34:09 +02:00
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
|
|
@ -55,7 +55,6 @@ paths:
|
||||||
"content": {
|
"content": {
|
||||||
"msgtype": "m.text",
|
"msgtype": "m.text",
|
||||||
"body": "I'm floating in a most peculiar way."
|
"body": "I'm floating in a most peculiar way."
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"counts": {
|
"counts": {
|
||||||
"unread" : 2,
|
"unread" : 2,
|
||||||
|
|
@ -73,11 +72,14 @@ paths:
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
required: ["notification", "counts", "devices"]
|
}
|
||||||
|
required: ["notification"]
|
||||||
properties:
|
properties:
|
||||||
notification:
|
notification:
|
||||||
type: object
|
type: object
|
||||||
|
title: Notification
|
||||||
description: Information about the push notification
|
description: Information about the push notification
|
||||||
|
required: ["devices"]
|
||||||
properties:
|
properties:
|
||||||
event_id:
|
event_id:
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -138,6 +140,7 @@ paths:
|
||||||
event had no content field, this field is omitted.
|
event had no content field, this field is omitted.
|
||||||
counts:
|
counts:
|
||||||
type: object
|
type: object
|
||||||
|
title: Counts
|
||||||
description: |-
|
description: |-
|
||||||
This is a dictionary of the current number of unacknowledged
|
This is a dictionary of the current number of unacknowledged
|
||||||
communications for the recipient user. Counts whose value is
|
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.
|
This is an array of devices that the notification should be sent to.
|
||||||
items:
|
items:
|
||||||
type: object
|
type: object
|
||||||
|
title: Device
|
||||||
properties:
|
properties:
|
||||||
app_id:
|
app_id:
|
||||||
type: string
|
type: string
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue