-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Schema structure is not suitable for detail_route or list_route with multiple methods #4391
Comments
Problem is that in suggested coreapi document structure used dict with actions as values and links as values. It could be solved by changing action key in schema document for detail_view methods. Or by using list of links as values. I myself don't see full problem scope - just my minor issue. |
We're constrained to 2 levels deep if we want to support swagger, so category/action. |
It's not fixed. Coreapi document generated by schema generator still use dict with actions as keys and coreapi links as value. So in case of multiple http methods per action it didn't fit in schema. Test case provided. |
I also happens if you have 2 similar actions. ex:
|
Checklist
master
branch of Django REST framework.Steps to reproduce
Expected behavior
Both PUT and POST methods in resulted schema.
Actual behavior
Only one method in generated schema.
The text was updated successfully, but these errors were encountered: