From ec7fa46581871daee46ca7bc2725194f503c4063 Mon Sep 17 00:00:00 2001 From: Tom Foster Date: Wed, 6 Aug 2025 07:49:03 +0100 Subject: [PATCH] Update data/api/client-server/profile.yaml Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> --- data/api/client-server/profile.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/data/api/client-server/profile.yaml b/data/api/client-server/profile.yaml index 6a80f454..e6b68a9a 100644 --- a/data/api/client-server/profile.yaml +++ b/data/api/client-server/profile.yaml @@ -61,12 +61,16 @@ paths: schema: type: object minProperties: 1 - description: The JSON object must include a property whose key - matches the `keyName` specified in the URL. For `avatar_url`, - the value must be an MXC URI string. For `displayname`, the value - must be a string. For custom keys, any JSON type is allowed - - servers may not validate these values, but clients should follow - the format defined for that key. + description: | + An object which contains exactly one property. The key + of that property MUST match the `keyName` specified in the URL. + + For `avatar_url`, the value MUST be an MXC URI string. + + For `displayname`, the value MUST be a string. + + For custom keys, any JSON type is allowed. Servers MAY not validate + these values, but clients SHOULD follow the format defined for that key. additionalProperties: true example: { "displayname": "Alice Wonderland" } responses: