8000 Pluralize list operations ending in "y" appropriately for OpenAPI schema generation by mknaw · Pull Request #7447 · encode/django-rest-framework · GitHub
[go: up one dir, main page]

Skip to content

Pluralize list operations ending in "y" appropriately for OpenAPI schema generation #7447

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

mknaw
Copy link
@mknaw mknaw commented Jul 31, 2020

Description

Words ending with "y" should have an "ies" plural form in English. I was debating including some sort of pluralize method, but it seems like we assume (for now) that English is being used, based on the default behavior with adding "s". I see that one could set operation_id_base='Entrie', but it seems so commonplace to want to substitute the final "y" that I would argue it should be done automatically.

@carltongibson
Copy link
Collaborator

This seems a reasonable suggestion. Thanks.

@mknaw
Copy link
Author
mknaw commented Aug 11, 2020

Neglected "day" -> "daies," probably needs more work or just rely on verbose_name_plural

@mknaw mknaw closed this Aug 11, 2020
@auvipy auvipy removed this from the 3.12 Release milestone Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0