Clarified 400 responses descriptions

This commit is contained in:
Marco Realacci 2022-11-22 22:13:46 +01:00
parent f896e9ab48
commit 2baddf724d

View file

@ -208,8 +208,8 @@ paths:
schema:
$ref: "#/components/schemas/generic_response"
example:
status: "User not found"
'400':
status: "Resource not found"
'400': # todo: not sure if this is the right error code
description: Trying to follow a user that does not exist.
content:
application/json:
@ -586,13 +586,13 @@ paths:
example:
status: "Resource not found"
'400':
description: Bad request, there is an error in one of the parameters.
description: Some parameters are malformed.
content:
application/json:
schema:
$ref: "#/components/schemas/generic_response"
example:
status: "Invalid limit or start_index"
status: "Invalid start_index or limit value"
post:
tags: ["photos"]