MCPcopy
hub / github.com/fastapi/fastapi / _get_api_route_for_openapi

Function _get_api_route_for_openapi

fastapi/openapi/utils.py:481–486  ·  view source on GitHub ↗
(
    route_context: routing.RouteContext,
)

Source from the content-addressed store, hash-verified

479
480
481def _get_api_route_for_openapi(
482 route_context: routing.RouteContext,
483) -> routing._APIRouteLike | None:
484 if isinstance(route_context.original_route, routing.APIRoute):
485 return cast(routing._APIRouteLike, route_context)
486 return None
487
488
489def get_fields_from_routes(

Callers 2

get_fields_from_routesFunction · 0.85
get_openapiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…