Skip to content

Commit

Permalink
Allow request body for GET and DELETE
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruwann committed Jun 13, 2023
1 parent 55f3c59 commit 19b7fcc
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions connexion/decorators/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,18 +211,17 @@ def get_arguments(
)
)

if operation.method.upper() in ["PATCH", "POST", "PUT"]:
ret.update(
_get_body_argument(
body,
operation=operation,
arguments=arguments,
has_kwargs=has_kwargs,
sanitize=sanitize,
content_type=content_type,
)
ret.update(
_get_body_argument(
body,
operation=operation,
arguments=arguments,
has_kwargs=has_kwargs,
sanitize=sanitize,
content_type=content_type,
)
ret.update(_get_file_arguments(files, arguments, has_kwargs))
)
ret.update(_get_file_arguments(files, arguments, has_kwargs))
return ret


Expand Down

0 comments on commit 19b7fcc

Please sign in to comment.