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
OpenAPI Schema inconsistent operationId casing #6875
Comments
Hi @peterfarrell. Want to make a PR correcting that |
peterfarrell
added a commit
to peterfarrell/django-rest-framework
that referenced
this issue
Aug 19, 2019
peterfarrell
added a commit
to peterfarrell/django-rest-framework
that referenced
this issue
Aug 19, 2019
peterfarrell
added a commit
to peterfarrell/django-rest-framework
that referenced
this issue
Aug 19, 2019
carltongibson
pushed a commit
to peterfarrell/django-rest-framework
that referenced
this issue
Sep 3, 2019
We still have inconsistency when using APIView: One option is to lower case in this line:
|
pchiquet
pushed a commit
to pchiquet/django-rest-framework
that referenced
this issue
Nov 17, 2020
sigvef
pushed a commit
to sigvef/django-rest-framework
that referenced
this issue
Dec 3, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
master
branch of Django REST framework.Steps to reproduce
There is inconsistent casing of titles in the the OpenAPI
operationId
naming.Expected behavior
Expected behavior is that the method names are consistent in case between them. I.e.
or
Given that the rest of the method names are lowercase, I would opt for
listRegistrant
(initial lower camel case) over CamelCase.Actual behavior
It lowercases all methods names accept for List which is hardcoded.
Problem area:
[https://github.com/encode/django-rest-framework/blob/master/rest_framework/schemas/openapi.py#L112](https://github.com/encode/django-rest-framework/blob/master/rest_framework/schemas/openapi.py#L112
The text was updated successfully, but these errors were encountered: