-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
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.
HttpClientCodeGenerator/src/HttpClientGenerator/Internals/PartialServiceClassSourceBuilder.cs
Lines 312 to 315 in 37f84c3
if (!type.IsValueType) | |
{ | |
return false; | |
} |
Metadata
Metadata
Assignees
Labels
No labels