-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
Description
The validator has to allocate strings for each field it validates, including adding a level prefix as it descends the object graph, even if there don't end up being any errors. Would be good to look at if there's a way to minimize these allocations.
Examples:
var thePrefix = $"{prefix}{propertyDetails.Name}"; var thePrefix = $"{prefix}{propertyDetails.Name}."; // <-- Note trailing '.' here var itemPrefix = $"{prefix}[{index}]."; var key = $"{prefix}{memberName}"; errors.Add($"{prefix}{propertyName}", errorsList);
Reactions are currently unavailable