Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Error Format #61

Merged
merged 22 commits into from
Oct 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
e76cb36
Patch GeoSearch specification to mention technical limit on `desc` or…
gmourier Aug 31, 2021
31e38f9
add descending order capability for _geoPoint built-in sort (#77)
gmourier Sep 21, 2021
be669f8
Sort (#55)
gmourier Aug 12, 2021
d45c17a
Initialize draft specification for error object format
gmourier Aug 13, 2021
3dc801b
reorganize and fix typos
gmourier Aug 14, 2021
8dfe4d3
update oas with the new error format
gmourier Aug 18, 2021
67a8f99
Add full list of errors
gmourier Aug 24, 2021
405a29b
Add invalid_geo_field error description
gmourier Aug 24, 2021
ea03483
Add task_not_found definition
gmourier Aug 24, 2021
f06433b
Add mention of error object fields order in response
gmourier Aug 25, 2021
8e9593c
Apply suggestions from code review
gmourier Aug 25, 2021
8594c09
enhance the missing_primary_key error
gmourier Aug 26, 2021
7434e69
add know variants for message for a given error
gmourier Sep 6, 2021
a710823
fix oas
gmourier Sep 13, 2021
6ab951f
remove invalid_sort variant message for _geoPoint descending order
gmourier Sep 21, 2021
06a6628
fix typos
gmourier Sep 21, 2021
4f33688
sync new variants with geosearch error handling on ranking rule
gmourier Sep 22, 2021
4d4b745
Update variants for invalid_filter and invalid_sort regarding geosearch
gmourier Sep 30, 2021
b7e20e7
add missing dot at the end of error message
gmourier Sep 30, 2021
087e4f3
experiment bump.sh diff fixs
gmourier Oct 7, 2021
487ff36
update bump.yml
gmourier Oct 12, 2021
d3f6152
update errors in oas
gmourier Oct 12, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- main
- develop

jobs:
api-diff:
if: ${{ github.event_name == 'pull_request' }}
Expand Down
76 changes: 38 additions & 38 deletions open-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -505,17 +505,17 @@ components:
properties:
message:
type: string
errorCode:
code:
type: string
errorType:
type:
type: string
errorLink:
link:
type: string
required:
- message
- errorCode
- errorType
- errorLink
- code
- type
- link
description: ''
parameters:
indexUid:
Expand Down Expand Up @@ -711,10 +711,10 @@ components:
examples:
Unauthorized:
value:
message: You must have an authorization token
errorCode: missing_authorization_header
errorType: authentication_error
errorLink: 'https://docs.meilisearch.com/errors#missing_authorization_header'
message: The X-MEILI-API-KEY header is missing.
code: missing_authorization_header
type: auth
link: 'https://docs.meilisearch.com/errors#missing_authorization_header'
'413':
description: Payload Too Large
content:
Expand All @@ -724,10 +724,10 @@ components:
examples:
Payload Too Large:
value:
message: Payload reached size limit.
errorCode: payload_too_large
errorType: invalid_request_error
errorLink: 'https://docs.meilisearch.com/errors#payload_too_large'
message: The payload cannot exceed `:payloadSizeLimit`.
code: payload_too_large
type: invalid_request
link: 'https://docs.meilisearch.com/errors#payload_too_large'
securitySchemes:
apiKey:
type: apiKey
Expand Down Expand Up @@ -845,9 +845,9 @@ paths:
Not Found:
value:
message: Dump `20201001-110357260` not found
errorCode: not_found
errorType: invalid_request_error
errorLink: 'https://docs.meilisearch.com/errors#not_found'
code: dump_not_found
type: invalid_request
link: 'https://docs.meilisearch.com/errors#dump_not_found'
parameters:
- schema:
type: string
Expand Down Expand Up @@ -952,16 +952,16 @@ paths:
examples:
Index already exists:
value:
message: Index already exists.
errorCode: index_already_exists
errorType: invalid_request_error
errorLink: 'https://docs.meilisearch.com/errors#index_already_exists'
message: Index `:indexUid` already exists.
code: index_already_exists
type: invalid_request
link: 'https://docs.meilisearch.com/errors#index_already_exists'
Invalid Index Uid:
value:
message: 'Index must have a valid uid; Index uid can be of type integer or string only composed of alphanumeric characters, hyphens (-) and underscores (_).'
errorCode: invalid_index_uid
errorType: invalid_request_error
errorLink: 'https://docs.meilisearch.com/errors#invalid_index_uid'
message: 'Index `:indexUid` 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'
'401':
$ref: '#/components/responses/401'
parameters:
Expand Down Expand Up @@ -1030,10 +1030,10 @@ paths:
examples:
Primary Key Already Present:
value:
message: A primary key is already present. It's impossible to update it
errorCode: primary_key_already_present
errorType: invalid_request_error
errorLink: 'https://docs.meilisearch.com/errors#primary_key_already_present'
message: Index `:indexUid` already has a primary key.
code: index_primary_key_already_exists
type: invalid_request
link: 'https://docs.meilisearch.com/errors#index_primary_key_already_exists'
'401':
$ref: '#/components/responses/401'
'404':
Expand Down Expand Up @@ -2294,10 +2294,10 @@ paths:
details:
numberOfDocuments: 67493
error:
message: missing primary key
errorCode: missing_primary_key
errorType: invalid_request_error
errorLink: 'https://docs.meilisearch.com/errors#missing_primary_key'
message: 'Document does not have a `:primaryKey` attribute: `:documentRepresentation`.'
code: missing_document_id
type: invalid_request
link: 'https://docs.meilisearch.com/errors#missing_document_id'
duration: PT5S
enqueuedAt: '2021-01-01T09:38:00.000000Z'
startedAt: '2021-01-01T09:38:02.000000Z'
Expand Down Expand Up @@ -2494,10 +2494,10 @@ paths:
details:
numberOfDocuments: 67493
error:
message: missing primary key
errorCode: missing_primary_key
errorType: invalid_request_error
errorLink: 'https://docs.meilisearch.com/errors#missing_primary_key'
message: 'Document does not have a `:primaryKey` attribute: `:documentRepresentation`.'
code: missing_document_id
type: invalid_request
link: 'https://docs.meilisearch.com/errors#missing_document_id'
duration: PT5S
enqueuedAt: '2021-01-01T09:38:00.000000Z'
startedAt: '2021-01-01T09:38:02.000000Z'
Expand Down Expand Up @@ -2545,7 +2545,7 @@ paths:
value:
message: 'Task :taskUid not found.'
errorCode: task_not_found
errorType: invalid_requet_error
errorType: invalid_requet
link: 'https://docs.meilisearch.com/errors/#task_not_found'
operationId: tasks.get
parameters: []
Expand Down
Loading