diff --git a/fastapi/openapi/docs.py b/fastapi/openapi/docs.py index 8c8e5058f..d54e0c35b 100644 --- a/fastapi/openapi/docs.py +++ b/fastapi/openapi/docs.py @@ -209,14 +209,14 @@ def get_stoplight_elements_html( stoplight_elements_js_url: str = "https://unpkg.com/@stoplight/elements/web-components.min.js", stoplight_elements_css_url: str = "https://unpkg.com/@stoplight/elements/styles.min.css", stoplight_elements_favicon_url: str = "https://fastapi.tiangolo.com/img/favicon.png", - api_description_document: str = None, - base_path: str = None, - hide_internal:bool = False, - hide_try_it:bool = False, - try_it_cors_proxy:str = None, + api_description_document: str = "", + base_path: str = "", + hide_internal: bool = False, + hide_try_it: bool = False, + try_it_cors_proxy: str = "", try_it_credential_policy: TryItCredentialPolicyOptions = TryItCredentialPolicyOptions.OMIT, layout: LayoutOptions = LayoutOptions.SIDEBAR, - logo: str = None, + logo: str = "", router: RouterOptions = RouterOptions.HISTORY ) -> HTMLResponse: html = f""" @@ -233,15 +233,15 @@ def get_stoplight_elements_html(