From 0eaf85452563b8c5e73c9b9278159fde7c022d97 Mon Sep 17 00:00:00 2001 From: chelkyl <14041823+chelkyl@users.noreply.github.com> Date: Sun, 20 Oct 2024 12:36:18 -0500 Subject: [PATCH] feat: support non-param paths with trailing slash --- src/Kiota.Builder/Extensions/StringExtensions.cs | 5 +++++ 1 file changed, 5 insertions(+) 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; } ///