mirror of https://github.com/tiangolo/fastapi.git
Update fastapi/dependencies/utils.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
b61128b071
commit
6013e08889
|
|
@ -194,7 +194,7 @@ def _get_flat_fields_from_params(fields: List[ModelField]) -> List[ModelField]:
|
|||
if not fields:
|
||||
return fields
|
||||
|
||||
fields_to_extract = []
|
||||
fields_to_extract = []
|
||||
for f in fields:
|
||||
if _is_model_class(f.type_):
|
||||
fields_to_extract.extend(get_cached_model_fields(f.type_))
|
||||
|
|
|
|||
Loading…
Reference in New Issue