From 3a5e5555fa325bc7e527da511ef3492259f343bf Mon Sep 17 00:00:00 2001 From: Tom Foster Date: Thu, 20 Feb 2025 16:48:20 +0000 Subject: [PATCH] Correct `PUT`/`GET` payload definitions --- data/api/client-server/profile.yaml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/data/api/client-server/profile.yaml b/data/api/client-server/profile.yaml index 732ae34d..438288c7 100644 --- a/data/api/client-server/profile.yaml +++ b/data/api/client-server/profile.yaml @@ -59,13 +59,8 @@ paths: schema: type: object properties: - avatar_url: - type: string - description: Avatar URL value (MXC URI format). - displayname: - type: string - additionalProperties: - description: Any additional profile field value; may be any valid JSON type. + "": + description: The field value to set; may be any valid JSON type. example: { "displayname": "Alice Wonderland" } responses: "200": @@ -150,13 +145,9 @@ paths: schema: type: object properties: - avatar_url: - type: string - description: Avatar URL value (MXC URI format). - displayname: - type: string - additionalProperties: - description: Any additional profile field value, of any valid JSON type. + "": + description: The field value to set; may be any valid JSON type. + additionalProperties: false examples: response: value: { "displayname": "Alice" }