I have a get coming in with the following parameters /form?type=resource&limit=1000000&select=_id,title&limit=100&skip=0
The problem I’m having is the duplicate limit property which gives the following error:
{
"errorCode": "SerializationException",
"fieldName": "limit",
"message": "'1000000,100' is an Invalid value for 'limit'"
}
How can I intercept this error and deserailize the second limit value to another property (Take)?
public class FormRequest : IReturn<FormResponse>, IFormRequest
{
public string Type { get; set; }
public long Limit { get; set; }
public long Skip { get; set; }
public long Take { get; set; }
public string Select { get; set; }
}