heftapp / graphql_codegen

MIT License
146 stars 53 forks source link

[Bugfix] Escape enum literals starting with underscore #329

Closed astubenbord closed 11 months ago

astubenbord commented 11 months ago

I've noticed that enum literals remain private when the enum literals are prefixed with an underscore in the graphql schema.

This PR adds functionality which escapes enum literals starting with an underscore just like property names.

budde377 commented 11 months ago

Great catch! Thanks for submitting.

astubenbord commented 11 months ago

Great, glad I could help and thanks for your work, very useful project!