Closed valentasm1 closed 8 months ago
Ok. Error happened only when it comes from model. I tried debug to see where error is but after 1h left. How do you do? Would be great to have test. Maybe one day will come back Enum val is always serialized as string
public enum SomeEnum
{
Value1,
Value2,
Value3
}
public class SomeQueryModel
{
public SomeEnum EnumVal { get; set; }
public string Param1 { get; set; }
public Guid? Param2 { get; set; }
public int Param3 { get; set; }
}
@valentasm1 I have published an updated version: https://www.nuget.org/packages/GenerateAspNetCoreClient.Refit/2.1.0
Hopefully everything works fine now!
It works. Thank you.
Controller
Result where ProductSortType enum becomes string
It should be something related to .net8