Skip to content

MaxDepth in EquivalencyValidator. #1993

@Wolgo

Description

@Wolgo

bool shouldRecurse = options.AllowInfiniteRecursion || currentNode.Depth < MaxDepth;

MaxDepth is set to 10.
However, when the current node is at depth 10, it would return false.
Depth is however 0-based, so depth 9 is already 10 levels, but that is not clear in this line of code.

@dennisdoomen

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions