-
Notifications
You must be signed in to change notification settings - Fork 104
Add custom prefix or suffix to generated types #773
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
base: master
Are you sure you want to change the base?
Conversation
90e1d91
to
5461eee
Compare
Add a new configuration option `typeSuffix` to the `CodeGenConfig` class and update the code generation methods to append the `typeSuffix` to the generated type names. * **CodeGenConfig**: Add a new configuration option `typeSuffix` to the `CodeGenConfig` class. * **Java DataTypeGenerator**: Update the `generate` method to append the `typeSuffix` to the generated type names. * **Kotlin DataTypeGenerator**: Update the `generate` method to append the `typeSuffix` to the generated type names.
5461eee
to
7fe8ed4
Compare
@amondnet looks really great and I would really look forward to have this merged or published ASAP - or, if things can't go rapidly enough here, re-publishing your fork directly via GPP under different co-ords so that everyone interested in it could temporarily use it easily until it's merged upstream |
We too are looking forward to this |
+1 |
2 similar comments
+1 |
+1 |
Hey, I'd really appreciate those changes being merged. In my case we need to expose REST API along Graphql API. Suffixing Graphql types would greatly improve developer experience. Currently we use kotlin import aliases whenever needed but with another API in codebase it will quickly get out of control 😅 @amondnet Great work! I've rebased your changes onto master. Cleaned it up from @mbossenbroek @srinivasankavitha Could you please take a look and consider those changes? Thank you! |
Add a new configuration option
typePrefix
andtypeSuffix
to theCodeGenConfig
class and update the code generation methods to append thetypePrefix
andtypeSuffix
to the generated type names.fix #389
fix #323