-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🌡️ fix: Delete Endpoint Validation, List Index Errors, use PyJWT (#42)
* 🌡️ refactor: add mongo health check and use enums for constants * fix(delete_documents): use correct pydantic class Changed the delete_documents endpoint to use a Pydantic model for better request body validation. This fixes the issue where the endpoint was incorrectly using query parameters. * fix: list index out of range in query when documents are empty * fix: ensure documents list is not empty in GET /documents * fix: ensure documents list is not empty in GET /documents/{id}/context * fix: ensure documents list is not empty in POST /query_multiple * fix: delete route expected body * chore: swap python-jose for PyJWT due to security advisories * chore: add ATLAS warning as is not fully compatible
- Loading branch information
1 parent
e8d52dc
commit a3bee40
Showing
7 changed files
with
158 additions
and
84 deletions.
There are no files selected for viewing
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.