mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Fix schemas used for account data and presence events in GET /initialSync (#1647)
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
92cf662e3a
commit
9a9221d8ef
|
|
@ -0,0 +1 @@
|
||||||
|
Fix schemas used for account data and presence events in `GET /initialSync`.
|
||||||
|
|
@ -137,7 +137,7 @@ paths:
|
||||||
type: array
|
type: array
|
||||||
description: A list of presence events.
|
description: A list of presence events.
|
||||||
items:
|
items:
|
||||||
$ref: definitions/client_event.yaml
|
$ref: ../../event-schemas/schema/core-event-schema/event.yaml
|
||||||
rooms:
|
rooms:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
|
@ -219,7 +219,7 @@ paths:
|
||||||
The private data that this user has attached to
|
The private data that this user has attached to
|
||||||
this room.
|
this room.
|
||||||
items:
|
items:
|
||||||
$ref: definitions/client_event.yaml
|
$ref: ../../event-schemas/schema/core-event-schema/event.yaml
|
||||||
required:
|
required:
|
||||||
- room_id
|
- room_id
|
||||||
- membership
|
- membership
|
||||||
|
|
@ -227,10 +227,7 @@ paths:
|
||||||
type: array
|
type: array
|
||||||
description: The global private data created by this user.
|
description: The global private data created by this user.
|
||||||
items:
|
items:
|
||||||
title: Event
|
$ref: ../../event-schemas/schema/core-event-schema/event.yaml
|
||||||
type: object
|
|
||||||
allOf:
|
|
||||||
- $ref: ../../event-schemas/schema/core-event-schema/event.yaml
|
|
||||||
required:
|
required:
|
||||||
- end
|
- end
|
||||||
- rooms
|
- rooms
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue