Duplicate operationId in OpenAPI schema #8294
Answered
by
tomchristie
MarkusH
asked this question in
Potential Issue
-
After upgrading from 3.12.4 to 3.13.0 I noticed that some
Digging deeper, this is cause by this change: 9c97946 Looking at the implementation of However, looking at the repr of the same view on 3.12.4 and 3.13.0, they look differently: # 3.12.4
In [1]: from myapp.views import my_view
In [2]: my_view.view_class
Out[2]: myapp.views.WrappedAPIView
In [3]: my_view.view_class.__name__
Out[3]: 'my_view' # 3.13.0
In [1]: from myapp.views import my_view
In [2]: my_view.view_class
Out[2]: rest_framework.decorators.api_view.<locals>.decorator.<locals>.WrappedAPIView
In [3]: my_view.view_class.__name__
Out[3]: 'WrappedAPIView' |
Beta Was this translation helpful? Give feedback.
Answered by
tomchristie
Dec 15, 2021
Replies: 1 comment 5 replies
-
Okay - I think a possibly sensible path here is:
|
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
MarkusH
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Okay - I think a possibly sensible path here is: