New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update imports to support apispec>=0.39.0 #205
Update imports to support apispec>=0.39.0 #205
Conversation
Following the apispec upgrade from 0.38.0 to 0.39.0, its swagger.py was renamed to openapi.py with support for OpenAPI 3.0.X as well as OpenAPI 2.0. In this commit, I only fix the backward-incompatible changed it introduced without trying to add support for 3.0.X version.
I think requirements must pin to |
@rochacbruno Is it ok like this? |
@v-francoise yeah I gonna run some tests and merge it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works well for me. I guess the alternative is to lock apispec
to the older version.
Without this change I now get (since the new apispec
release and with some debug code added):
No module named 'apispec.ext.marshmallow.swagger'
-e . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like your editor added a \n
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@javabrett yeah it seems so, if @rochacbruno you want to have it removed, I can do it.
Following the apispec upgrade from 0.38.0 to 0.39.0, its
swagger.py was renamed to openapi.py with support for OpenAPI 3.0.X
as well as OpenAPI 2.0.
In this commit, I only fix the backward-incompatible changed it
introduced without trying to add support for 3.0.X version.
See marshmallow-code/apispec@0.38.0...0.39.0