Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix OpenAPI operation name plural appropriately#8017

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@heavenshell
Copy link
Contributor

Description

This PR is re-challenge of#7447

I introducedinflection library to pluralize appropriately.

It would be very grateful to review this 😊

Thank you.

@lovelydinosaur
Copy link
Contributor

Certainly going to be neater than what we're currently doing.
Iguess I don't have a problem with introducing this dependancy, given that it's pretty tiny.
Anyone else?

@heavenshell
Copy link
ContributorAuthor

Thank you for reviewing!

I don't know why CI is failing...
Could anyone help this?
What should I do?

@stale
Copy link

stalebot commentedApr 28, 2022

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.

@stalestalebot added the stale labelApr 28, 2022
@heavenshellheavenshellforce-pushed thetopic/openapi-operation-plural branch from480f486 to7cf5c19CompareApril 28, 2022 14:54
@stalestalebot removed the stale labelApr 28, 2022
@stale
Copy link

stalebot commentedJul 13, 2022

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.

@stalestalebot added the stale labelJul 13, 2022
@stalestalebot removed the stale labelJul 18, 2022
@stale
Copy link

stalebot commentedSep 21, 2022

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.

@stalestalebot added the stale labelSep 21, 2022
@stalestalebot closed thisNov 23, 2022
@auvipyauvipy reopened thisNov 24, 2022
@auvipy
Copy link
Collaborator

the only build failure is a doc related failure, which does not seem to be related to this PR

heavenshell reacted with heart emoji

@auvipyauvipy merged commit9e328a9 intoencode:masterNov 24, 2022
@heavenshellheavenshell deleted the topic/openapi-operation-plural branchNovember 24, 2022 16:58
@heavenshell
Copy link
ContributorAuthor

@auvipy Thank you so much! 👍

tfranzel added a commit to tfranzel/django-rest-framework that referenced this pull requestNov 28, 2022
@tfranzel
Copy link
Contributor

pretty sure this broke the build by introducing a new hard dependency through the backdoor. see#8781

cweider added a commit to cweider/courtlistener that referenced this pull requestAug 23, 2023
A dependency onencode/django-rest-framework#8017 and latermade less obtrusive byencode/django-rest-framework#8781, butit did not eliminate it. Any usage of the schema generatormust be done in an environment that includes this package.
cweider added a commit to cweider/courtlistener that referenced this pull requestAug 23, 2023
A dependency onencode/django-rest-framework#8017 and latermade less obtrusive byencode/django-rest-framework#8781, butit did not eliminate it. Any usage of the schema generatormust be done in an environment that includes this package.
cweider added a commit to cweider/courtlistener that referenced this pull requestAug 23, 2023
`django-rest-framework` has recieved several patches forCSP compatibility, but unfortunately these are not includedin the latest release (3.14.0) and a new release cannot beexpected for a while.As such, we must replace the semantically versioned PyPIreference with a reference to the latest commit on the masterbranch of the package's Git Repository that contains thechanges that we need (do not use `master` since it couldchange in unexpected and incompatible ways).Included in this change is the `inflection` package,unfortunate dependency added byencode/django-rest-framework#8017and later made less obtrusive byencode/django-rest-framework#8781,but it did not eliminate it. Any usage of the schema generatormust be done in an environment that includes this package.Fixes:freelawproject#3020
cweider added a commit to cweider/courtlistener that referenced this pull requestAug 23, 2023
`django-rest-framework` has recieved several patches forCSP compatibility, but unfortunately these are not includedin the latest release (3.14.0) and a new release cannot beexpected for a while.As such, we must replace the semantically versioned PyPIreference with a reference to the latest commit on the masterbranch of the package's Git Repository that contains thechanges that we need (do not use `master` since it couldchange in unexpected and incompatible ways).Included in this change is the use of `inflection` for theOpenAPI spec's `operationIds`, an unfortunate dependencyadded byencode/django-rest-framework#8017 and later madeless obtrusive byencode/django-rest-framework#8781. Anyusage of the schema generator must be done in an environmentthat includes this package. Additionally, this new approachmakes the generated `operationId` that was `listPersons` into`listPeople`. Thankfully, this is immaterial.Fixes:freelawproject#3020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@lovelydinosaurlovelydinosaurlovelydinosaur approved these changes

@auvipyauvipyauvipy approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@heavenshell@lovelydinosaur@auvipy@tfranzel

[8]ページ先頭

©2009-2025 Movatter.jp