-
Notifications
You must be signed in to change notification settings - Fork 1.2k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
[Proposal] Customized json tag key in generated models #1254
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
nope |
@zdunecki can I ask you if you use the code from https://gqlgen.com/recipes/modelgen-hook/ is the generator generating resolvers files? Thanks. |
Yes, I'm using This proposal ensures to make snakecase json tags as an option. The first way is to extend core implementation. |
Yes please. It can help other people too. |
I've created a gist for that. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
What happened?
I would like to get a customized JSON tag key in generated models.
What did you expect?
Proposal
PackageConfig
struct.Current status
I'm using
Modelgen hook
to achieve this but I need separate.go
file with boilerplate. I think it would be nice to have this feature in a native way.Similar issue: #824
The text was updated successfully, but these errors were encountered: