dgs-codegen
dgs-codegen copied to clipboard
Add custom prefix or suffix to generated types
Add a new configuration option typeSuffix and typePrefix to the CodeGenConfig class and update the code generation methods to append the affixes to the generated type names.
-
CodeGenConfig: Add a new configuration option
typeSuffixandtypePrefixto theCodeGenConfigclass. -
Java DataTypeGenerator: Update the
generatemethod to append thetypeSuffixandtypePrefixto the generated type names. -
Kotlin DataTypeGenerator: Update the
generatemethod to append thetypeSuffixandtypePrefixto the generated type names.
based on: https://github.com/Netflix/dgs-codegen/pull/773