Open flonou opened 1 month ago
This looks like it was fixed in https://github.com/mirumee/ariadne-codegen/commit/11bfe35bd62b2489927e0e93c6891bccc29c7f37 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 and the issue is still present
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 _fieldname have , if I set it to true, none of them has it. I guess I'm missing something ? the _field_name should never be changed from what the schema defines
Maybe your scenario is different than mine - I actually do not want snake case, and convert_to_snake_case
is true by default. To get mine to work, I actually set it to false and use camel case.
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 ?