Skip to content

Commit

Permalink
Merge pull request #1 from dnsb/body_list_fix
Browse files Browse the repository at this point in the history
Update paths.py
  • Loading branch information
dnsb authored Aug 26, 2020
2 parents 89bc6f4 + 4c38b2c commit 40dbba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapi3/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _request_handle_parameters(self, parameters={}):

def _request_handle_body(self, data):
if 'application/json' in self.requestBody.content:
if isinstance(data, dict):
if isinstance(data, dict) or isinstance(data, list):
body = json.dumps(data)

if issubclass(type(data), Model):
Expand Down

0 comments on commit 40dbba6

Please sign in to comment.