Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 29, 2024
1 parent aea6810 commit 5b7544a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mitmproxy2swagger/mitmproxy2swagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ def main(override_args: Optional[Sequence[str]] = None):
}
}
if args.examples:
content_to_set["content"][content_type][
"example"
] = swagger_util.limit_example_size(body_val)
content_to_set["content"][content_type]["example"] = (
swagger_util.limit_example_size(body_val)
)
set_key_if_not_exists(
swagger["paths"][path_template_to_set][method],
"requestBody",
Expand Down

0 comments on commit 5b7544a

Please sign in to comment.