Skip to content

Commit

Permalink
refs #4707 refine PathQueryAndHeaderParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitkrsoni committed May 24, 2024
1 parent 8bf89e6 commit 3df360c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Kiota.Builder/Refiners/CSharpRefiner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, (string, CodeUsing?)> DateTypesReplacements = new(StringComparer.OrdinalIgnoreCase)
Expand Down

0 comments on commit 3df360c

Please sign in to comment.