From: TiewKH Date: Sat, 13 Jun 2020 16:16:34 +0000 (+0800) Subject: ✨ Enable showCommonExtensions and showExtensions in SwaggerUI (#1466) X-Git-Tag: 0.57.0~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd9e94cf2160fe289b28662fe7ff793010050482;p=thirdparty%2Ffastapi%2Ffastapi.git ✨ Enable showCommonExtensions and showExtensions in SwaggerUI (#1466) * Set showExtensions and showCommonExtensions to true * Clean up comma Co-authored-by: tiewkeehui --- diff --git a/fastapi/openapi/docs.py b/fastapi/openapi/docs.py index fc55ac1a73..44c4e69a34 100644 --- a/fastapi/openapi/docs.py +++ b/fastapi/openapi/docs.py @@ -44,7 +44,9 @@ def get_swagger_ui_html( SwaggerUIBundle.SwaggerUIStandalonePreset ], layout: "BaseLayout", - deepLinking: true + deepLinking: true, + showExtensions: true, + showCommonExtensions: true })""" if init_oauth: