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:
Kévin Commaille 2023-10-03 22:55:37 +02:00 committed by GitHub
parent 92cf662e3a
commit 9a9221d8ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View file

@ -0,0 +1 @@
Fix schemas used for account data and presence events in `GET /initialSync`.

View file

@ -137,7 +137,7 @@ paths:
type: array
description: A list of presence events.
items:
$ref: definitions/client_event.yaml
$ref: ../../event-schemas/schema/core-event-schema/event.yaml
rooms:
type: array
items:
@ -219,7 +219,7 @@ paths:
The private data that this user has attached to
this room.
items:
$ref: definitions/client_event.yaml
$ref: ../../event-schemas/schema/core-event-schema/event.yaml
required:
- room_id
- membership
@ -227,10 +227,7 @@ paths:
type: array
description: The global private data created by this user.
items:
title: Event
type: object
allOf:
- $ref: ../../event-schemas/schema/core-event-schema/event.yaml
$ref: ../../event-schemas/schema/core-event-schema/event.yaml
required:
- end
- rooms