oapi-codegen
oapi-codegen copied to clipboard
enh: Add optional enum prefix separator setting
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.