You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: apply the URL search params standard and type nullable params (#614)
* feat: serialize request params with the URL search params standard
The Seam API parses URL search params as complex types, so the SDK has to
build the query string itself. Serialize any mapping passed as params and
set the result on the url, rather than letting httpx encode the params with
its own rules, which represent arrays and nested objects differently.
Replace the NULL sentinel with null in request bodies as well, so a param
set to NULL is sent as null on either transport, and document how NULL
tells an explicitly null param apart from an omitted one.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PpqwDhZmyikGbjmCPqFW2A
* Apply suggestions from code review
Co-authored-by: Evan Sosenko <razorx@evansosenko.com>
* feat: type nullable params with the explicit null sentinel
Consume the blueprint isNullable flag so a param the Seam API documents as
nullable is typed to accept NULL, and a param that is merely optional is not.
Optional params are omitted by passing None, where sending null would unset a
value instead, so accepting the sentinel everywhere would invite exactly the
mistake it exists to prevent.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PpqwDhZmyikGbjmCPqFW2A
* test: name the search param tests for what they do
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PpqwDhZmyikGbjmCPqFW2A
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments