-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Fix OpenAPI operation name plural appropriately #8017
Fix OpenAPI operation name plural appropriately #8017
Conversation
Certainly going to be neater than what we're currently doing. |
Thank you for reviewing! I don't know why CI is failing... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
480f486
to
7cf5c19
Compare
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
the only build failure is a doc related failure, which does not seem to be related to this PR |
@auvipy Thank you so much! 👍 |
pretty sure this broke the build by introducing a new hard dependency through the backdoor. see #8781 |
A dependency on encode/django-rest-framework#8017 and later made less obtrusive by encode/django-rest-framework#8781, but it did not eliminate it. Any usage of the schema generator must be done in an environment that includes this package.
A dependency on encode/django-rest-framework#8017 and later made less obtrusive by encode/django-rest-framework#8781, but it did not eliminate it. Any usage of the schema generator must be done in an environment that includes this package.
`django-rest-framework` has recieved several patches for CSP compatibility, but unfortunately these are not included in the latest release (3.14.0) and a new release cannot be expected for a while. As such, we must replace the semantically versioned PyPI reference with a reference to the latest commit on the master branch of the package's Git Repository that contains the changes that we need (do not use `master` since it could change in unexpected and incompatible ways). Included in this change is the `inflection` package, unfortunate dependency added by encode/django-rest-framework#8017 and later made less obtrusive by encode/django-rest-framework#8781, but it did not eliminate it. Any usage of the schema generator must be done in an environment that includes this package. Fixes: freelawproject#3020
`django-rest-framework` has recieved several patches for CSP compatibility, but unfortunately these are not included in the latest release (3.14.0) and a new release cannot be expected for a while. As such, we must replace the semantically versioned PyPI reference with a reference to the latest commit on the master branch of the package's Git Repository that contains the changes that we need (do not use `master` since it could change in unexpected and incompatible ways). Included in this change is the use of `inflection` for the OpenAPI spec's `operationIds`, an unfortunate dependency added by encode/django-rest-framework#8017 and later made less obtrusive by encode/django-rest-framework#8781. Any usage of the schema generator must be done in an environment that includes this package. Additionally, this new approach makes the generated `operationId` that was `listPersons` into `listPeople`. Thankfully, this is immaterial. Fixes: freelawproject#3020
Description
This PR is re-challenge of #7447
I introduced inflection library to pluralize appropriately.
It would be very grateful to review this 😊
Thank you.