Skip to content

Commit b99306f

Browse files
authored
Use a list, not a tuple, for authentication_classes (axnsan12#668)
DRF expects authentication classes to be in a list: https://www.django-rest-framework.org/api-guide/authentication/ Semantically, this should be a list, as the number of elements is arbitrary.
1 parent c14a4d4 commit b99306f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/drf_yasg/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get_schema_view(info=None, url=None, patterns=None, urlconf=None, public=Fal
5858
:param bool public: if False, includes only the endpoints that are accesible by the user viewing the schema
5959
:param list validators: a list of validator names to apply; the only allowed value is ``ssv``, for now
6060
:param type generator_class: schema generator class to use; should be a subclass of :class:`.OpenAPISchemaGenerator`
61-
:param tuple authentication_classes: authentication classes for the schema view itself
61+
:param list authentication_classes: authentication classes for the schema view itself
6262
:param list permission_classes: permission classes for the schema view itself
6363
:return: SchemaView class
6464
:rtype: type[drf_yasg.views.SchemaView]

0 commit comments

Comments
 (0)