Skip to content

Reject empty document fields at the API boundary - #28

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
vsolano9:fix/reject-empty-doc-fields
Sep 8, 2026
Merged

Reject empty document fields at the API boundary#28
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
vsolano9:fix/reject-empty-doc-fields

Conversation

@vsolano9

@vsolano9 vsolano9 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Fixes #21

DocIn now rejects empty document IDs, titles, and text before ingestion, so POST /documents returns FastAPI's 422 validation response instead of creating a zero-chunk document.

Added an API regression test for empty text. Targeted API suite: 12 passed.

@royalpinto007
royalpinto007 merged commit 94ab4d0 into AgentPostmortem:main Sep 8, 2026
7 checks passed
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Merged, @vsolano9. Thank you for taking the time.

Contributions like this are what keep VaultRAG moving.

A star on the repo would mean a lot if this project is useful to you.

Happy to see more from you whenever you have the time.

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.

DocIn accepts empty id/title/text; empty text returns 201 with 0 chunks

2 participants