Fix schema of m.receipt EDU

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:
Kévin Commaille 2023-09-12 16:18:33 +02:00
parent 838dec272c
commit 469e75dfb6
No known key found for this signature in database
GPG key ID: 29A48C1F03620416

View file

@ -42,40 +42,42 @@ allOf:
"m.read": "m.read":
type: object type: object
description: Read receipts for users in the room. description: Read receipts for users in the room.
title: User Read Receipt additionalProperties:
properties: type: object
event_ids: title: User Read Receipt
type: array properties:
description: |- event_ids:
The extremity event IDs that the user has read up to. type: array
minItems: 1 description: |-
maxItems: 1 The extremity event IDs that the user has read up to.
items: minItems: 1
type: string maxItems: 1
example: ['$read_this_event:matrix.org'] items:
data: type: string
type: object example: ['$read_this_event:matrix.org']
description: Metadata for the read receipt. data:
title: Read Receipt Metadata type: object
properties: description: Metadata for the read receipt.
ts: title: Read Receipt Metadata
type: integer properties:
format: int64 ts:
description: |- type: integer
A POSIX timestamp in milliseconds for when the user read format: int64
the event specified in the read receipt.
example: 1533358089009
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": {