MCPcopy Index your code
hub / github.com/fastapi/fastapi / get_model_name_map

Function get_model_name_map

fastapi/_compat/v2.py:429–434  ·  view source on GitHub ↗
(unique_models: TypeModelSet)

Source from the content-addressed store, hash-verified

427
428
429def get_model_name_map(unique_models: TypeModelSet) -> dict[TypeModelOrEnum, str]:
430 name_model_map = {}
431 for model in unique_models:
432 model_name = normalize_name(model.__name__)
433 name_model_map[model_name] = model
434 return {v: k for k, v in name_model_map.items()}
435
436
437def get_flat_models_from_model(

Callers 1

get_openapiFunction · 0.90

Calls 1

normalize_nameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…