-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[Question][Python] Is posible to change to cammel case naming convention? #3813
Comments
👍 Thanks for opening this issue! The team will review the labels and make any necessary changes. |
Is pythonic snake_case causing issues (e.g. JSON payload serialization/deserialization)? |
For the moment it don't seems so, but we would like to use only CamelCase on our project, also in python wrappers, breaking with the pythonic rules. Is there a way to modify the template to disable snake_case and use CamelCase for variable names an others? |
We have a similar issue at the moment, a resolution would be great thanks |
There is not yet a way to do this in the python clients. This is partially implemented in python-experimental when instantiating models.
But that only allows you to assign properties at initialization with spec variable names. I see a couple of ways to get this working:
We welcome any contributions on this. |
@spacether Can you guide me little on where should I look in the code for this above approach ? |
@jpascualsana @rm3l can you try the new python-experimental generator? |
Can this issue be closed now that we have the python-experimental generator which uses only spec case? |
Closing this issue because the python-experimental generator uses spec (camel case) naming |
Description
Our project is wrote on camelCase convention. Is possible to generate python client following camelCase instead of the pythonic snake_case?
I looked at mustache templates on:
https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator/src/main/resources/python
And the instructions under
openapi-generator config-help -g python
.Also I looked at PythonClientCodegen.java but I didn't find the answer.
openapi-generator version
OpenAPI declaration file content or url
https://gitlab.com/snippets/1882068/raw
Note: this YAML is auto generated from a Doxygen documentation for RetroShare project using this
Command line used for generation
The text was updated successfully, but these errors were encountered: