From 3df360c8b56a7f888e0f1e4408647cf95c45725e Mon Sep 17 00:00:00 2001 From: rohitkrsoni Date: Fri, 24 May 2024 20:34:20 +0930 Subject: [PATCH] refs #4707 refine PathQueryAndHeaderParameters --- src/Kiota.Builder/Refiners/CSharpRefiner.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Kiota.Builder/Refiners/CSharpRefiner.cs b/src/Kiota.Builder/Refiners/CSharpRefiner.cs index f618db0898..5e36de1890 100644 --- a/src/Kiota.Builder/Refiners/CSharpRefiner.cs +++ b/src/Kiota.Builder/Refiners/CSharpRefiner.cs @@ -221,6 +221,10 @@ protected static void CorrectMethodType(CodeMethod currentMethod) .Select(x => x.Type) .Union(new[] { currentMethod.ReturnType }) .ToArray()); + CorrectCoreTypes(currentMethod.Parent as CodeClass, DateTypesReplacements, currentMethod.PathQueryAndHeaderParameters + .Select(x => x.Type) + .Union(new[] { currentMethod.ReturnType }) + .ToArray()); } private static readonly Dictionary DateTypesReplacements = new(StringComparer.OrdinalIgnoreCase)