From 80cb9b75147ee597bb87eab9bb683eec3b52cb23 Mon Sep 17 00:00:00 2001 From: Shahar Ilany <31574996+ShaharIlany@users.noreply.github.com> Date: Mon, 18 Jul 2022 23:33:36 +0300 Subject: [PATCH] fix(docs.py): use enum values only --- fastapi/openapi/docs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fastapi/openapi/docs.py b/fastapi/openapi/docs.py index ded9883dd..7f1474031 100644 --- a/fastapi/openapi/docs.py +++ b/fastapi/openapi/docs.py @@ -243,10 +243,10 @@ def get_stoplight_elements_html( {'hideInternal="true"' if hide_internal == True else ''} {'hideTryIt="true"' if hide_try_it == True else ''} {f'tryItCorsProxy="{try_it_cors_proxy}"' if try_it_cors_proxy != '' else ''} - tryItCredentialPolicy="{try_it_credential_policy}" - layout="{layout}" + tryItCredentialPolicy="{try_it_credential_policy.value}" + layout="{layout.value}" {f'logo="{logo}"' if logo != '' else ''} - router="{router}" + router="{router.value}" />