From 19fa1c9cbfd3cd7b869459d2acada2b5e8116ae1 Mon Sep 17 00:00:00 2001 From: Harri Date: Tue, 14 Oct 2025 15:51:01 +0200 Subject: [PATCH] Fix schema for room forget call https://spec.matrix.org/v1.16/client-server-api/#post_matrixclientv3roomsroomidforget fails to define a request body. But it is not one of the four exceptions listed in https://spec.matrix.org/v1.16/client-server-api/#api-standards which deviate from the rule that > All POST and PUT endpoints, with the exception of those listed below, require the client to supply a request body containing a (potentially empty) JSON object. --- data/api/client-server/leaving.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/data/api/client-server/leaving.yaml b/data/api/client-server/leaving.yaml index 6bdadb08..ae2b7eb8 100644 --- a/data/api/client-server/leaving.yaml +++ b/data/api/client-server/leaving.yaml @@ -102,6 +102,13 @@ paths: example: "!au1ba7o:matrix.org" schema: type: string + requestBody: + content: + application/json: + schema: + type: object + example: {} + required: true responses: "200": description: The room has been forgotten.