8000 Do not overwrite any existing fields with location=body schema parame… · AndreLobato/python-openapi-codec@44b25cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 44b25cd

Browse files
committed
Do not overwrite any existing fields with location=body schema parameters
1 parent a1f9ce4 commit 44b25cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi_codec/decode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _parse_document(data, base_url=None):
4343
expanded_fields = [
4444
Field(name=field_name, location='form', required=is_required, description=field_description)
4545
for field_name, is_required, field_description in expanded
46-
if not any([field.name == name for field in fields])
46+
if not any([field.name == field_name for field in fields])
4747
]
4848
fields += expanded_fields
4949
else:

0 commit comments

Comments
 (0)
0