Browse Source

Enable showCommonExtensions and showExtensions in SwaggerUI (#1466)

* Set showExtensions and showCommonExtensions to true

* Clean up comma

Co-authored-by: tiewkeehui <[email protected]>
pull/1576/head
TiewKH 5 years ago
committed by GitHub
parent
commit
dd9e94cf21
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      fastapi/openapi/docs.py

4
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:

Loading…
Cancel
Save