Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix schemas used for account data and presence events in GET /initialSync #1647

Merged
merged 2 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading