mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-09-01 20:08:36 +00:00
docs: Merge error description for the same status code (#5911)
This commit is contained in:
@@ -125,13 +125,9 @@ pub fn doc(operation: TransformOperation) -> TransformOperation {
|
||||
let response = ErrorResponse::from_error(&RouteError::UsernameNotValid);
|
||||
t.description("Username is not valid").example(response)
|
||||
})
|
||||
.response_with::<409, RouteError, _>(|t| {
|
||||
let response = ErrorResponse::from_error(&RouteError::UserAlreadyExists);
|
||||
t.description("User already exists").example(response)
|
||||
})
|
||||
.response_with::<409, RouteError, _>(|t| {
|
||||
let response = ErrorResponse::from_error(&RouteError::UsernameReserved);
|
||||
t.description("Username is reserved by the homeserver")
|
||||
t.description("User already exists or the username is reserved by the homeserver")
|
||||
.example(response)
|
||||
})
|
||||
}
|
||||
|
||||
+1
-1
@@ -2310,7 +2310,7 @@
|
||||
}
|
||||
},
|
||||
"409": {
|
||||
"description": "Username is reserved by the homeserver",
|
||||
"description": "User already exists or the username is reserved by the homeserver",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
|
||||
Reference in New Issue
Block a user