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
Refit will search through an objects properties and add them as queries, even if the the parameter is generic. I notied that it doesn't do this for generic parameters, I don't know if this is an oversight or a deliberate choice.
Step to reproduce
[Get("/foos/{request.someProperty}/bar/{request.someProperty2}")]TaskGetFooBars(PathBoundObjectrequest);// http://foo/foos/1/bar/barNonefixture.GetFooBars(newPathBoundObject(){SomeProperty=1,SomeProperty2="barNone"});// generic version[Get("/foos/{request.someProperty}/bar/{request.someProperty2}")]TaskGetFooBars<T>(Trequest);// error trying to find a matching route parameterfixture.GetFooBars(newPathBoundObject(){SomeProperty=1,SomeProperty2="barNone"});
Describe the bug 🐞
Refit will search through an objects properties and add them as queries, even if the the parameter is generic. I notied that it doesn't do this for generic parameters, I don't know if this is an oversight or a deliberate choice.
Step to reproduce
Reproduction repository
https://github.com/reactiveui/refit
Expected behavior
Matching properties in the generic object to would be used to create the route. I'm not sure if people would have a use case for this.
The text was updated successfully, but these errors were encountered: