dgs-codegen icon indicating copy to clipboard operation
dgs-codegen copied to clipboard

Add custom prefix or suffix to generated types

Open dwilkolek opened this issue 9 months ago • 3 comments

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 typeSuffix and typePrefix to the CodeGenConfig class.
  • Java DataTypeGenerator: Update the generate method to append the typeSuffix and typePrefix to the generated type names.
  • Kotlin DataTypeGenerator: Update the generate method to append the typeSuffix and typePrefix to the generated type names.

based on: https://github.com/Netflix/dgs-codegen/pull/773

dwilkolek avatar Apr 08 '25 19:04 dwilkolek