From 186abbfb606d5b27eccd940ea9b22bf0aad101c5 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Thu, 25 Jul 2024 12:02:17 +0200 Subject: [PATCH] Remove `additionalProperties: {}` and note in description --- changelogs/client_server/newsfragments/1910.clarification | 2 +- data/api/client-server/profile.yaml | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/changelogs/client_server/newsfragments/1910.clarification b/changelogs/client_server/newsfragments/1910.clarification index b297fdbd..3664eaf6 100644 --- a/changelogs/client_server/newsfragments/1910.clarification +++ b/changelogs/client_server/newsfragments/1910.clarification @@ -1 +1 @@ -Update response schema of `GET /_matrix/client/v3/profile/{userId}` to clarify that properties other than `displayname` or `avatar_url` can be returned. +Don't mention that `GET /_matrix/client/v3/profile/{userId}` can return additional properties because this is true for almost every endpoint. diff --git a/data/api/client-server/profile.yaml b/data/api/client-server/profile.yaml index b483af9b..1a55084c 100644 --- a/data/api/client-server/profile.yaml +++ b/data/api/client-server/profile.yaml @@ -195,8 +195,7 @@ paths: description: |- Get the combined profile information for this user. This API may be used to fetch the user's own profile information or other users; either - locally or on remote homeservers. This API may return keys which are not - limited to `displayname` or `avatar_url`. + locally or on remote homeservers. operationId: getUserProfile parameters: - in: path @@ -222,7 +221,6 @@ paths: type: string description: The user's display name if they have set one, otherwise not present. - additionalProperties: {} examples: response: value: {