From f22a138e45d03e7be1c0aa002f0c7d5991656ea5 Mon Sep 17 00:00:00 2001 From: alufers Date: Fri, 12 May 2023 16:10:43 +0200 Subject: [PATCH] fix: openapi compliance --- mitmproxy2swagger/mitmproxy2swagger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy2swagger/mitmproxy2swagger.py b/mitmproxy2swagger/mitmproxy2swagger.py index 26b1770..3ea1ee9 100644 --- a/mitmproxy2swagger/mitmproxy2swagger.py +++ b/mitmproxy2swagger/mitmproxy2swagger.py @@ -313,7 +313,7 @@ def main(override_args: Sequence[str] | None = None): swagger["paths"][path_template_to_set][method]["responses"]["200"] = { "description": "OK", - "content": ("content-type", ""), + "content": {}, } except FlowReadException as e: