From 0c3245a46ab16d536905ee0659053ca8e8583ba1 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 30 Sep 2024 13:59:54 +0100 Subject: [PATCH] Add the codes to the right endpoint --- .../api/client-server/administrative_contact.yaml | 15 +++++++++------ data/api/client-server/registration.yaml | 8 -------- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/data/api/client-server/administrative_contact.yaml b/data/api/client-server/administrative_contact.yaml index a1f7be9d3..52fd1a98f 100644 --- a/data/api/client-server/administrative_contact.yaml +++ b/data/api/client-server/administrative_contact.yaml @@ -488,9 +488,11 @@ paths: "400": description: |- The third-party identifier is already in use on the homeserver, or - the request was invalid. The error code `M_SERVER_NOT_TRUSTED` - can be returned if the server does not trust/support the identity server - provided in the request. + the request was invalid. Error codes that can be returned are: + * `M_SERVER_NOT_TRUSTED`: The server does not trust/support the identity server + provided in the request. + * `M_THREEPID_MEDIUM_NOT_SUPPORTED`: The homeserver does not support adding email addresses. + * `M_INVALID_PARAM`: The email address given was not valid. content: application/json: schema: @@ -547,9 +549,10 @@ paths: "400": description: |- The third-party identifier is already in use on the homeserver, or - the request was invalid. The error code `M_SERVER_NOT_TRUSTED` - can be returned if the server does not trust/support the identity server - provided in the request. + the request was invalid. Error codes that can be returned are: + * `M_SERVER_NOT_TRUSTED`: The server does not trust/support the identity server + * `M_THREEPID_MEDIUM_NOT_SUPPORTED`: The homeserver does not support adding phone numbers. + * `M_INVALID_PARAM`: The phone number given was not valid. content: application/json: schema: diff --git a/data/api/client-server/registration.yaml b/data/api/client-server/registration.yaml index 316506af3..84aef5b12 100644 --- a/data/api/client-server/registration.yaml +++ b/data/api/client-server/registration.yaml @@ -284,10 +284,6 @@ paths: has an account on the homeserver in question. * `M_SERVER_NOT_TRUSTED` : The `id_server` parameter refers to an identity server that is not trusted by this homeserver. - * `M_THREEPID_MEDIUM_NOT_SUPPORTED` - The homeserver does not support adding email addresses. - * `M_INVALID_PARAM` - The email address given was not valid. content: application/json: schema: @@ -349,10 +345,6 @@ paths: has an account on the homeserver in question. * `M_SERVER_NOT_TRUSTED` : The `id_server` parameter refers to an identity server that is not trusted by this homeserver. - * `M_THREEPID_MEDIUM_NOT_SUPPORTED` - The homeserver does not support adding phone numbers. - * `M_INVALID_PARAM` - The phone number given was not valid. content: application/json: schema: