Fix OpenAPI operation name plural appropriately by heavenshell 路 Pull Request #8017 路 encode/django-rest-framework (original) (raw)
cweider added a commit to cweider/courtlistener that referenced this pull request
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