From c1a9db79eeb300b73149e69cd1a3854c925c804d Mon Sep 17 00:00:00 2001 From: Damian Romanowski <33402460+romfir@users.noreply.github.com> Date: Sat, 3 Feb 2024 00:28:40 +0100 Subject: [PATCH] Made GenerateControllerName virtual (#4726) --- src/NSwag.CodeGeneration/ClientGeneratorBaseSettings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NSwag.CodeGeneration/ClientGeneratorBaseSettings.cs b/src/NSwag.CodeGeneration/ClientGeneratorBaseSettings.cs index 68fd2a130a..1e2e79e021 100644 --- a/src/NSwag.CodeGeneration/ClientGeneratorBaseSettings.cs +++ b/src/NSwag.CodeGeneration/ClientGeneratorBaseSettings.cs @@ -69,7 +69,7 @@ protected ClientGeneratorBaseSettings() /// Generates the name of the controller based on the provided settings. /// Name of the controller. /// The controller name. - public string GenerateControllerName(string controllerName) + public virtual string GenerateControllerName(string controllerName) { return ClassName.Replace("{controller}", ConversionUtilities.ConvertToUpperCamelCase(controllerName, false)); }