Skip to content
Prev Previous commit
Next Next commit
tests pass but it's trash
  • Loading branch information
dtkav committed Dec 12, 2019
commit 062de8b965f5ac4d1b73977ed749dc35ad4e8a2d
2 changes: 1 addition & 1 deletion connexion/operations/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def _get_body_argument(self, body, arguments, has_kwargs, sanitize):
res = self._get_typed_body_values(body_arg, body_props, additional_props)

if x_body_name in arguments or has_kwargs:
return {x_body_name: res}
return {x_body_name: body_arg}
return {}

def _get_typed_body_values(self, body_arg, body_props, additional_props):
Expand Down
2 changes: 1 addition & 1 deletion connexion/serialization/deserializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _deser(self, request):
for k, param_defn in props.items():
if k in data:
data[k] = coerce_type(param_defn, data[k], 'requestBody', k)

request.form = data
return data


Expand Down