Skip to content

Unify SDK boolean query encoding and HTTP error classification - #22

Merged
ryanmcmillan merged 1 commit into
mainfrom
codex/code-quality-audit-20260905
Sep 5, 2026
Merged

Unify SDK boolean query encoding and HTTP error classification#22
ryanmcmillan merged 1 commit into
mainfrom
codex/code-quality-audit-20260905

Conversation

@ryanmcmillan

Copy link
Copy Markdown
Member

tasks.list(completed=True) sent completed=True through urllib, but the API recognizes the lowercase literal true. Both transports now share boolean normalization, and the old test that pinned the wrong casing is corrected.

Share HTTP error classification in the existing transport module as well. Non-object JSON error bodies now retain the appropriate SDK exception class instead of producing AttributeError, and nested error messages behave consistently between urllib and httpx. Public methods and exception classes remain unchanged.

Validation: all 147 tests passed. New transport-contract checks exercise actual urllib/httpx request construction and five error statuses against object, nested, null, array, and text bodies. Against the original implementation, 17 of those cases fail as expected. No new runtime dependency.

Merging runs CI. PyPI publication requires a separate version/tag release.

@ryanmcmillan
ryanmcmillan merged commit 70c8ba4 into main Sep 5, 2026
5 checks passed
@ryanmcmillan
ryanmcmillan deleted the codex/code-quality-audit-20260905 branch September 5, 2026 15:00
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.

1 participant