From 641214a37f00a978f3584bcce31b221d7a0782ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Fri, 1 May 2026 08:22:53 +0200 Subject: [PATCH] Clarify MXC URI string formats in m.room.avatar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin Commaille --- .../schema/core-event-schema/msgtype_infos/avatar_info.yaml | 2 ++ data/event-schemas/schema/m.room.avatar.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/data/event-schemas/schema/core-event-schema/msgtype_infos/avatar_info.yaml b/data/event-schemas/schema/core-event-schema/msgtype_infos/avatar_info.yaml index 509f0ac1..e5e658b0 100644 --- a/data/event-schemas/schema/core-event-schema/msgtype_infos/avatar_info.yaml +++ b/data/event-schemas/schema/core-event-schema/msgtype_infos/avatar_info.yaml @@ -22,6 +22,8 @@ properties: description: |- The URL (typically [`mxc://` URI](/client-server-api/#matrix-content-mxc-uris)) to a thumbnail of the image. type: string + format: mx-mxc-uri + pattern: "^mxc:\\/\\/" thumbnail_info: allOf: - $ref: thumbnail_info.yaml diff --git a/data/event-schemas/schema/m.room.avatar.yaml b/data/event-schemas/schema/m.room.avatar.yaml index b33b96dd..c641314f 100644 --- a/data/event-schemas/schema/m.room.avatar.yaml +++ b/data/event-schemas/schema/m.room.avatar.yaml @@ -16,6 +16,8 @@ properties: The URL to the image. If this property is not present, the room has no avatar. This can be useful to remove a previous room avatar. type: string + format: mx-mxc-uri + pattern: "^mxc:\\/\\/" type: object state_key: description: A zero-length string.