diff --git a/src/Kiota.Builder/Extensions/StringExtensions.cs b/src/Kiota.Builder/Extensions/StringExtensions.cs index 9707295a57..e87e31d923 100644 --- a/src/Kiota.Builder/Extensions/StringExtensions.cs +++ b/src/Kiota.Builder/Extensions/StringExtensions.cs @@ -266,6 +266,11 @@ private static string NormalizeSymbolsBeforeCleanup(string original) result = result.Replace("+", "_plus_", StringComparison.OrdinalIgnoreCase); } + if (result.Contains('\\', StringComparison.OrdinalIgnoreCase)) + { + result = result.Replace(@"\", "Slash", StringComparison.OrdinalIgnoreCase); + } + return result; } ///