Automated generation of real Swagger/OpenAPI 2.0 schemas from Django REST Framework code.
3.42k
stars
439
forks
source link
Importing SwaggerAutoSchema removes the custom DRF parameter DEFAULT_AUTHENTICATION_CLASSES #842
Open
hntirgeam opened 1 year ago
Bug Report
Importing SwaggerAutoSchema removes the custom DRF parameter DEFAULT_AUTHENTICATION_CLASSES
Am I missing something?
Description
Importing SwaggerAutoSchema anywhere in the project removes the custom DRF parameter DEFAULT_AUTHENTICATION_CLASSES.
I imported it to overload some behavior that generates docstring.
Is this a regression?
Not sure
Minimal Reproduction
Using custom auth class in the DRF settings
Import class anywhere in project code
Inspecting base
APIView
class in DRF source code (methodget_authenticators
)I can clearly trace that before the import there was:
and after the import there are:
Your Environment