pre-commit-ci-lite[bot]
3 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
2 deletions
-
fastapi/dependencies/utils.py
|
|
@ -763,8 +763,7 @@ def _get_multidict_value( |
|
|
else: |
|
|
else: |
|
|
value = values.get(alias, None) |
|
|
value = values.get(alias, None) |
|
|
if value is None or ( |
|
|
if value is None or ( |
|
|
field_annotation_is_sequence(field.field_info.annotation) |
|
|
field_annotation_is_sequence(field.field_info.annotation) and len(value) == 0 |
|
|
and len(value) == 0 |
|
|
|
|
|
): |
|
|
): |
|
|
if field.field_info.is_required(): |
|
|
if field.field_info.is_required(): |
|
|
return |
|
|
return |
|
|
|