We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5f579bc + f1d07ab commit 48bdeb0Copy full SHA for 48bdeb0
1 file changed
aws_lambda_powertools/event_handler/api_gateway.py
@@ -2248,8 +2248,12 @@ def swagger_handler():
2248
# We now inject CSS and JS into the SwaggerUI file
2249
swagger_js = Path.open(
2250
Path(__file__).parent / "openapi" / "swagger_ui" / "swagger-ui-bundle.min.js",
2251
+ encoding="utf-8",
2252
+ ).read()
2253
+ swagger_css = Path.open(
2254
+ Path(__file__).parent / "openapi" / "swagger_ui" / "swagger-ui.min.css",
2255
2256
).read()
- swagger_css = Path.open(Path(__file__).parent / "openapi" / "swagger_ui" / "swagger-ui.min.css").read()
2257
2258
openapi_servers = servers or [Server(url=(base_path or "/"))]
2259
0 commit comments