mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-16 18:49:14 +02:00
* fix: resolve OpenAPI 3.x server variables in _create_default_client When an OpenAPI spec defines server variables (e.g. `https://{region}.api.example.com/v1`), the default values are now substituted before constructing the httpx client base URL. Previously, the URL was used as-is, causing all requests to fail for specs that use server variable templating. Fixes #1681 * fix: use str.replace instead of format_map for server variable substitution format_map applies Python string formatting rules, so variable names like {api.version} would be treated as attribute access and raise errors. Literal token replacement handles all valid OpenAPI variable names safely. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_comprehensive.py | ||
| test_deepobject_style.py | ||
| test_end_to_end_compatibility.py | ||
| test_openapi_features.py | ||
| test_openapi_performance.py | ||
| test_parameter_collisions.py | ||
| test_performance_comparison.py | ||
| test_server.py | ||