Skip to content

Commit

Permalink
Use a list, not a tuple, for authentication_classes (#668)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
brianhelba authored Oct 31, 2020
1 parent c14a4d4 commit b99306f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drf_yasg/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_schema_view(info=None, url=None, patterns=None, urlconf=None, public=Fal
:param bool public: if False, includes only the endpoints that are accesible by the user viewing the schema
:param list validators: a list of validator names to apply; the only allowed value is ``ssv``, for now
:param type generator_class: schema generator class to use; should be a subclass of :class:`.OpenAPISchemaGenerator`
:param tuple authentication_classes: authentication classes for the schema view itself
:param list authentication_classes: authentication classes for the schema view itself
:param list permission_classes: permission classes for the schema view itself
:return: SchemaView class
:rtype: type[drf_yasg.views.SchemaView]
Expand Down

0 comments on commit b99306f

Please sign in to comment.