Skip to content

Reject negative JSON chunk sizes - #2317

Open
laulauraluo wants to merge 1 commit into
SciPhi-AI:mainfrom
laulauraluo:fix/negative-json-chunk-size
Open

laulauraluo wants to merge 1 commit into
SciPhi-AI:mainfrom
laulauraluo:fix/negative-json-chunk-size

Conversation

@laulauraluo

Copy link
Copy Markdown

Fixes #2313

A negative chunk_size override makes the JSON parser yield no chunks, silently dropping valid content. Reject negative integers with ValueError; retain the existing behavior for zero, omitted and positive sizes.

Tested the native parser regression tests: 9 passed (negative cases failed before the fix). Full-suite collection is blocked locally by missing installed r2r distribution metadata; no service integration tests were run.

This branch has not been deployed

No deployments
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.

JSONParser silently drops a document when chunk_size is negative

1 participant