From dd9e94cf2160fe289b28662fe7ff793010050482 Mon Sep 17 00:00:00 2001 From: TiewKH Date: Sun, 14 Jun 2020 00:16:34 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Enable=20showCommonExtensions=20and?= =?UTF-8?q?=20showExtensions=20in=20SwaggerUI=20(#1466)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Set showExtensions and showCommonExtensions to true * Clean up comma Co-authored-by: tiewkeehui --- fastapi/openapi/docs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fastapi/openapi/docs.py b/fastapi/openapi/docs.py index fc55ac1a7..44c4e69a3 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: