BAD_JSON -> NOT_JSON where appropriate

This commit is contained in:
David Robertson 2022-07-13 19:14:25 +01:00
parent e742b9948e
commit 999d7a5a15
No known key found for this signature in database
GPG key ID: 903ECE108A39DEDD

View file

@ -73,10 +73,10 @@ paths:
type: object type: object
400: 400:
description: |- description: |-
The request body is not a JSON object. Errcode: `M_BAD_JSON`. The request body is not a JSON object. Errcode: `M_NOT_JSON`.
examples: examples:
application/json: { application/json: {
"errcode": "M_BAD_JSON", "errcode": "M_NOT_JSON",
"error": "Content must be a JSON object." "error": "Content must be a JSON object."
} }
schema: schema:
@ -215,11 +215,11 @@ paths:
type: object type: object
400: 400:
description: |- description: |-
The request body is not a JSON object (errcode `M_BAD_JSON`), or the The request body is not a JSON object (errcode `M_NOT_JSON`), or the
given `roomID` is not a valid room ID (errcode `M_INVALID_PARAM`). given `roomID` is not a valid room ID (errcode `M_INVALID_PARAM`).
examples: examples:
application/json: { application/json: {
"errcode": "M_BAD_JSON", "errcode": "M_NOT_JSON",
"error": "Content must be a JSON object." "error": "Content must be a JSON object."
} }
schema: schema: