Skip to content

Commit

Permalink
#245 - added param name when pushing new context to apply location ap…
Browse files Browse the repository at this point in the history
…roperly
  • Loading branch information
gregsdennis committed Mar 31, 2022
1 parent e1f5524 commit 673acd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JsonSchema/AnyOfKeyword.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void Validate(ValidationContext context)
var i1 = i;
context.Log(() => $"Processing {Name}[{i1}]...");
var schema = Schemas[i];
context.Push(context.SchemaLocation.Combine(PointerSegment.Create($"{i}")));
context.Push(subschemaLocation: context.SchemaLocation.Combine(PointerSegment.Create($"{i}")));
schema.ValidateSubschema(context);
overallResult |= context.LocalResult.IsValid;
context.Log(() => $"{Name}[{i1}] {context.LocalResult.IsValid.GetValidityString()}.");
Expand Down

0 comments on commit 673acd9

Please sign in to comment.