From 65343601fea2915b4ae1085e33cee5439ee1e716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Mon, 6 Jan 2025 04:18:47 +0100 Subject: [PATCH] Clarify formats of string types in current account information section 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/whoami.yaml | 2 ++ data/event-schemas/schema/m.identity_server.yaml | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/data/api/client-server/whoami.yaml b/data/api/client-server/whoami.yaml index 8f4027e7..55e5cb79 100644 --- a/data/api/client-server/whoami.yaml +++ b/data/api/client-server/whoami.yaml @@ -44,6 +44,8 @@ paths: properties: user_id: type: string + format: mx-user-id + pattern: "^@" description: The user ID that owns the access token. device_id: x-addedInMatrixVersion: "1.1" diff --git a/data/event-schemas/schema/m.identity_server.yaml b/data/event-schemas/schema/m.identity_server.yaml index acd0eb92..1c08b047 100644 --- a/data/event-schemas/schema/m.identity_server.yaml +++ b/data/event-schemas/schema/m.identity_server.yaml @@ -9,7 +9,10 @@ properties: type: object properties: base_url: - type: string + anyOf: + - type: string + format: uri + - type: "null" description: |- The URL of the identity server the user prefers to use, or `null` if the user does not want to use an identity server. This value is