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

enh: Add optional enum prefix separator setting

Open jeffreyftang opened this issue 1 year ago • 0 comments

For readability purposes, it's useful to allow an optional separator string for enum values. For example: TypeName_EnumValue instead of TypeNameEnumValue.

This PR adds the EnumPrefixSeparator configuration parameter to control such a separator. Since the new parameter defaults to the empty string, no existing generated code should be affected.

jeffreyftang avatar Mar 14 '24 23:03 jeffreyftang