mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 06:30:52 +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
|
||||
|
||||
if __name__ == '__main__':
|
||||
app = connexion.App(__name__, {{serverPort}},
|
||||
specification_dir='./swagger/')
|
||||
app = connexion.App(__name__, specification_dir='./swagger/')
|
||||
app.add_api('swagger.yaml', arguments={'title': '{{appDescription}}'})
|
||||
app.run()
|
||||
app.run(port={{serverPort}})
|
||||
|
Loading…
x
Reference in New Issue
Block a user