Skip to content

Commit 8b47a69

Browse files
committed
Compatibility with apispec v1.0.0b5
1 parent 5cb2057 commit 8b47a69

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: python
22
cache: pip
33
sudo: false
44
env:
5-
- APISPEC_VERSION="==1.0.0b3"
5+
- APISPEC_VERSION="==1.0.0b5"
66
- APISPEC_VERSION=""
77
- MARSHMALLOW_VERSION="==2.13.0"
88
- MARSHMALLOW_VERSION=""

flask_apispec/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def _register(self, target, endpoint=None, blueprint=None,
145145
else:
146146
raise TypeError()
147147
for path in paths:
148-
self.spec.add_path(**path)
148+
self.spec.path(**path)
149149

150150

151151
def make_apispec(title='flask-apispec', version='v1', openapi_version='2.0'):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'flask>=0.10.1',
1010
'marshmallow>=2.0.0',
1111
'webargs>=0.18.0',
12-
'apispec==1.0.0b3',
12+
'apispec==1.0.0b5',
1313
]
1414

1515
def find_version(fname):

tests/test_openapi.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def path(self, app, spec, function_view):
5959
converter = ViewConverter(app=app, spec=spec)
6060
paths = converter.convert(function_view)
6161
for path in paths:
62-
spec.add_path(**path)
62+
spec.path(**path)
6363
return spec._paths['/bands/{band_id}/']
6464

6565
def test_params(self, app, path):
@@ -103,7 +103,7 @@ def path(self, app, spec, function_view):
103103
converter = ViewConverter(app=app, spec=spec)
104104
paths = converter.convert(function_view)
105105
for path in paths:
106-
spec.add_path(**path)
106+
spec.path(**path)
107107
return spec._paths['/bands/{band_id}/']
108108

109109
def test_params(self, app, path, openapi):
@@ -147,7 +147,7 @@ def path(self, app, spec, function_view):
147147
converter = ViewConverter(app=app, spec=spec)
148148
paths = converter.convert(function_view)
149149
for path in paths:
150-
spec.add_path(**path)
150+
spec.path(**path)
151151
return spec._paths['/bands/{band_id}/']
152152

153153
def test_responses(self, schemas, path):
@@ -174,7 +174,7 @@ def path(self, app, spec, resource_view):
174174
converter = ResourceConverter(app=app, spec=spec)
175175
paths = converter.convert(resource_view, endpoint='band')
176176
for path in paths:
177-
spec.add_path(**path)
177+
spec.path(**path)
178178
return spec._paths['/bands/{band_id}/']
179179

180180
def test_params(self, app, path, openapi):

0 commit comments

Comments
 (0)