This commit is contained in:
2018-11-30 18:40:32 +00:00
parent 6b35039827
commit c886fa8815
2 changed files with 5 additions and 2 deletions

View File

@@ -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)