You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to generate a method which has a parameter in the route template where the parameter is defined as a string causes the parameter to be ignored completely. This appears to be caused by only considering value typed parameters (not including CancellationToken) as valid. Given that string is often used as a primitive even though it is not a value type, I believe it should be special cased in, similar to how CancellationToken is currently special cased out.
Attempting to generate a method which has a parameter in the route template where the parameter is defined as a
string
causes the parameter to be ignored completely. This appears to be caused by only considering value typed parameters (not includingCancellationToken
) as valid. Given thatstring
is often used as a primitive even though it is not a value type, I believe it should be special cased in, similar to howCancellationToken
is currently special cased out.HttpClientCodeGenerator/src/HttpClientGenerator/Internals/PartialServiceClassSourceBuilder.cs
Lines 312 to 315 in 37f84c3
The text was updated successfully, but these errors were encountered: