-
Notifications
You must be signed in to change notification settings - Fork 440
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
Incorrectly renders CamelCase in all views #156
Comments
As you can see form the demo project, this is not generally the case. Only views with the parser and renderer you mentioned are converted. Thus it must be something more particular to your project, so please provide some details. You should note however that due to the nature of OpenAPI and the current implementation of |
Thank you for detailed response. I'm indeed reusing some serializers and your note about |
Note: this also happens if I'm not reusing serializers but there is a name clash in across different Django applications. Setting different Maybe |
Yeah, both of those seem reasonable. |
In my app I'm using djangorestframework-camel-case only for some subset of views by setting their parser and renderer classes to
CamelCaseJSONParser
andCamelCaseJSONRenderer
respectively. My default parser and renderer classes are set toJSONParser
andJSONRenderer
in my project settings.It looks like using camelCase for just one view is causing
drf-yasg
to use camelCase in all views.The text was updated successfully, but these errors were encountered: