Skip to content

Commit

Permalink
Merge pull request #205 from v-francoise/bug/support-new-apispec
Browse files Browse the repository at this point in the history
Update imports to support apispec>=0.39.0
  • Loading branch information
rochacbruno committed Jul 30, 2018
2 parents 6bdacba + 370e67c commit 622ac1e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions flasgger/marshmallow_apispec.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@

try:
from marshmallow import Schema, fields
from apispec.ext.marshmallow.swagger import (
schema2jsonschema, schema2parameters
)
from apispec.ext.marshmallow import openapi
from apispec import APISpec as BaseAPISpec

openapi_converter = openapi.OpenAPIConverter(openapi_version='2.0')
schema2jsonschema = openapi_converter.schema2jsonschema
schema2parameters = openapi_converter.schema2parameters
except ImportError:
Schema = None
fields = None
Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# optional (for dev)
marshmallow
apispec
apispec>=0.39.0
flask-restful
pep8==1.5.7
flake8==2.4.1
Expand All @@ -13,4 +13,4 @@ wheel
flask-jwt

# install flasgger itself as editable
-e .
-e .

0 comments on commit 622ac1e

Please sign in to comment.