Skip to content
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

[PYTHON] Parameters name getting converted from camelCase to snake_case while generating python wrapper #7157

Closed
aakanksha-sib opened this issue Dec 12, 2017 · 2 comments · Fixed by #11019
Assignees

Comments

@aakanksha-sib
Copy link

aakanksha-sib commented Dec 12, 2017

[PYTHON]

Description

This issues is concerned with the variable naming convention for python. For other languages, options are provided for choosing the same eg. camelCase or snake_case, but there is no such option for python.
For eg. we have an option of variableNamingConvention for php.

My variables in swagger_definition.yml are in camelCase (eg: startDate) but it converts to snake_case (eg. start_date) on wrapper generation, which is not desirable. Please suggest a way to solve this out.
Using master branch / version: 2.2.3

@pavelzagalsky-paloalto
Copy link

Bumping up, is there a way to tell codegen to keep the camelCase convention instead of using underscore?

@gdebeaupuis-plenty
Copy link

gdebeaupuis-plenty commented Apr 21, 2022

@HugoMario Is this available on version 3 or only version 2? Thanks!

EDIT: I think I realized this is for version 2, I pushed a PR adding your changes for v3. Let me know, it would be great to support this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants