We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a5d053 commit c74677bCopy full SHA for c74677b
pyms/flask/app/swagger.py
@@ -13,9 +13,9 @@ def __init__(self):
13
@property
14
def path(self):
15
path = self.config.path
16
- return path if path is not None else SWAGGER_PATH
+ return path if path is "" or path != {} else SWAGGER_PATH
17
18
19
def file(self):
20
swagger_file = self.config.file
21
- return swagger_file if swagger_file else SWAGGER_FILE
+ return swagger_file if swagger_file is "" or swagger_file != {} else SWAGGER_FILE
0 commit comments