MCPcopy
hub / github.com/fastapi/fastapi / get_flat_models_from_fields

Function get_flat_models_from_fields

fastapi/_compat/v2.py:478–483  ·  view source on GitHub ↗
(
    fields: Sequence[ModelField], known_models: TypeModelSet
)

Source from the content-addressed store, hash-verified

476
477
478def get_flat_models_from_fields(
479 fields: Sequence[ModelField], known_models: TypeModelSet
480) -> TypeModelSet:
481 for field in fields:
482 get_flat_models_from_field(field, known_models=known_models)
483 return known_models
484
485
486def _regenerate_error_with_loc(

Callers 3

get_openapiFunction · 0.90
get_definitionsFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…