From 69c3ad34a0da88ce85df544c9169c42c9c6e528b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Fri, 8 May 2026 11:51:42 +0200 Subject: [PATCH] Clarify string formats in Typing Notifications section of the CS API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin Commaille --- data/api/client-server/typing.yaml | 4 ++++ data/event-schemas/schema/m.typing.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/data/api/client-server/typing.yaml b/data/api/client-server/typing.yaml index 0d21f452..9b0d1653 100644 --- a/data/api/client-server/typing.yaml +++ b/data/api/client-server/typing.yaml @@ -36,6 +36,8 @@ paths: example: "@alice:example.com" schema: type: string + format: mx-user-id + pattern: "^@" - in: path name: roomId description: The room in which the user is typing. @@ -43,6 +45,8 @@ paths: example: "!wefh3sfukhs:example.com" schema: type: string + format: mx-room-id + pattern: "^!" requestBody: content: application/json: diff --git a/data/event-schemas/schema/m.typing.yaml b/data/event-schemas/schema/m.typing.yaml index a34ca619..d2858642 100644 --- a/data/event-schemas/schema/m.typing.yaml +++ b/data/event-schemas/schema/m.typing.yaml @@ -13,6 +13,8 @@ properties: type: array items: type: string + format: mx-user-id + pattern: "^@" description: The list of user IDs typing in this room, if any. required: - user_ids