-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Invalid prefix in Swagger. #4605
Comments
Okay, thanks - can you include a minimal example that demonstrates reproducing the issue? |
Confirmed. Register two API views with the URLs given above, and seeing the same issue. |
Thanks for the link Tom :D :D |
That usage bug was reported 14 years ago. If anyone fancies making their first contribution to Python (2.7 docs), it'd be a good one to deal with! 😄 https://docs.python.org/2/library/os.path.html#os.path.commonprefix |
Forget about that, there's a confusion with earlier 3.x releases. |
I am using python 2.7 and rest framework 3.5.
As the title suggests, the prefix is invalid in swagger. It's best shown by this image.
Expected behavior
The prefixes should have been "api" and "auth" instead of "pi" and "uth".
I suspect that it is due to the behavior of "os.path.commonprefix" in python 2.7
The text was updated successfully, but these errors were encountered: