fastmcp/tests
Jeremiah Lowin 6584750667 Fix external schema reference handling in OpenAPI parser
Previously, external schema references (URLs) in OpenAPI schemas were
silently passed through and only failed during JSON schema validation
with confusing "failed to match exactly one schema" errors.

This change:
- Detects external references in _replace_ref_with_defs() and raises clear error messages
- Updates exception handlers to propagate external reference errors while preserving other error handling
- Adds comprehensive test coverage for external reference detection
- Provides helpful error messages explaining that FastMCP only supports local schema references

Fixes #926

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-25 21:25:06 -04:00
..
auth Add "http" as an alias for streamable-http 2025-06-22 18:55:07 -04:00
cli Alias streamable-http as http 2025-06-22 20:00:11 -04:00
client Update test_streamable_http.py 2025-06-22 20:08:36 -04:00
contrib Add audio support 2025-06-14 08:59:48 -04:00
deprecated Add http as an alias for streamable http 2025-06-22 18:35:28 -04:00
prompts Fix pyright type checking issues in tests 2025-06-22 09:55:40 -04:00
resources Update docs and tests 2025-06-19 17:06:54 -04:00
server Add production-ready middleware examples with comprehensive tests 2025-06-22 21:57:49 -04:00
test_servers Update tests for prompts 2025-06-04 16:37:41 -04:00
tools Update docs and tests 2025-06-19 17:06:54 -04:00
utilities Fix external schema reference handling in OpenAPI parser 2025-06-25 21:25:06 -04:00
__init__.py Update type handling for resources 2024-11-29 19:42:46 -05:00
conftest.py Only apply log config to FastMCP loggers 2025-04-14 15:45:05 -04:00
test_examples.py Update test typing 2025-05-31 20:41:18 -04:00