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
i think i understand the confusion. currently, the SPECTACULAR_SETTINGS['VERSION'] is completely independent from what you do with DRF versioning, and we do support urlpath versioning. its just a plain string in the schema.
the DRF version can be influence by either the request or by manually overriding it with: SpectacularAPIView.as_view(api_version='v2'). you will notice the VERSION string in the schema will remain the same, even though the schema changes.
i think of DRF versioning as a scoped version of a larger schema. like so:
Now seems the hands are tied with global SPECTACULAR_SETTINGS['VERSION'].
I am using URLPathVersioning, would be great if
SpectacularSwaggerView
andSpectacularAPIView
accept an explicit version kwarg or can deal with withversion
argument as it is defined by DRF https://www.django-rest-framework.org/api-guide/versioning/#urlpathversioning.The text was updated successfully, but these errors were encountered: