You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently, CodeGeneratorSettings does not provide an option to define a custom PropertyNameGenerator. In my projects this does not match the PascalNaming convention, as the properties are named like this:
Describe the solution you'd like
I would like to see an option in CodeGeneratorSettings that allows for the integration of a custom PropertyNameGenerator like the given sample below:
//Refitter.Core/Settings/RefitGeneratorSettings.cs/// <summary>/// Provide settings for Refit generator./// </summary>[ExcludeFromCodeCoverage]publicclassRefitGeneratorSettings{/// <summary>Gets or sets the property name generator.</summary>[JsonIgnore]publicIPropertyNameGeneratorPropertyNameGenerator{get;set;}}
Describe alternatives you've considered
NSwag unfortunately does not meet our logging requirements, as we need the method names from the RestMethodInfo.
Additional context
If there is any other way to customize the property names please let me know.
@fsamiec Thanks for taking the time to report this. Unfortunately, I'm too busy with other things to look into this. If you find a solution yourself and create a pull request, then I will find the time to review and make sure your fix gets merged in and released. Otherwise, this will have to wait a few weeks
Is your feature request related to a problem? Please describe.
Currently, CodeGeneratorSettings does not provide an option to define a custom PropertyNameGenerator. In my projects this does not match the PascalNaming convention, as the properties are named like this:
Describe the solution you'd like
I would like to see an option in
CodeGeneratorSettings
that allows for the integration of a customPropertyNameGenerator
like the given sample below:Describe alternatives you've considered
NSwag unfortunately does not meet our logging requirements, as we need the method names from the RestMethodInfo.
Additional context
If there is any other way to customize the property names please let me know.
/cc @christianerbsmehl
The text was updated successfully, but these errors were encountered: