From 2d31371975aa578cf67fcef01b149f18f71799c2 Mon Sep 17 00:00:00 2001 From: mpostma Date: Mon, 1 Jun 2020 14:57:26 +0200 Subject: [PATCH] fix style --- errors.yaml | 51 +++++++++++++++++++++++++++ meilisearch-http/Cargo.toml | 1 - meilisearch-http/src/routes/search.rs | 1 - 3 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 errors.yaml diff --git a/errors.yaml b/errors.yaml new file mode 100644 index 000000000..718796d57 --- /dev/null +++ b/errors.yaml @@ -0,0 +1,51 @@ +--- +errors: + - code: create_index + description: "Error relatice to index creation, check out our guide on [index creation](link.com)" + - code: existing_index + description: "An index with this name already exists, check out our guide on [index creation](link.com)" + - code: invalid_index_uid + description: "The provided index formatting is wrong, check out our guide on [index creation](link.com)" + - code: open_index + description: "An error occured while trying to open the requested index, ..." + - code: invalid_state + description: "" + - code: missing_primary_key + description: "" + - code: primary_key_already_present + description: "" + - code: max_field_limit_exceeded + description: "" + - code: missing_document_id + description: "" + - code: invalid_facet + description: "" + - code: invalid_filter + description: "" + - code: bad_parameter + description: "" + - code: bad_request + description: "" + - code: document_not_found + description: "" + - code: internal + description: "" + - code: invalid_token + description: "" + - code: maintenance + description: "" + - code: missing_authorization_header + description: "" + - code: missing_header + description: "" + - code: not_found + description: "" + - code: payload_too_large + description: "" + - code: retrieve_document + description: "" + - code: search_error + description: "" + - code: unsupported_media_type + description: "" +... diff --git a/meilisearch-http/Cargo.toml b/meilisearch-http/Cargo.toml index 87862e7d0..67abfb35b 100644 --- a/meilisearch-http/Cargo.toml +++ b/meilisearch-http/Cargo.toml @@ -73,7 +73,6 @@ optional = true [dev-dependencies] tempdir = "0.3.7" tokio = { version = "0.2.18", features = ["macros", "time"] } -serde_url_params = "0.2.0" [dev-dependencies.assert-json-diff] git = "https://github.com/qdequele/assert-json-diff" diff --git a/meilisearch-http/src/routes/search.rs b/meilisearch-http/src/routes/search.rs index fd1188c39..0cefc0511 100644 --- a/meilisearch-http/src/routes/search.rs +++ b/meilisearch-http/src/routes/search.rs @@ -175,7 +175,6 @@ impl SearchQuery { } } - /// Parses the incoming string into an array of attributes for which to return a count. It returns /// a Vec of attribute names ascociated with their id. ///