]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
✨ Enable showCommonExtensions and showExtensions in SwaggerUI (#1466)
authorTiewKH <huiblabla@gmail.com>
Sat, 13 Jun 2020 16:16:34 +0000 (00:16 +0800)
committerGitHub <noreply@github.com>
Sat, 13 Jun 2020 16:16:34 +0000 (18:16 +0200)
* Set showExtensions and showCommonExtensions to true

* Clean up comma

Co-authored-by: tiewkeehui <keehuitiew@airasia.com>
fastapi/openapi/docs.py

index fc55ac1a7376eea861ad995e0ca3b3d70c291054..44c4e69a34f750ebf82ac231f3229700693958ff 100644 (file)
@@ -44,7 +44,9 @@ def get_swagger_ui_html(
         SwaggerUIBundle.SwaggerUIStandalonePreset
         ],
         layout: "BaseLayout",
-        deepLinking: true
+        deepLinking: true,
+        showExtensions: true,
+        showCommonExtensions: true
     })"""
 
     if init_oauth: