From ce1e2565e7e1afa911ca0f273b95277b41293523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Fri, 1 May 2026 08:34:28 +0200 Subject: [PATCH] Clarify MXC URI string formats in m.image msgtype 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/image_info.yaml | 2 ++ data/event-schemas/schema/m.room.message$m.image.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/data/event-schemas/schema/core-event-schema/msgtype_infos/image_info.yaml b/data/event-schemas/schema/core-event-schema/msgtype_infos/image_info.yaml index 90a3331c..42e4540d 100644 --- a/data/event-schemas/schema/core-event-schema/msgtype_infos/image_info.yaml +++ b/data/event-schemas/schema/core-event-schema/msgtype_infos/image_info.yaml @@ -23,6 +23,8 @@ properties: The URL (typically [`mxc://` URI](/client-server-api/#matrix-content-mxc-uris)) to a thumbnail of the image. Only present if the thumbnail is unencrypted. type: string + format: mx-mxc-uri + pattern: "^mxc:\\/\\/" thumbnail_file: description: |- Information on the encrypted thumbnail file, as specified in diff --git a/data/event-schemas/schema/m.room.message$m.image.yaml b/data/event-schemas/schema/m.room.message$m.image.yaml index 68e44f06..2cb7371d 100644 --- a/data/event-schemas/schema/m.room.message$m.image.yaml +++ b/data/event-schemas/schema/m.room.message$m.image.yaml @@ -44,6 +44,8 @@ properties: Required if the file is unencrypted. The URL (typically [`mxc://` URI](/client-server-api/#matrix-content-mxc-uris)) to the image. type: string + format: mx-mxc-uri + pattern: "^mxc:\\/\\/" file: description: |- Required if the file is encrypted. Information on the encrypted