1 override of HasValidators
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
442public 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)
336else if (metadata.HasValidators == false &&
Microsoft.AspNetCore.Mvc.IntegrationTests (10)
ValidationIntegrationTests.cs (5)
2050Assert.False(modelMetadata.HasValidators); 2102Assert.True(modelMetadata.HasValidators); 2173Assert.True(modelMetadata.HasValidators); 2338Assert.False(modelMetadata.HasValidators); 2392Assert.True(modelMetadata.HasValidators);
ValidationWithRecordIntegrationTests.cs (5)
1841Assert.False(modelMetadata.HasValidators); 1893Assert.True(modelMetadata.HasValidators); 1964Assert.True(modelMetadata.HasValidators); 2129Assert.False(modelMetadata.HasValidators); 2180Assert.True(modelMetadata.HasValidators);
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
306if (parameterDescription.ModelMetadata is { PropertyName: { }, ContainerType: { }, HasValidators: true, ValidatorMetadata: { } validations })