From b009b7d9444beebe1deadb58faecd37f0551959f Mon Sep 17 00:00:00 2001 From: David Robertson Date: Thu, 30 Jun 2022 23:33:15 +0100 Subject: [PATCH] Return 400 if the request body isn't an object. --- data/api/client-server/account-data.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/api/client-server/account-data.yaml b/data/api/client-server/account-data.yaml index f7ef13eb..e9a5b37d 100644 --- a/data/api/client-server/account-data.yaml +++ b/data/api/client-server/account-data.yaml @@ -71,6 +71,9 @@ paths: application/json: {} schema: type: object + 400: + description: |- + The request body is not a JSON object. 403: description: |- The access token provided is not authorized to modify this user's account @@ -174,6 +177,9 @@ paths: application/json: {} schema: type: object + 400: + description: |- + The request body is not a JSON object. 403: description: |- The access token provided is not authorized to modify this user's account