Skip to content

fix(qs): preserve empty string query parameter values#1554

Open
pragnyanramtha wants to merge 3 commits into
anthropics:mainfrom
pragnyanramtha:pragnyan/fix-querystring-empty-values
Open

fix(qs): preserve empty string query parameter values#1554
pragnyanramtha wants to merge 3 commits into
anthropics:mainfrom
pragnyanramtha:pragnyan/fix-querystring-empty-values

Conversation

@pragnyanramtha
Copy link
Copy Markdown

@pragnyanramtha pragnyanramtha commented May 16, 2026

Summary

  • preserve explicit empty string query parameter values as key=
  • continue omitting None query values
  • add focused coverage for top-level, nested, and repeated-array query serialization

Validation

  • uv run pytest tests/test_qs.py -n0 -> 11 passed
  • uv run ruff check src/anthropic/_qs.py tests/test_qs.py -> passed
  • git diff --check -> passed

Notes

I did not find a relevant open issue or PR for empty-string query parameter serialization.

@pragnyanramtha pragnyanramtha marked this pull request as ready for review May 16, 2026 16:30
@pragnyanramtha pragnyanramtha requested a review from a team as a code owner May 16, 2026 16:30
Copilot AI review requested due to automatic review settings May 16, 2026 16:30
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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