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

Feature Request: Different transformation methods for different marshaling types #84

Open
masaru-iritani opened this issue Feb 14, 2024 · 0 comments

Comments

@masaru-iritani
Copy link

I propose enhancing enumer to allow specifying different transformation methods for different marshaling types.

Our team currently implements custom GraphQL and JSON marshaling methods based on UPPER_SNAKE_CASE and snake_case representations, respectively. It'd be extremely helpful if enumer can generate both for us while keeping the current representations.

I suppose the feature will accept a transformation method via the value of each marshaling flag as shown below.

-gqlgen=snake-upper -json=snake

If this sounds like a good feature to add, I am ready and willing to contribute to its implementation.

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

No branches or pull requests

1 participant