/// <summary>
/// Tests the use of enums in the request
/// </summary>
[Route("/testingonly/general/enum", OperationMethod.Post)]
public class PostWithEnumTestingOnlyRequest : IWebRequest<StringMessageTestingOnlyResponse>
{
public TestEnum? AnEnum { get; set; }
public string? AProperty { get; set; }
}
public enum TestEnum
{
Value1,
Value2,
Value3
}
The serializer cannot handle the enum definition in the request.
However it can handle this request:
[Route("/testingonly/general/enum", OperationMethod.Post)]
public class PostWithEnumTestingOnlyRequest : IWebRequest<StringMessageTestingOnlyResponse>
{
public string? AnEnum { get; set; }
public string? AProperty { get; set; }
}
Lets say I have this definition of a request:
The serializer cannot handle the enum definition in the request.
However it can handle this request: