mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 13:34:17 +02:00
Remove deprecated experimental openapi shims (2.14)
This commit is contained in:
parent
497ed2ea00
commit
9d95e34e19
2 changed files with 0 additions and 79 deletions
|
|
@ -1,42 +0,0 @@
|
|||
"""Deprecated: Import from fastmcp.server.providers.openapi instead."""
|
||||
|
||||
import warnings
|
||||
|
||||
from fastmcp.exceptions import FastMCPDeprecationWarning
|
||||
|
||||
# Deprecated in 2.14 when OpenAPI support was promoted out of experimental
|
||||
warnings.warn(
|
||||
"Importing from fastmcp.experimental.server.openapi is deprecated. "
|
||||
"Import from fastmcp.server.providers.openapi instead.",
|
||||
FastMCPDeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
|
||||
# Import from canonical location
|
||||
from fastmcp.server.openapi.server import FastMCPOpenAPI as FastMCPOpenAPI # noqa: E402
|
||||
from fastmcp.server.providers.openapi import ( # noqa: E402
|
||||
ComponentFn as ComponentFn,
|
||||
MCPType as MCPType,
|
||||
OpenAPIResource as OpenAPIResource,
|
||||
OpenAPIResourceTemplate as OpenAPIResourceTemplate,
|
||||
OpenAPITool as OpenAPITool,
|
||||
RouteMap as RouteMap,
|
||||
RouteMapFn as RouteMapFn,
|
||||
)
|
||||
from fastmcp.server.providers.openapi.routing import ( # noqa: E402
|
||||
DEFAULT_ROUTE_MAPPINGS as DEFAULT_ROUTE_MAPPINGS,
|
||||
_determine_route_type as _determine_route_type,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"DEFAULT_ROUTE_MAPPINGS",
|
||||
"ComponentFn",
|
||||
"FastMCPOpenAPI",
|
||||
"MCPType",
|
||||
"OpenAPIResource",
|
||||
"OpenAPIResourceTemplate",
|
||||
"OpenAPITool",
|
||||
"RouteMap",
|
||||
"RouteMapFn",
|
||||
"_determine_route_type",
|
||||
]
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
"""Deprecated: Import from fastmcp.utilities.openapi instead."""
|
||||
|
||||
import warnings
|
||||
|
||||
from fastmcp.exceptions import FastMCPDeprecationWarning
|
||||
|
||||
from fastmcp.utilities.openapi import (
|
||||
HTTPRoute,
|
||||
HttpMethod,
|
||||
ParameterInfo,
|
||||
ParameterLocation,
|
||||
RequestBodyInfo,
|
||||
ResponseInfo,
|
||||
extract_output_schema_from_responses,
|
||||
parse_openapi_to_http_routes,
|
||||
_combine_schemas,
|
||||
)
|
||||
|
||||
# Deprecated in 2.14 when OpenAPI support was promoted out of experimental
|
||||
warnings.warn(
|
||||
"Importing from fastmcp.experimental.utilities.openapi is deprecated. "
|
||||
"Import from fastmcp.utilities.openapi instead.",
|
||||
FastMCPDeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"HTTPRoute",
|
||||
"HttpMethod",
|
||||
"ParameterInfo",
|
||||
"ParameterLocation",
|
||||
"RequestBodyInfo",
|
||||
"ResponseInfo",
|
||||
"_combine_schemas",
|
||||
"extract_output_schema_from_responses",
|
||||
"parse_openapi_to_http_routes",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue