Skip to content

fix: add missing ID validation in AsyncDocuments.delete#50

Merged
Neelpatel1604 merged 1 commit into
moorcheh-ai:mainfrom
kurtjallo:fix/async-delete-validation
Mar 10, 2026
Merged

fix: add missing ID validation in AsyncDocuments.delete#50
Neelpatel1604 merged 1 commit into
moorcheh-ai:mainfrom
kurtjallo:fix/async-delete-validation

Conversation

@kurtjallo
Copy link
Copy Markdown

Summary

  • AsyncDocuments.delete was missing the ID validation that Documents.delete (sync) already has
  • Invalid IDs (wrong type, empty strings) were silently sent to the API instead of raising a clear InvalidInputError client-side
  • Adds the same validation check to match the sync counterpart

Closes #49

Test plan

  • All 225 existing tests pass
  • ruff and mypy clean

The async Documents.delete was missing the ID validation that the sync
counterpart has, allowing invalid IDs to be sent to the API instead of
raising a clear InvalidInputError client-side.

Closes moorcheh-ai#49
@Neelpatel1604
Copy link
Copy Markdown
Collaborator

@kurtjallo , Thanks for making changes, good catch!

@Neelpatel1604 Neelpatel1604 merged commit cf4cd4f into moorcheh-ai:main Mar 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing ID validation in AsyncDocuments.delete

2 participants