fix up the 404 response schema

it wasn't displaying correctly in the rendered spec otherwise
This commit is contained in:
Andrew Morgan 2023-08-04 10:25:52 +01:00
parent 0fccbac6fe
commit 7cc6d6e359

View file

@ -79,18 +79,23 @@ paths:
examples: examples:
response: response:
value: {} value: {}
404: "404":
description: |- description: |-
The event was not found or you are not joined to the room where the The event was not found or you are not joined to the room where the
event resides. event resides.
Homeserver implementations can additionally return this error if the Homeserver implementations can additionally return this error if the
reported event has been redacted. reported event has been redacted.
examples: content:
application/json: { application/json:
"errcode": "M_NOT_FOUND", schema:
"error": "The event was not found or you are not joined to the room." $ref: definitions/errors/error.yaml
} examples:
response:
value: {
"errcode": "M_NOT_FOUND",
"error": "The event was not found or you are not joined to the room."
}
schema: schema:
$ref: "../client-server/definitions/errors/error.yaml" $ref: "../client-server/definitions/errors/error.yaml"
tags: tags: