Skip to content

Commit

Permalink
Merge pull request #37 from BEzGumpTion/master
Browse files Browse the repository at this point in the history
#36 Added arrayindex of the object to modelObjectPath in ModelGraphCache
  • Loading branch information
ryanelian authored Nov 25, 2020
2 parents f778770 + f6d4d19 commit 936978c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FluentValidation.Blazor/ModelGraphCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public ModelGraphCache(object model)
// System.Array implements IList https://docs.microsoft.com/en-us/dotnet/api/system.array?view=netcore-3.0
if (isArray && walker is IList array)
{
modelObjectPath += $"{modelObjectPath}[{arrayIndex}]";
walker = array[arrayIndex];
}

Expand Down

0 comments on commit 936978c

Please sign in to comment.