Skip to content

Commit 908feaa

Browse files
committed
Pinned apispecs
1 parent b6cbd0b commit 908feaa

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Pipfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ pytest = "*"
88
zappa = "*"
99

1010
[packages]
11-
flask-apispec = "==0.9.0"
11+
flask-apispec = "*"
12+
apispec = "<4"
1213
webargs = "*"
1314
flask-restful = "*"
1415
postal = "*"

api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
class Parse(MethodResource):
2525
@use_kwargs(
26-
{"address": fields.Str(required=True)}, locations=["json"],
26+
{"address": fields.Str(required=True)}, location="json",
2727
)
2828
def post(self, address: str) -> Tuple[Dict, int]:
2929
"""Parse an address string
@@ -38,7 +38,7 @@ def post(self, address: str) -> Tuple[Dict, int]:
3838

3939
class LibParse(MethodResource):
4040
@use_kwargs(
41-
{"address": fields.Str(required=True)}, locations=["json"],
41+
{"address": fields.Str(required=True)}, location="json",
4242
)
4343
def post(self, address: str) -> Tuple[Dict, int]:
4444
"""Parse an address string with libpostal without any processing

0 commit comments

Comments
 (0)