We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12aeb50 commit f1d07abCopy full SHA for f1d07ab
aws_lambda_powertools/event_handler/api_gateway.py
@@ -2224,8 +2224,12 @@ def swagger_handler():
2224
# We now inject CSS and JS into the SwaggerUI file
2225
swagger_js = Path.open(
2226
Path(__file__).parent / "openapi" / "swagger_ui" / "swagger-ui-bundle.min.js",
2227
+ encoding="utf-8",
2228
+ ).read()
2229
+ swagger_css = Path.open(
2230
+ Path(__file__).parent / "openapi" / "swagger_ui" / "swagger-ui.min.css",
2231
2232
).read()
- swagger_css = Path.open(Path(__file__).parent / "openapi" / "swagger_ui" / "swagger-ui.min.css").read()
2233
2234
openapi_servers = servers or [Server(url=(base_path or "/"))]
2235
0 commit comments