mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +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
|
@ -17,7 +17,7 @@ async fn error_get_unexisting_task_status() {
|
|||
"message": "Task `1` not found.",
|
||||
"code": "task_not_found",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#task_not_found"
|
||||
"link": "https://docs.meilisearch.com/errors#task-not-found"
|
||||
});
|
||||
|
||||
assert_eq!(response, expected_response);
|
||||
|
@ -184,7 +184,7 @@ async fn get_task_filter_error() {
|
|||
"message": "Query deserialize error: unknown field `lol`",
|
||||
"code": "bad_request",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#bad_request"
|
||||
"link": "https://docs.meilisearch.com/errors#bad-request"
|
||||
}
|
||||
"###);
|
||||
|
||||
|
@ -195,7 +195,7 @@ async fn get_task_filter_error() {
|
|||
"message": "Task uid `pied` is invalid. It should only contain numeric characters.",
|
||||
"code": "invalid_task_uids_filter",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#invalid_task_uids_filter"
|
||||
"link": "https://docs.meilisearch.com/errors#invalid-task-uids-filter"
|
||||
}
|
||||
"###);
|
||||
|
||||
|
@ -206,7 +206,7 @@ async fn get_task_filter_error() {
|
|||
"message": "Query deserialize error: invalid digit found in string",
|
||||
"code": "bad_request",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#bad_request"
|
||||
"link": "https://docs.meilisearch.com/errors#bad-request"
|
||||
}
|
||||
"###);
|
||||
|
||||
|
@ -217,7 +217,7 @@ async fn get_task_filter_error() {
|
|||
"message": "Task `beforeStartedAt` `pied` is invalid. It should follow the YYYY-MM-DD or RFC 3339 date-time format.",
|
||||
"code": "invalid_task_date_filter",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#invalid_task_date_filter"
|
||||
"link": "https://docs.meilisearch.com/errors#invalid-task-date-filter"
|
||||
}
|
||||
"###);
|
||||
}
|
||||
|
@ -233,7 +233,7 @@ async fn delete_task_filter_error() {
|
|||
"message": "Query parameters to filter the tasks to delete are missing. Available query parameters are: `uids`, `indexUids`, `statuses`, `types`, `beforeEnqueuedAt`, `afterEnqueuedAt`, `beforeStartedAt`, `afterStartedAt`, `beforeFinishedAt`, `afterFinishedAt`.",
|
||||
"code": "missing_task_filters",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#missing_task_filters"
|
||||
"link": "https://docs.meilisearch.com/errors#missing-task-filters"
|
||||
}
|
||||
"###);
|
||||
|
||||
|
@ -244,7 +244,7 @@ async fn delete_task_filter_error() {
|
|||
"message": "Query deserialize error: unknown field `lol`",
|
||||
"code": "bad_request",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#bad_request"
|
||||
"link": "https://docs.meilisearch.com/errors#bad-request"
|
||||
}
|
||||
"###);
|
||||
|
||||
|
@ -255,7 +255,7 @@ async fn delete_task_filter_error() {
|
|||
"message": "Task uid `pied` is invalid. It should only contain numeric characters.",
|
||||
"code": "invalid_task_uids_filter",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#invalid_task_uids_filter"
|
||||
"link": "https://docs.meilisearch.com/errors#invalid-task-uids-filter"
|
||||
}
|
||||
"###);
|
||||
}
|
||||
|
@ -271,7 +271,7 @@ async fn cancel_task_filter_error() {
|
|||
"message": "Query parameters to filter the tasks to cancel are missing. Available query parameters are: `uids`, `indexUids`, `statuses`, `types`, `beforeEnqueuedAt`, `afterEnqueuedAt`, `beforeStartedAt`, `afterStartedAt`, `beforeFinishedAt`, `afterFinishedAt`.",
|
||||
"code": "missing_task_filters",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#missing_task_filters"
|
||||
"link": "https://docs.meilisearch.com/errors#missing-task-filters"
|
||||
}
|
||||
"###);
|
||||
|
||||
|
@ -282,7 +282,7 @@ async fn cancel_task_filter_error() {
|
|||
"message": "Query deserialize error: unknown field `lol`",
|
||||
"code": "bad_request",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#bad_request"
|
||||
"link": "https://docs.meilisearch.com/errors#bad-request"
|
||||
}
|
||||
"###);
|
||||
|
||||
|
@ -293,7 +293,7 @@ async fn cancel_task_filter_error() {
|
|||
"message": "Task uid `pied` is invalid. It should only contain numeric characters.",
|
||||
"code": "invalid_task_uids_filter",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#invalid_task_uids_filter"
|
||||
"link": "https://docs.meilisearch.com/errors#invalid-task-uids-filter"
|
||||
}
|
||||
"###);
|
||||
}
|
||||
|
@ -418,7 +418,7 @@ async fn test_summarized_delete_batch() {
|
|||
"message": "Index `test` not found.",
|
||||
"code": "index_not_found",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#index_not_found"
|
||||
"link": "https://docs.meilisearch.com/errors#index-not-found"
|
||||
},
|
||||
"duration": "[duration]",
|
||||
"enqueuedAt": "[date]",
|
||||
|
@ -477,7 +477,7 @@ async fn test_summarized_delete_document() {
|
|||
"message": "Index `test` not found.",
|
||||
"code": "index_not_found",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#index_not_found"
|
||||
"link": "https://docs.meilisearch.com/errors#index-not-found"
|
||||
},
|
||||
"duration": "[duration]",
|
||||
"enqueuedAt": "[date]",
|
||||
|
@ -539,7 +539,7 @@ async fn test_summarized_settings_update() {
|
|||
"message": "`custom` ranking rule is invalid. Valid ranking rules are words, typo, sort, proximity, attribute, exactness and custom ranking rules.",
|
||||
"code": "invalid_ranking_rule",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#invalid_ranking_rule"
|
||||
"link": "https://docs.meilisearch.com/errors#invalid-ranking-rule"
|
||||
},
|
||||
"duration": "[duration]",
|
||||
"enqueuedAt": "[date]",
|
||||
|
@ -628,7 +628,7 @@ async fn test_summarized_index_creation() {
|
|||
"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"
|
||||
},
|
||||
"duration": "[duration]",
|
||||
"enqueuedAt": "[date]",
|
||||
|
@ -661,7 +661,7 @@ async fn test_summarized_index_deletion() {
|
|||
"message": "Index `test` not found.",
|
||||
"code": "index_not_found",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#index_not_found"
|
||||
"link": "https://docs.meilisearch.com/errors#index-not-found"
|
||||
},
|
||||
"duration": "[duration]",
|
||||
"enqueuedAt": "[date]",
|
||||
|
@ -744,7 +744,7 @@ async fn test_summarized_index_update() {
|
|||
"message": "Index `test` not found.",
|
||||
"code": "index_not_found",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#index_not_found"
|
||||
"link": "https://docs.meilisearch.com/errors#index-not-found"
|
||||
},
|
||||
"duration": "[duration]",
|
||||
"enqueuedAt": "[date]",
|
||||
|
@ -772,7 +772,7 @@ async fn test_summarized_index_update() {
|
|||
"message": "Index `test` not found.",
|
||||
"code": "index_not_found",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#index_not_found"
|
||||
"link": "https://docs.meilisearch.com/errors#index-not-found"
|
||||
},
|
||||
"duration": "[duration]",
|
||||
"enqueuedAt": "[date]",
|
||||
|
@ -864,7 +864,7 @@ async fn test_summarized_index_swap() {
|
|||
"message": "Indexes `cattos`, `doggos` not found.",
|
||||
"code": "index_not_found",
|
||||
"type": "invalid_request",
|
||||
"link": "https://docs.meilisearch.com/errors#index_not_found"
|
||||
"link": "https://docs.meilisearch.com/errors#index-not-found"
|
||||
},
|
||||
"duration": "[duration]",
|
||||
"enqueuedAt": "[date]",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue