Comments (3)
I have the same issue.
No release since 2019/03/26 (date of release of the version you are using: 0.2.14). The base_path
argument has been introduced in #48 from 2020/05/12, so you won't be able to use it until the next release.
One thing you can do is to use the master branch (which includes the changes you need). To use the master branch:
pip install git+https://github.com/getsling/flask-swagger@master
from flask-swagger.
Same issue here.
Are you planning on releasing soon?
from flask-swagger.
I think the solution mentioned above is the best we have for now. One thing I had to do was first uninstall flask-swagger, I suspect this is because master and PyPi specify they are the same version, whereas master actually has updated code. (Probably could've used --forced-reinstall
, but be aware this reinstalls dependencies, and the dependency resolution will be done against what this package specifies, not what's in your requirements.txt or whatever, so TLDR, just uninstall and reinstall for the least problems ;))
I would caution against using the master branch, and instead pick a commit like the latest one as of the time of this comment, 23408f4
So your full pip install command:
pip uninstall -y flask-swagger && pip install git+https://github.com/getsling/flask-swagger@23408f4
from flask-swagger.
Related Issues (20)
- Doc example showing root level definitions? HOT 1
- Are Blueprint supported ? HOT 9
- Pip source code is different from github master branch HOT 2
- Multiple path parameters and multiple endpoints HOT 3
- Add partial substitution of docstrings -- expansion of .yml file support HOT 5
- Spec throws exception on bad yaml HOT 1
- Swagger UI v3 HOT 2
- Support resuableParameters
- yaml file location HOT 2
- Support flask blueprint
- Passing Absolute YAML Path In Windows HOT 1
- pip install missing packages
- Supported methods to authenticate and cache web token
- Support for "securityDefinitions" HOT 3
- AttributeError: type object 'Create' has no attribute 'lower' HOT 1
- TypeError: swagger() got an unexpected keyword argument 'base_path'
- Type annotations / type hints / stub files for mypy HOT 4
- [Question] Can I check flask-swagger comments for correctnes?
- Invalid path parameter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flask-swagger.