From 9dfcf9fc4ba398b7524ed536b12c9813702c8fa9 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Thu, 13 Oct 2022 22:25:47 +0100 Subject: [PATCH] Define a 400 response from {PUT,GET,DELETE} `/directory/rooms/{roomAlias}` --- data/api/client-server/directory.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/data/api/client-server/directory.yaml b/data/api/client-server/directory.yaml index 1b128905..50a906ff 100644 --- a/data/api/client-server/directory.yaml +++ b/data/api/client-server/directory.yaml @@ -61,6 +61,15 @@ paths: application/json: {} schema: type: object + 400: + description: The given `roomAlias` is not a valid room alias. + examples: + application/json: { + "errcode": "M_INVALID_PARAM", + "error": "Room alias invalid" + } + schema: + "$ref": "definitions/errors/error.yaml" 409: description: A room alias with that name already exists. examples: @@ -113,6 +122,15 @@ paths: "another.com" ] } + 400: + description: The given `roomAlias` is not a valid room alias. + examples: + application/json: { + "errcode": "M_INVALID_PARAM", + "error": "Room alias invalid" + } + schema: + "$ref": "definitions/errors/error.yaml" 404: description: There is no mapped room ID for this room alias. examples: @@ -220,6 +238,15 @@ paths: items: type: string required: ['aliases'] + 400: + description: The given `roomAlias` is not a valid room alias. + examples: + application/json: { + "errcode": "M_INVALID_PARAM", + "error": "Room alias invalid" + } + schema: + "$ref": "definitions/errors/error.yaml" 403: description: The user is not permitted to retrieve the list of local aliases for the room. examples: