mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-31 16:06:31 +00:00 
			
		
		
		
	Add a new meilisearch_types crate
				
					
				
			Move `meilisearch_error` to `meilisearch_types::error` Move `meilisearch_lib::index_resolver::IndexUid` to `meilisearch_types::index_uid` Add a new `InvalidIndexUid` error in `meilisearch_types::index_uid`
This commit is contained in:
		| @@ -638,7 +638,7 @@ async fn error_document_add_create_index_bad_uid() { | ||||
|     let (response, code) = index.add_documents(json!([{"id": 1}]), None).await; | ||||
|  | ||||
|     let expected_response = json!({ | ||||
|         "message": "`883  fj!` is not a valid index uid. Index uid can be an integer or a string containing only alphanumeric characters, hyphens (-) and underscores (_).", | ||||
|         "message": "invalid index uid `883  fj!`, the uid must be an integer or a string containing only alphanumeric characters a-z A-Z 0-9, hyphens - and underscores _.", | ||||
|         "code": "invalid_index_uid", | ||||
|         "type": "invalid_request", | ||||
|         "link": "https://docs.meilisearch.com/errors#invalid_index_uid" | ||||
| @@ -655,7 +655,7 @@ async fn error_document_update_create_index_bad_uid() { | ||||
|     let (response, code) = index.update_documents(json!([{"id": 1}]), None).await; | ||||
|  | ||||
|     let expected_response = json!({ | ||||
|         "message": "`883  fj!` is not a valid index uid. Index uid can be an integer or a string containing only alphanumeric characters, hyphens (-) and underscores (_).", | ||||
|         "message": "invalid index uid `883  fj!`, the uid must be an integer or a string containing only alphanumeric characters a-z A-Z 0-9, hyphens - and underscores _.", | ||||
|         "code": "invalid_index_uid", | ||||
|         "type": "invalid_request", | ||||
|         "link": "https://docs.meilisearch.com/errors#invalid_index_uid" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user