Skip to content

Commit

Permalink
Fix schemas used for account data and presence events in `GET /initia…
Browse files Browse the repository at this point in the history
…lSync` (#1647)

Signed-off-by: Kévin Commaille <[email protected]>
  • Loading branch information
zecakeh authored Oct 3, 2023
1 parent 92cf662 commit 9a9221d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1647.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix schemas used for account data and presence events in `GET /initialSync`.
9 changes: 3 additions & 6 deletions data/api/client-server/old_sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -219,18 +219,15 @@ 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
account_data:
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
Expand Down

0 comments on commit 9a9221d

Please sign in to comment.