Skip to content

Commit

Permalink
Made GenerateControllerName virtual (#4726)
Browse files Browse the repository at this point in the history
  • Loading branch information
romfir authored Feb 2, 2024
1 parent 798b398 commit c1a9db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NSwag.CodeGeneration/ClientGeneratorBaseSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected ClientGeneratorBaseSettings()
/// <summary>Generates the name of the controller based on the provided settings.</summary>
/// <param name="controllerName">Name of the controller.</param>
/// <returns>The controller name.</returns>
public string GenerateControllerName(string controllerName)
public virtual string GenerateControllerName(string controllerName)
{
return ClassName.Replace("{controller}", ConversionUtilities.ConvertToUpperCamelCase(controllerName, false));
}
Expand Down

0 comments on commit c1a9db7

Please sign in to comment.