Fix schema of m.receipt
EDU (#1636)
It was missing a nesting level for the user ID -> user read receipt map. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
46447e0287
commit
96f88e035c
2 changed files with 39 additions and 34 deletions
|
@ -0,0 +1 @@
|
||||||
|
Fix schema of `m.receipt` EDU.
|
|
@ -41,41 +41,45 @@ allOf:
|
||||||
# on. At that point, m.read can become optional (maybe).
|
# on. At that point, m.read can become optional (maybe).
|
||||||
"m.read":
|
"m.read":
|
||||||
type: object
|
type: object
|
||||||
description: Read receipts for users in the room.
|
description: |-
|
||||||
title: User Read Receipt
|
Read receipts for users in the room. The string key is the user
|
||||||
properties:
|
ID the receipt belongs to.
|
||||||
event_ids:
|
additionalProperties:
|
||||||
type: array
|
type: object
|
||||||
description: |-
|
title: User Read Receipt
|
||||||
The extremity event IDs that the user has read up to.
|
properties:
|
||||||
minItems: 1
|
event_ids:
|
||||||
maxItems: 1
|
type: array
|
||||||
items:
|
description: |-
|
||||||
type: string
|
The extremity event IDs that the user has read up to.
|
||||||
example: ['$read_this_event:matrix.org']
|
minItems: 1
|
||||||
data:
|
maxItems: 1
|
||||||
type: object
|
items:
|
||||||
description: Metadata for the read receipt.
|
type: string
|
||||||
title: Read Receipt Metadata
|
example: ['$read_this_event:matrix.org']
|
||||||
properties:
|
data:
|
||||||
ts:
|
type: object
|
||||||
type: integer
|
description: Metadata for the read receipt.
|
||||||
format: int64
|
title: Read Receipt Metadata
|
||||||
description: |-
|
properties:
|
||||||
A POSIX timestamp in milliseconds for when the user read
|
ts:
|
||||||
the event specified in the read receipt.
|
type: integer
|
||||||
example: 1533358089009
|
format: int64
|
||||||
thread_id:
|
|
||||||
type: string
|
|
||||||
x-addedInMatrixVersion: "1.4"
|
|
||||||
description: |-
|
description: |-
|
||||||
The root thread event's ID (or `main`) for which
|
A POSIX timestamp in milliseconds for when the user read
|
||||||
thread this receipt is intended to be under. If
|
the event specified in the read receipt.
|
||||||
not specified, the read receipt is *unthreaded*
|
example: 1533358089009
|
||||||
(default).
|
thread_id:
|
||||||
example: "$threadroot"
|
type: string
|
||||||
required: ['ts']
|
x-addedInMatrixVersion: "1.4"
|
||||||
required: ['event_ids', 'data']
|
description: |-
|
||||||
|
The root thread event's ID (or `main`) for which
|
||||||
|
thread this receipt is intended to be under. If
|
||||||
|
not specified, the read receipt is *unthreaded*
|
||||||
|
(default).
|
||||||
|
example: "$threadroot"
|
||||||
|
required: ['ts']
|
||||||
|
required: ['event_ids', 'data']
|
||||||
required: ['m.read']
|
required: ['m.read']
|
||||||
example: {
|
example: {
|
||||||
"!some_room:example.org": {
|
"!some_room:example.org": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue