You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Cannot generate interface documentation for viewsets specific interface when “”versioning_class = NamespaceVersioning” is added to view
The interface document for MyViewSet disappears when adding “versioning_class = NamespaceVersioning” to MyViewSet,
for example:
from rest_framework.versioning import NamespaceVersioning
class MyViewSet(mixins.ListModelMixin, viewsets.GenericViewSet):
versioning_class = NamespaceVersioning
To Reproduce
A:
class MyViewSet(mixins.ListModelMixin, viewsets.GenericViewSet):
pass
B:
class MyViewSet(mixins.ListModelMixin, viewsets.GenericViewSet):
versioning_class = NamespaceVersioning
A can generate interface documents normally, but B cannot
Expected behavior
Expect normal interface documentation to be generated
The text was updated successfully, but these errors were encountered:
url('^api-ui/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
url('^api-doc/', SpectacularRedocView.as_view(url_name='schema'), name='swagger-doc'),
The corresponding interface(versioning_class = NamespaceVersioning) cannot be found when opened using this two url
Hi ,./manage.py spectacular --api-version 'YOUR_VERSION' can generate interface documents normally, but
url('^api-ui/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
url('^api-doc/', SpectacularRedocView.as_view(url_name='schema'), name='swagger-doc'),
The corresponding interface(versioning_class = NamespaceVersioning) cannot be found when opened using this two url
Describe the bug
Cannot generate interface documentation for viewsets specific interface when “”versioning_class = NamespaceVersioning” is added to view
The interface document for MyViewSet disappears when adding “versioning_class = NamespaceVersioning” to MyViewSet,
for example:
from rest_framework.versioning import NamespaceVersioning
class MyViewSet(mixins.ListModelMixin, viewsets.GenericViewSet):
versioning_class = NamespaceVersioning
To Reproduce
A:
class MyViewSet(mixins.ListModelMixin, viewsets.GenericViewSet):
pass
B:
class MyViewSet(mixins.ListModelMixin, viewsets.GenericViewSet):
versioning_class = NamespaceVersioning
A can generate interface documents normally, but B cannot
Expected behavior
Expect normal interface documentation to be generated
The text was updated successfully, but these errors were encountered: