From c7506e775738d879e194063d5a8c245e388ce298 Mon Sep 17 00:00:00 2001 From: ad hoc Date: Thu, 7 Jul 2022 17:51:22 +0200 Subject: [PATCH] update ranking rules error message (#154) --- text/0059-geo-search.md | 2 +- text/0061-error-format-and-definitions.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/text/0059-geo-search.md b/text/0059-geo-search.md index ef8cc211..513148d2 100644 --- a/text/0059-geo-search.md +++ b/text/0059-geo-search.md @@ -220,7 +220,7 @@ This error is raised asynchronously when the user tries to specify an invalid ra #### Error Definition ```json - "message": ":rankingRule ranking rule is invalid. Valid ranking rules are Words, Typo, Sort, Proximity, Attribute, Exactness and custom ranking rules." + "message": ":rankingRule 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" diff --git a/text/0061-error-format-and-definitions.md b/text/0061-error-format-and-definitions.md index 7161f782..040d59af 100644 --- a/text/0061-error-format-and-definitions.md +++ b/text/0061-error-format-and-definitions.md @@ -521,7 +521,7 @@ This error occurs when the user specifies a non-existent ranking rule, a malform ```json { - "message": "`:rankingRule` ranking rule is invalid. Valid ranking rules are Words, Typo, Sort, Proximity, Attribute, Exactness and custom ranking rules.", + "message": "`:rankingRule` 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" @@ -1334,4 +1334,4 @@ N/A ## 3. Future Possibilities - Add a `parameter` attribute in the `error` object to indicate which request parameter caused an error. -- Add more specific error types. For example, explode internal errors into several distinct types. \ No newline at end of file +- Add more specific error types. For example, explode internal errors into several distinct types.