From adde146d48f85cd444a9aa811727200c4085a2ad Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 23 Jun 2026 15:35:57 +0100 Subject: [PATCH] Add more string formats --- .../schema/components/room_key_withheld_content.yaml | 3 +++ data/event-schemas/schema/m.room_key_bundle.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/data/event-schemas/schema/components/room_key_withheld_content.yaml b/data/event-schemas/schema/components/room_key_withheld_content.yaml index 9c8b957b..c1e6bf26 100644 --- a/data/event-schemas/schema/components/room_key_withheld_content.yaml +++ b/data/event-schemas/schema/components/room_key_withheld_content.yaml @@ -7,6 +7,8 @@ properties: The encryption algorithm for the key that this event is about. room_id: type: string + format: mx-room-id + pattern: "^!" description: |- Required if `code` is not `m.no_olm`. The room for the key that this event is about. @@ -17,6 +19,7 @@ properties: that this event is about. sender_key: type: string + format: mx-unpadded-base64 description: |- The unpadded base64-encoded device curve25519 key of the event\'s sender. diff --git a/data/event-schemas/schema/m.room_key_bundle.yaml b/data/event-schemas/schema/m.room_key_bundle.yaml index 972c5c87..a0e24f36 100644 --- a/data/event-schemas/schema/m.room_key_bundle.yaml +++ b/data/event-schemas/schema/m.room_key_bundle.yaml @@ -21,6 +21,8 @@ properties: properties: room_id: type: string + format: mx-room-id + pattern: "^!" description: The room to which the keys in the key bundle relate. file: description: |-