Update fastapi/openapi/utils.py

This commit is contained in:
Lorhan Sohaky 2022-03-09 08:33:25 -03:00 committed by GitHub
parent 472401c4a3
commit d317a51030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -422,8 +422,7 @@ def get_openapi(
)
if result:
path, security_schemes, path_definitions = result
if prefix:
route.path_format = prefix + route.path_format
route.path_format = prefix + route.path_format
if path:
paths.setdefault(route.path_format, {}).update(path)
if security_schemes: