So I have a type:
public enum Types
{
aaa= 1,
bbb= 2,
ccc= 4
}
public class RequestPayload
{
public int Prop1 { get; set; }
public string Prop2 { get; set; }
public Types Prop3 { get; set; }
}
And with Postman I am testing a web api.
public MyType Create([FromBody] RequestPayloadpayload)
{
return null
}
Here are my postman settings:
So why in the controller my object has property Prop3
to 6666 when my enum does not have this value?