Skip to content

Commit 81d6ee2

Browse files
authored
Sanitize parameters to prevent errors
1 parent 16cd8d0 commit 81d6ee2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Templates/CSharp/Requests/IMethodRequest.cs.tt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ namespace <#=method.Namespace.GetNamespaceName()#>
173173
/// </summary>
174174
/// <param name="<#=returnEntityParameter#>">The <#=returnEntityType#> object set with the properties to update.</param>
175175
/// <returns>The task to await for async call.</returns>
176-
<#=methodReturnType#> PatchAsync(<#=returnEntityType#> <#=returnEntityParameter#>);
176+
<#=methodReturnType#> PatchAsync(<#=returnEntityType#> <#=returnEntityParameter.GetSanitizedParameterName()#>);
177177

178178
/// <summary>
179179
/// Issues the PATCH request.
@@ -189,7 +189,7 @@ namespace <#=method.Namespace.GetNamespaceName()#>
189189
}
190190
#>
191191
/// <returns>The task to await for async call.</returns>
192-
<#=methodReturnType#> PatchAsync(<#=returnEntityType#> <#=returnEntityParameter#>,
192+
<#=methodReturnType#> PatchAsync(<#=returnEntityType#> <#=returnEntityParameter.GetSanitizedParameterName()#>,
193193
<#
194194
if (returnsStream)
195195
{
@@ -218,7 +218,7 @@ namespace <#=method.Namespace.GetNamespaceName()#>
218218
/// </summary>
219219
/// <param name="<#=returnEntityParameter#>">The <#=returnEntityType#> object to update.</param>
220220
/// <returns>The task to await for async call.</returns>
221-
<#=methodReturnType#> PutAsync(<#=returnEntityType#> <#=returnEntityParameter#>);
221+
<#=methodReturnType#> PutAsync(<#=returnEntityType#> <#=returnEntityParameter.GetSanitizedParameterName()#>);
222222

223223
/// <summary>
224224
/// Issues the PUT request.
@@ -234,7 +234,7 @@ namespace <#=method.Namespace.GetNamespaceName()#>
234234
}
235235
#>
236236
/// <returns>The task to await for async call.</returns>
237-
<#=methodReturnType#> PutAsync(<#=returnEntityType#> <#=returnEntityParameter#>,
237+
<#=methodReturnType#> PutAsync(<#=returnEntityType#> <#=returnEntityParameter.GetSanitizedParameterName()#>,
238238
<#
239239
if (returnsStream)
240240
{

0 commit comments

Comments
 (0)