From 07929dc5db5f828ee8790c9ac55c7c1ea9e79bbb Mon Sep 17 00:00:00 2001 From: Shahar Ilany <31574996+ShaharIlany@users.noreply.github.com> Date: Mon, 18 Jul 2022 23:12:37 +0300 Subject: [PATCH] fix(docs.py): replace None with empty string on params from type str --- fastapi/openapi/docs.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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(