Skip to content

Commit c9f06bf

Browse files
jlainecarltongibson
authored andcommitted
Fix a spelling error in openapi AutoSchema method (#7004)
Replace "pagninator" by "paginator".
1 parent 4d57cd3 commit c9f06bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rest_framework/schemas/openapi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def _get_pagination_parameters(self, path, method):
209209
if not is_list_view(path, method, view):
210210
return []
211211

212-
paginator = self._get_pagninator()
212+
paginator = self._get_paginator()
213213
if not paginator:
214214
return []
215215

@@ -429,7 +429,7 @@ def _map_field_validators(self, field, schema):
429429
schema['maximum'] = int(digits * '9') + 1
430430
schema['minimum'] = -schema['maximum']
431431

432-
def _get_pagninator(self):
432+
def _get_paginator(self):
433433
pagination_class = getattr(self.view, 'pagination_class', None)
434434
if pagination_class:
435435
return pagination_class()
@@ -502,7 +502,7 @@ def _get_responses(self, path, method):
502502
'type': 'array',
503503
'items': item_schema,
504504
}
505-
paginator = self._get_pagninator()
505+
paginator = self._get_paginator()
506506
if paginator:
507507
response_schema = paginator.get_paginated_response_schema(response_schema)
508508
else:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy