Skip to content

Commit ee37fe5

Browse files
authored
Apply suggestions from code review
1 parent 1254da8 commit ee37fe5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/sqlalchemy/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import logging
22
from datetime import datetime, timezone
33

4+
import connexion
45
import orm
5-
from connexion import FlaskApp, NoContent
6+
from connexion import NoContent
67

78

89
def get_pets(limit, animal_type=None):
@@ -55,7 +56,7 @@ def delete_pet(pet_id):
5556
}
5657
for id_, pet in pets.items():
5758
put_pet(id_, pet)
58-
app = FlaskApp(__name__, specification_dir="spec")
59+
app = connexion.FlaskApp(__name__, specification_dir="spec")
5960
app.add_api("openapi.yaml")
6061
app.add_api("swagger.yaml")
6162

0 commit comments

Comments
 (0)