pre-commit-ci-lite[bot]
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
1 deletions
-
fastapi/dependencies/utils.py
|
|
|
@ -931,7 +931,11 @@ def request_params_to_args( |
|
|
|
|
|
|
|
for err in exc.errors(include_url=False): |
|
|
|
err_loc = list(err["loc"]) |
|
|
|
if err_loc and isinstance(err_loc[0], str) and err_loc[0] in name_to_alias: |
|
|
|
if ( |
|
|
|
err_loc |
|
|
|
and isinstance(err_loc[0], str) |
|
|
|
and err_loc[0] in name_to_alias |
|
|
|
): |
|
|
|
err_loc[0] = name_to_alias[err_loc[0]] |
|
|
|
err["loc"] = (field_in, *err_loc) |
|
|
|
|
|
|
|
|