mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 22:50:53 +00:00
fix code formatting of flaskConnexion app.py and use more intuitive run(port=..)
This commit is contained in:
parent
aecc367e35
commit
103321d872
@ -3,7 +3,6 @@
|
|||||||
import connexion
|
import connexion
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app = connexion.App(__name__, {{serverPort}},
|
app = connexion.App(__name__, specification_dir='./swagger/')
|
||||||
specification_dir='./swagger/')
|
|
||||||
app.add_api('swagger.yaml', arguments={'title': '{{appDescription}}'})
|
app.add_api('swagger.yaml', arguments={'title': '{{appDescription}}'})
|
||||||
app.run()
|
app.run(port={{serverPort}})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user