-
Notifications
You must be signed in to change notification settings - Fork 43
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
Error while using flask-injector decorator and flask-apispec doc in Flask together. #77
Comments
Stack trace:
|
Hey @pratik261199, thank you for the code to reproduce this, this is a very thorough report.
Do you maybe know the upgrade of which library broke your code? |
I upgraded
I want flask-2.2.2; since it requires Flask injector >=0.13.0 I upgraded it to the latest i.e (0.14.0). tried downgrading it to 0.13.0 as well, still code is breaking. |
@jstasiak Have you got any work-around this issue? |
Sorry, I don't know what the error is and why it happens. Pull requests are welcome if someone knows how to fix it. |
I have upgraded my packages to:
flask-2.2.2
injector-0.20.1
Flask-injector-0.14.1
apispec-6.0.2
flask-apispec-0.11.4
I'm using Flask-apispec to auto-generate api documentation, and I'm using injector library. both independently works well in my code but when I use them together, somehow @Inject decorator doesn't work. and it throws the error missing positional argument.
I tried to debug the code, in stack trace, it completely skips the inject decorator.
Here is a sample code
Everything works well if I comment out the "docs.register(CatResource, endpoint='CatResource')"'
Note: Everything was working fine before upgrading libraries to the latest
The text was updated successfully, but these errors were encountered: