mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 04:54:10 +01:00
Fix a few events/endpoints schemas for better rendering
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
e719219a6c
commit
ffa576f932
|
|
@ -162,7 +162,6 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
title: Signatures
|
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,12 @@ properties:
|
||||||
content:
|
content:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: array
|
type: array
|
||||||
title: User ID
|
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
description: |-
|
||||||
|
The mapping of user ID to a list of room IDs of the 'direct' rooms for
|
||||||
|
that user ID.
|
||||||
type:
|
type:
|
||||||
enum:
|
enum:
|
||||||
- m.direct
|
- m.direct
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,10 @@ properties:
|
||||||
properties:
|
properties:
|
||||||
ignored_users:
|
ignored_users:
|
||||||
type: object
|
type: object
|
||||||
title: "Ignored users"
|
|
||||||
description: "The map of users to ignore"
|
description: "The map of users to ignore"
|
||||||
patternProperties:
|
patternProperties:
|
||||||
"^@":
|
"^@":
|
||||||
type: "object"
|
type: "object"
|
||||||
title: "Ignored User"
|
|
||||||
description: "An empty object for future enhancement"
|
description: "An empty object for future enhancement"
|
||||||
x-pattern: "$USER_ID"
|
x-pattern: "$USER_ID"
|
||||||
required:
|
required:
|
||||||
|
|
|
||||||
|
|
@ -9,19 +9,20 @@ allOf:
|
||||||
properties:
|
properties:
|
||||||
content:
|
content:
|
||||||
type: object
|
type: object
|
||||||
|
description: |-
|
||||||
|
The mapping of event ID to a collection of receipts for this
|
||||||
|
event ID. The event ID is the ID of the event being acknowledged
|
||||||
|
and *not* an ID for the receipt itself.
|
||||||
patternProperties:
|
patternProperties:
|
||||||
"^\\$":
|
"^\\$":
|
||||||
type: object
|
type: object
|
||||||
x-pattern: "$EVENT_ID"
|
x-pattern: "$EVENT_ID"
|
||||||
title: Receipts
|
title: Event Receipts
|
||||||
description: |-
|
description: |-
|
||||||
The mapping of event ID to a collection of receipts for this
|
The collection of receipts for this event ID.
|
||||||
event ID. The event ID is the ID of the event being acknowledged
|
|
||||||
and *not* an ID for the receipt itself.
|
|
||||||
properties:
|
properties:
|
||||||
"m.read":
|
"m.read":
|
||||||
type: object
|
type: object
|
||||||
title: Users
|
|
||||||
description: |-
|
description: |-
|
||||||
A collection of users who have sent `m.read` receipts for
|
A collection of users who have sent `m.read` receipts for
|
||||||
this event.
|
this event.
|
||||||
|
|
@ -48,7 +49,6 @@ properties:
|
||||||
(default).
|
(default).
|
||||||
"m.read.private":
|
"m.read.private":
|
||||||
type: object
|
type: object
|
||||||
title: Own User
|
|
||||||
description: |-
|
description: |-
|
||||||
Similar to `m.read`, the users who have sent `m.read.private`
|
Similar to `m.read`, the users who have sent `m.read.private`
|
||||||
receipts for this event. Due to the nature of private read
|
receipts for this event. Due to the nature of private read
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue