mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Replace underscores with hyphens in doc link to error code
This commit is contained in:
parent
db7eaf23f4
commit
2d74678b51
28 changed files with 174 additions and 159 deletions
|
@ -176,7 +176,7 @@ async fn error_create_existing_index() {
|
|||
"message": "Index `test` already exists.",
|
||||
"code": "index_already_exists",
|
||||
"type": "invalid_request",
|
||||
"link":"https://docs.meilisearch.com/errors#index_already_exists"
|
||||
"link":"https://docs.meilisearch.com/errors#index-already-exists"
|
||||
});
|
||||
|
||||
assert_eq!(response["error"], expected_response);
|
||||
|
@ -192,7 +192,7 @@ async fn error_create_with_invalid_index_uid() {
|
|||
"message": "`test test#!` is not a valid index uid. Index uid can be an integer or a string containing only alphanumeric characters, hyphens (-) and underscores (_).",
|
||||
"code": "invalid_index_uid",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#invalid_index_uid"
|
||||
"link": "https://docs.meilisearch.com/errors#invalid-index-uid"
|
||||
});
|
||||
|
||||
assert_eq!(response, expected_response);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue