-
Notifications
You must be signed in to change notification settings - Fork 35
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
field_name for generated class is sometimes set to a snake case version #322
Comments
This looks like it was fixed in 11bfe35 but a new release was not created. |
I'm not sure I followed the right step but I tried to remove ariadne-codgen with pip uninstall and install the last version with pip install git+https://github.com/mirumee/ariadne-codegen.git |
Came across the same issue and pulling from git worked. Don't forget to enable the setting in the pyproject file. |
If I set convert_to_snake_case to true, both the fields and their _field_name have _, if I set it to true, none of them has it. |
Maybe your scenario is different than mine - I actually do not want snake case, and |
yeah I wanted snake_case for python variables but not for the field_names because that just doesn't follow the schema in that case |
Hi,
Here is an extract of a schema that I generated code for:
For some reason, the generated code is:
ResponsePageInfoField("page_info") will result in an error as the api is expecting pageInfo instead of page_info. Any reason why some field names are generated this way ? How to prevent it ?
The text was updated successfully, but these errors were encountered: