From f8bf0fa0ac70e59edb4304682863eccd63eff2aa Mon Sep 17 00:00:00 2001 From: Alexey Rusakov Date: Tue, 22 Jun 2021 17:51:53 +0200 Subject: [PATCH] profile.yaml: require displayname/avatar_url This makes a deliberate choice for the question stated in #2717. --- data/api/client-server/profile.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/api/client-server/profile.yaml b/data/api/client-server/profile.yaml index e8bdc4de..84502580 100644 --- a/data/api/client-server/profile.yaml +++ b/data/api/client-server/profile.yaml @@ -56,6 +56,7 @@ paths: displayname: type: string description: The new display name for this user. + required: ["displayname"] responses: 200: description: The display name was set. @@ -131,6 +132,7 @@ paths: type: string format: uri description: The new avatar URL for this user. + required: ["avatar_url"] responses: 200: description: The avatar URL was set.