1 write to MaxDepth
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
Validation\ValidatableTypeInfoTests.cs (1)
301
validationOptions.
MaxDepth
= 3; // Set a small max depth to trigger the limit
4 references to MaxDepth
Microsoft.AspNetCore.Http.Abstractions (4)
Validation\ValidatablePropertyInfo.cs (2)
98
if (context.CurrentDepth >= context.ValidationOptions.
MaxDepth
)
101
$"Maximum validation depth of {context.ValidationOptions.
MaxDepth
} exceeded at '{context.CurrentValidationPath}' in '{DeclaringType.Name}.{Name}'. " +
Validation\ValidatableTypeInfo.cs (2)
53
if (context.CurrentDepth >= context.ValidationOptions.
MaxDepth
)
56
$"Maximum validation depth of {context.ValidationOptions.
MaxDepth
} exceeded at '{context.CurrentValidationPath}' in '{Type.Name}'. " +