mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Fix a spelling error in openapi AutoSchema method (#7004)
Replace "pagninator" by "paginator".
This commit is contained in:
parent
4d57cd31f6
commit
c9f06bf73f
|
@ -209,7 +209,7 @@ class AutoSchema(ViewInspector):
|
|||
if not is_list_view(path, method, view):
|
||||
return []
|
||||
|
||||
paginator = self._get_pagninator()
|
||||
paginator = self._get_paginator()
|
||||
if not paginator:
|
||||
return []
|
||||
|
||||
|
@ -429,7 +429,7 @@ class AutoSchema(ViewInspector):
|
|||
schema['maximum'] = int(digits * '9') + 1
|
||||
schema['minimum'] = -schema['maximum']
|
||||
|
||||
def _get_pagninator(self):
|
||||
def _get_paginator(self):
|
||||
pagination_class = getattr(self.view, 'pagination_class', None)
|
||||
if pagination_class:
|
||||
return pagination_class()
|
||||
|
@ -502,7 +502,7 @@ class AutoSchema(ViewInspector):
|
|||
'type': 'array',
|
||||
'items': item_schema,
|
||||
}
|
||||
paginator = self._get_pagninator()
|
||||
paginator = self._get_paginator()
|
||||
if paginator:
|
||||
response_schema = paginator.get_paginated_response_schema(response_schema)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user