Destination path parameter in generate_swagger function of Generator class is optional. It works when the parameter is passed. But when destination path is not provided then it throws below error:
Traceback (most recent call last):
File "e:/OpenSource/flask-swagger-generator/test.py", line 28, in <module>
generator.generate_swagger(app)
File "e:\OpenSource\flask-swagger-generator\flask_swagger_generator\generators\generator.py", line 53, in generate_swagger
self.file = open(destination_path, 'w')
TypeError: expected str, bytes or os.PathLike object, not NoneType
Destination path parameter in generate_swagger function of Generator class is optional. It works when the parameter is passed. But when destination path is not provided then it throws below error:
Example:
generator.generate_swagger(app)