mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-12 16:49:10 +02:00
* fix: OpenAPI request director content-type dispatch and cookie params 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Stringify multipart form values and cookie params for httpx httpx rejects non-string scalars in files= and cookies=. 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Add tests for non-string multipart values and cookie stringification 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Consolidate to single httpx.Request construction point Eliminate early returns by using variables for files/data kwargs. All httpx body kwargs accept None, so we set exactly one and pass all to a single Request() call. 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Use _query_scalar_to_str for multipart booleans, add tuple passthrough test Reuse existing boolean serialization (true/false not True/False) for multipart form fields. Add test for file-like tuple passthrough. 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Normalize media type for dispatch, use OpenAPI serialization for cookies - Strip content-type parameters (e.g. "; charset=utf-8") and lowercase before matching, so variants like "Multipart/Form-Data" match correctly - Use _query_scalar_to_str for cookie values (true/false not True/False) - Add boolean cookie test 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Preserve media-type parameters in Content-Type header Use raw_content_type (with charset etc.) for the outgoing header, normalized form only for dispatch matching. 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Pass bytes/file-like values directly in multipart, add charset preservation test Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_allof_requestbody.py | ||
| test_circular_references.py | ||
| test_direct_array_schemas.py | ||
| test_director.py | ||
| test_legacy_compatibility.py | ||
| test_models.py | ||
| test_nullable_fields.py | ||
| test_parser.py | ||
| test_propertynames_ref_rewrite.py | ||
| test_schemas.py | ||
| test_transitive_references.py | ||