MCPcopy
hub / github.com/fastapi/fastapi / get_flat_params

Function get_flat_params

fastapi/dependencies/utils.py:204–210  ·  view source on GitHub ↗
(dependant: Dependant)

Source from the content-addressed store, hash-verified

202
203
204def get_flat_params(dependant: Dependant) -> list[ModelField]:
205 flat_dependant = get_flat_dependant(dependant, skip_repeats=True)
206 path_params = _get_flat_fields_from_params(flat_dependant.path_params)
207 query_params = _get_flat_fields_from_params(flat_dependant.query_params)
208 header_params = _get_flat_fields_from_params(flat_dependant.header_params)
209 cookie_params = _get_flat_fields_from_params(flat_dependant.cookie_params)
210 return path_params + query_params + header_params + cookie_params
211
212
213def _get_signature(call: Callable[..., Any]) -> inspect.Signature:

Callers 2

get_openapi_pathFunction · 0.90
get_fields_from_routesFunction · 0.90

Calls 2

get_flat_dependantFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…