Skip to content

Commit

Permalink
closes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
tfranzel committed Mar 24, 2020
1 parent f2ecbbc commit a35b08e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drf_spectacular/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,11 @@ def _process_override_parameters(self, path, method):
# explode serializer into separate parameters. defaults to QUERY location
mapped = self._map_serializer(method, parameter)
for property_name, property_schema in mapped['properties'].items():
required = property_name in mapped.get('required', [])
result.append(build_parameter_type(
name=property_name,
schema=property_schema,
location=OpenApiParameter.QUERY,
required=required
required=property_name in mapped.get('required', [])
))
else:
warn(f'could not resolve parameter annotation {parameter}. skipping.')
Expand Down

0 comments on commit a35b08e

Please sign in to comment.