From 3c4b96b2752e3c14c0474402cb3bc284b3d1b2db Mon Sep 17 00:00:00 2001 From: Shahar Ilany <31574996+ShaharIlany@users.noreply.github.com> Date: Sat, 17 Dec 2022 16:19:51 +0200 Subject: [PATCH] fix: :rotating_light: Fix True comparison --- fastapi/openapi/docs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastapi/openapi/docs.py b/fastapi/openapi/docs.py index ddb84aa84..206818e08 100644 --- a/fastapi/openapi/docs.py +++ b/fastapi/openapi/docs.py @@ -256,8 +256,8 @@ def get_stoplight_elements_html( {f'apiDescriptionUrl="{openapi_url}"' if openapi_url != '' else ''} {f'apiDescriptionDocument="{api_description_document}"' if api_description_document != '' else ''} {f'basePath="{base_path}"' if base_path != '' else ''} - {'hideInternal="true"' if hide_internal == True else ''} - {'hideTryIt="true"' if hide_try_it == True else ''} + {'hideInternal="true"' if hide_internal is True else ''} + {'hideTryIt="true"' if hide_try_it is True else ''} {f'tryItCorsProxy="{try_it_cors_proxy}"' if try_it_cors_proxy != '' else ''} tryItCredentialPolicy="{try_it_credential_policy.value}" layout="{layout.value}"