Return 400 if the request body isn't an object.

This commit is contained in:
David Robertson 2022-06-30 23:33:15 +01:00
parent bbd380d761
commit b009b7d944
No known key found for this signature in database
GPG key ID: 903ECE108A39DEDD

View file

@ -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