matrix-spec/data/api/server-server
Kévin Commaille ba24e89207
Refactor PDU definitions to reduce duplication
First of all, all PDU definitions were based on the v1 PDU definition with a few fields overwritten to change the format with needed.
While that works when rendering the spec, this is semantically incorrect because it means that the objects must match both schemas, which is impossible.

So now we make a base with only the common fields, and we add the others as needed by the room version.
Note that there is no more "unsigned PDU" definition since it is not used directly, and hashes and signatures are the same across all versions.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2025-02-07 12:24:37 +01:00
..
definitions Refactor PDU definitions to reduce duplication 2025-02-07 12:24:37 +01:00
examples Refactor PDU definitions to reduce duplication 2025-02-07 12:24:37 +01:00
backfill.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
content_repository.yaml Replace references to obsolete RFC 1341 with RFC 2046 (#1869) 2024-06-13 15:37:07 -06:00
event_auth.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
events.yaml Fix relative URLs when serving the specification with a custom baseURL (#1984) 2024-11-14 11:11:34 +00:00
invites-v1.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
invites-v2.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
joins-v1.yaml Remove the origin field in PUT /send_join responses (#2050) 2025-01-21 22:55:27 +00:00
joins-v2.yaml Remove the origin field in PUT /send_join responses (#2050) 2025-01-21 22:55:27 +00:00
keys_query.yaml Use "server name" instead of "DNS name" to avoid confusion (#1946) 2024-09-11 08:56:14 -04:00
keys_server.yaml Upgrade Swagger data to OpenAPI 3.1 (#1310) 2023-06-07 13:16:29 +01:00
knocks.yaml Clean up unecessary allOfs (#1797) 2024-04-23 17:07:24 +01:00
leaving-v1.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
leaving-v2.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
openid.yaml Upgrade Swagger data to OpenAPI 3.1 (#1310) 2023-06-07 13:16:29 +01:00
public_rooms.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
query.yaml MSC4170: 403 error responses for profile APIs (#1867) 2024-10-07 10:45:17 +01:00
space_hierarchy.yaml Fix relative URLs when serving the specification with a custom baseURL (#1984) 2024-11-14 11:11:34 +00:00
third_party_invite.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
transactions.yaml Use patternProperties in more places with supported formats (#1813) 2024-05-08 13:59:17 +00:00
user_devices.yaml Fix security schemes in OpenAPI definitions (#1772) 2024-04-09 18:12:30 +02:00
user_keys.yaml Specify the order in which one-time keys are returned (MSC4225) (#2029) 2024-12-12 15:53:21 +00:00
version.yaml Upgrade Swagger data to OpenAPI 3.1 (#1310) 2023-06-07 13:16:29 +01:00
wellknown.yaml Upgrade Swagger data to OpenAPI 3.1 (#1310) 2023-06-07 13:16:29 +01:00