Skip to content

Commit

Permalink
Change segment to Last
Browse files Browse the repository at this point in the history
  • Loading branch information
JBrenesSimpat committed Jul 23, 2024
1 parent 00fe545 commit 88880db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ IEnumerable<EqualityConstraint> equalityConstraints
.Select(x => $"'{x}'")
.ToArray()
);
var targetSegment = targetPath.Segments[1].ToString().Replace(".", "");
string targetSegment = targetPath.Segments.Last().ToString()[1..];
errors.Add(
$"All values supplied for '{targetSegment}' must match."
+ " Review all references (including those higher up in the resource's data)"
Expand Down

0 comments on commit 88880db

Please sign in to comment.