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
AttributeError: 'function' object has no attribute 'root_path' #61
Comments
We don't use blueprint just "vanilla" flask. |
@njarvis ok, I think I found the problem. Problem is occurring when I should fix this later today. Thanks for reporting |
I made a change in 745d017 that might fix this one, please test it and let me know if solved. thanks. |
It fixes the traceback I reported, but isn't displaying correctly. I see 404s in the access logs:
With 0.5.14, I was using |
Ok, looks like you have a problem for accessing static files, are you passing any config which replaces the static path? what is the output of and what is the output of each Lets first see if specs is being generated correclty as Thanks for your help. |
Ok, got it!
|
We're getting closer :) I'm not doing any explicit configs, just I now see one path (of many) being displayed. http://localhost:8000/apidocs/?json=true
And
|
I'll setup a Saucelabs environment to test safari! (I'm on Linux) Maybe itis because If you try: on yaml file
---
...
produces:
- 'application/json' Changes something? |
I want to solve this before releasing next version to PyPI but I am not able to reproduce it. |
I need help from people who has mac and safari to run every example in |
I've debugged further. The problem was with one of my swag definition files. I had
and that caused the rendering to stop. The fix was
This was working in 0.5.14 (I suspect this may be a swaggerui issue, not flasgger?) I'm also seeing a change in reference behaviour, which I don't know if it is expected. Again, maybe a change in swaggerui? For example, I was using a reference like this:
but the reference names have changed. Now I need to use:
|
Nice! this is fixed!
fixed I included a fix for backwards compatibility, if flasgger founds a string it will convert to list.
However, I know there are many users that may have this problem, so I included an option Thanks |
Issue introduced between 0.5.14 and 0.6.1:
Our code:
The text was updated successfully, but these errors were encountered: