Skip to content

Preserve false values for boolean options in the HTTP API - #1684

Merged
serengil merged 2 commits into
serengil:masterfrom
Afloat16:fix/api-form-boolean-options
Nov 7, 2026
Merged

serengil merged 2 commits into
serengil:masterfrom
Afloat16:fix/api-form-boolean-options

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Form fields arrive as strings. Converting "false" with bool() enabled alignment, enforced detection, anti-spoofing, L2 normalization and similarity search whenever clients explicitly disabled these options. The HTTP routes now parse true/false and 1/0, retain JSON booleans and reject invalid values and non-object JSON bodies with a 400 response. Added regression tests. Python compilation and 20 isolated form-parser cases passed. Flask was unavailable locally, so the Flask integration tests still need CI execution.

@serengil
serengil merged commit a8cee7b into serengil:master Nov 7, 2026
3 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.

2 participants