This commit is contained in:
@@ -270,6 +270,10 @@ namespace AyaNova.Biz
|
||||
var fld = filterItem["fld"].Value<string>();
|
||||
if (string.IsNullOrWhiteSpace(fld))
|
||||
AddError(ValidationErrorType.RequiredPropertyEmpty, "Filter", $"Filter array item {i}, \"fld\" property is empty and required");
|
||||
//NOTE: have decided not to validate the field names are actually valid as that would involve a lot of fuckery that would probably be unproductive at this point
|
||||
//as this datafilter normally would come straight from our client software that recieves its' list of fields directly from the object anyway
|
||||
//maybe in future it will be more of an issue when it comes to modifications to objects or fields dropped but those errors should be caught by integration tests anyway
|
||||
//and the rest are just outside users
|
||||
|
||||
}
|
||||
if (filterItem["op"] == null)
|
||||
|
||||
Reference in New Issue
Block a user