Closed ocaballeror closed 4 years ago
When running flaskswagger, the run() function would be invoked twice: One from the entrypoint and another by just importing build_swagger_spec.
flaskswagger
run()
build_swagger_spec
This ensures the spec is only dumped once to stdout.
I would prefer if you just added the classical:
if __name__ == "__main__": run()
Sure :+1:
When running
flaskswagger
, therun()
function would be invoked twice: One from the entrypoint and another by just importingbuild_swagger_spec
.This ensures the spec is only dumped once to stdout.