docs-matrix-spec/data/api/client-server
Kévin Commaille c39c7d0680
Fix /sync example (#2077)
* Fix sync example

The same event should not appear in `state` and in the `timeline` so we cannot use the same event twice.

To provide a `state` example we assume that with lazy-loading the user did not get the state event for `@example:example.org`, so we add one since they sent a message in the timeline.

The events that are referenced include a `room_id`, which doesn't appear on this endpoint, so we copy them without it.

Finally, the `join` event of `@alice:example.org` is wrong because the sender does not match the state key, which wouldn't pass the authorization rules.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>

* Fix the `m.room.member.yaml` example

This is a `join` event, and the `sender` doesn't match the `state_key`, so the event couldn't pass the authorization rules.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>

* Add changelog

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>

---------

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2025-04-15 14:47:21 +01:00
..
definitions Deduplicate Invite3pid (#2074) 2025-03-05 09:56:49 +00:00
account-data.yaml Fix relative URLs when serving the specification with a custom baseURL (#1984) 2024-11-14 11:11:34 +00:00
admin.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
administrative_contact.yaml Add error codes from MSC4178 (#1944) 2024-12-11 09:48:26 +00:00
appservice_ping.yaml Fix relative URLs when serving the specification with a custom baseURL (#1984) 2024-11-14 11:11:34 +00:00
appservice_room_directory.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
authed-content-repo.yaml Specify Content-Type and Content-Disposition usage in the media repo (#1935) 2024-09-02 10:41:33 +02:00
banning.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
capabilities.yaml Additional keys in GET /capabilities don't have to be objects (#1945) 2024-09-11 13:51:27 +02:00
content-repo.yaml Clarify that the async upload endpoint will return 404 in some cases (#1983) 2024-11-06 11:28:47 +00:00
create_room.yaml Deduplicate Invite3pid (#2074) 2025-03-05 09:56:49 +00:00
cross_signing.yaml Do not require UIA when first uploading cross-signing keys (#1828) 2024-06-06 11:06:32 +01:00
device_management.yaml Clean up unecessary allOfs (#1797) 2024-04-23 17:07:24 +01:00
directory.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
event_context.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
filter.yaml Clean up unecessary allOfs (#1797) 2024-04-23 17:07:24 +01:00
inviting.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
joining.yaml MSC4213: Remove server_name parameter (#2059) 2025-02-11 18:03:25 +00:00
key_backup.yaml Deduplicate RoomKeysUpdateResponse (#2073) 2025-03-05 09:52:40 +00:00
keys.yaml Specify the order in which one-time keys are returned (MSC4225) (#2029) 2024-12-12 15:53:21 +00:00
kicking.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
knocking.yaml MSC4213: Remove server_name parameter (#2059) 2025-02-11 18:03:25 +00:00
leaving.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
list_joined_rooms.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
list_public_rooms.yaml Document instance_id field of /thirdparty/protocols (#2051) 2025-02-13 17:29:56 +00:00
login.yaml Clarify formats of string types for the POST /_matrix/client/v3/login endpoint (#1980) 2024-11-06 11:14:24 +00:00
login_token.yaml Document m.get_login_token capability (#1908) 2024-07-19 11:13:10 +01:00
logout.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
message_pagination.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
notifications.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
old_sync.yaml Remove extra trailing quotes from sync API specs (#2091) 2025-03-05 09:12:15 -05:00
openid.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
peeking_events.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
presence.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
profile.yaml MSC4170: 403 error responses for profile APIs (#1867) 2024-10-07 10:45:17 +01:00
pusher.yaml Clarify that servers must forward custom keys in PusherData (#1973) 2024-10-30 10:33:44 +00:00
pushrules.yaml Remove references to device-specific push rules. (#1842) 2024-08-01 10:33:41 -04:00
read_markers.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
receipts.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
redaction.yaml Fix typo in /_matrix/client/v3/rooms/{roomId}/redact/{eventId}/{txnId} (#2047) 2025-01-14 18:52:56 +00:00
refresh.yaml Upgrade Swagger data to OpenAPI 3.1 (#1310) 2023-06-07 13:16:29 +01:00
registration.yaml Clarify formats of string types in account sections (#2046) 2025-01-17 17:18:51 +00:00
registration_tokens.yaml Upgrade Swagger data to OpenAPI 3.1 (#1310) 2023-06-07 13:16:29 +01:00
relations.yaml Clarify that relations recursion should be capped at a certain depth (#1854) 2024-06-13 14:34:54 -04:00
report_content.yaml MSC4260: Reporting users (Client-Server API) (#2093) 2025-03-21 13:33:26 -06:00
room_event_by_timestamp.yaml Fix relative URLs when serving the specification with a custom baseURL (#1984) 2024-11-14 11:11:34 +00:00
room_initial_sync.yaml Remove extra trailing quotes from sync API specs (#2091) 2025-03-05 09:12:15 -05:00
room_send.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
room_state.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
room_upgrades.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
rooms.yaml Use patternProperties in more places with supported formats (#1813) 2024-05-08 13:59:17 +00:00
search.yaml Use patternProperties in more places with supported formats (#1813) 2024-05-08 13:59:17 +00:00
space_hierarchy.yaml Clarify which rooms are returned from /hierarchy (#2064) 2025-02-14 12:06:21 +00:00
sso_login_redirect.yaml Upgrade Swagger data to OpenAPI 3.1 (#1310) 2023-06-07 13:16:29 +01:00
support.yaml Clarify formats of string types for the GET /.well-known/matrix/support endpoint (#1978) 2024-11-06 15:16:34 +00:00
sync.yaml Fix /sync example (#2077) 2025-04-15 14:47:21 +01:00
tags.yaml Factor out common definition of Tag type (#1793) 2024-04-17 13:51:24 +01:00
third_party_lookup.yaml Document instance_id field of /thirdparty/protocols (#2051) 2025-02-13 17:29:56 +00:00
third_party_membership.yaml Deduplicate Invite3pid (#2074) 2025-03-05 09:56:49 +00:00
threads_list.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
to_device.yaml Use patternProperties in more places with supported formats (#1813) 2024-05-08 13:59:17 +00:00
typing.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
users.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
versions.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
voip.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
wellknown.yaml Upgrade Swagger data to OpenAPI 3.1 (#1310) 2023-06-07 13:16:29 +01:00
whoami.yaml Clarify formats of string types in account sections (#2046) 2025-01-17 17:18:51 +00:00