1 override of HasValidators
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
442
public override bool?
HasValidators
13 references to HasValidators
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Validation\IMetadataBasedModelValidatorProvider.cs (1)
15
/// <see cref="ModelMetadata"/> instance can incur any validation. The value for <see cref="ModelMetadata.
HasValidators
"/>
ModelBinding\Validation\ValidationVisitor.cs (1)
336
else if (metadata.
HasValidators
== false &&
Microsoft.AspNetCore.Mvc.IntegrationTests (10)
ValidationIntegrationTests.cs (5)
2050
Assert.False(modelMetadata.
HasValidators
);
2102
Assert.True(modelMetadata.
HasValidators
);
2173
Assert.True(modelMetadata.
HasValidators
);
2338
Assert.False(modelMetadata.
HasValidators
);
2392
Assert.True(modelMetadata.
HasValidators
);
ValidationWithRecordIntegrationTests.cs (5)
1841
Assert.False(modelMetadata.
HasValidators
);
1893
Assert.True(modelMetadata.
HasValidators
);
1964
Assert.True(modelMetadata.
HasValidators
);
2129
Assert.False(modelMetadata.
HasValidators
);
2180
Assert.True(modelMetadata.
HasValidators
);
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
306
if (parameterDescription.ModelMetadata is { PropertyName: { }, ContainerType: { },
HasValidators
: true, ValidatorMetadata: { } validations })