This commit is contained in:
19
server/biz/ValidationError.cs
Normal file
19
server/biz/ValidationError.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace Sockeye.Biz
|
||||
{
|
||||
|
||||
public class ValidationError
|
||||
{
|
||||
//TARGET is the Model name of the property which matches the client UI annotations for ref
|
||||
|
||||
//if the target error is a child item collection field the Target must be "items[2].field"
|
||||
//where "items" is the item collection model name and 2 is the index of the collection with the error and field is the ultimate field model name
|
||||
//Case doesn't matter as the client will compare in lower case all items anyway
|
||||
|
||||
|
||||
public ApiErrorCode Code { get; set; }
|
||||
public string Target { get; set; }
|
||||
public string Message { get; set; }
|
||||
|
||||
}//eoc
|
||||
|
||||
}//eons
|
||||
Reference in New Issue
Block a user