forked from qdrant/qdrant
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Actix and config validation (qdrant#1463)
* actix validation * add check for memmap/indexing_threshold * fix actix json settings * Validate settings configuration on start, print pretty warnings on fail * Add more validation rules for settings and nested types * Move shared validation logic into collection/operations * Show validation warning in log when loading some internal configs * Show prettier actix JSON validation errors * Stubs for pretty handling of query errors, reformat validation errors * Use crate flatten function, the hard work was already done for us We don't have to flatten validation errors into their qualified field names ourselves because there is a utility function for this. * Configure actix path validator * Actix endpoints don't require public * Extend validation to more actix types * Validate all remaining actix path and query properties * Rephrase range validation messages to clearly describe they're inclusive * Validate all query params to respond with pretty deserialize errors * Nicely format JSON payload deserialize error responses * Improve error reporting for upsert point batches * Add basic validation test that checks a path, query and payload value * Add some validation constraints * Add simple validation error render test * Update Cargo.lock --------- Co-authored-by: timvisee <tim+github@visee.me>
- Loading branch information
Showing
39 changed files
with
945 additions
and
403 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.