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
6910a5ff33
commit
b61128b071
|
|
@ -196,7 +196,7 @@ def _get_flat_fields_from_params(fields: List[ModelField]) -> List[ModelField]:
|
|||
|
||||
fields_to_extract = []
|
||||
for f in fields:
|
||||
if _is_model_class(first_field.type_):
|
||||
if _is_model_class(f.type_):
|
||||
fields_to_extract.extend(get_cached_model_fields(f.type_))
|
||||
else:
|
||||
fields_to_extract.append(f)
|
||||
|
|
|
|||
Loading…
Reference in New Issue