diff --git a/rest_framework/schemas/openapi.py b/rest_framework/schemas/openapi.py index 9774a94c7..2126b43ac 100644 --- a/rest_framework/schemas/openapi.py +++ b/rest_framework/schemas/openapi.py @@ -241,7 +241,10 @@ class AutoSchema(ViewInspector): name = name[:-len(action)] if action == 'list' and not name.endswith('s'): # listThings instead of listThing - name += 's' + if name.endswith('y'): + name = name[:-1] + 'ies' + else: + name += 's' return name