Skip to content

Commit 6f71d65

Browse files
authored
Obsolete ValidationVisitor.AllowShortCircuitingValidationWhenNoValidatorsArePresent (#14593)
Fixes #14126
1 parent 9e84abe commit 6f71d65

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Mvc/Mvc.Core/ref/Microsoft.AspNetCore.Mvc.Core.netcoreapp.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3221,6 +3221,7 @@ public ValidateNeverAttribute() { }
32213221
public partial class ValidationVisitor
32223222
{
32233223
public ValidationVisitor(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider validatorProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidatorCache validatorCache, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary validationState) { }
3224+
[System.ObsoleteAttribute("This property is deprecated and is no longer used by the runtime.")]
32243225
public bool AllowShortCircuitingValidationWhenNoValidatorsArePresent { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
32253226
protected Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidatorCache Cache { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
32263227
protected object Container { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }

src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidationVisitor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ public int? MaxValidationDepth
109109
/// </summary>
110110
/// <value>The default value is <see langword="true"/>.</value>
111111
/// <remarks>This property is currently ignored.</remarks>
112+
[Obsolete("This property is deprecated and is no longer used by the runtime.")]
112113
public bool AllowShortCircuitingValidationWhenNoValidatorsArePresent { get; set; } = true;
113114

114115
/// <summary>

0 commit comments

Comments
 (0)