1 write to SuppressModelStateInvalidFilter
Microsoft.AspNetCore.Mvc.Core.Test (1)
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (1)
161
var provider = GetProvider(new ApiBehaviorOptions {
SuppressModelStateInvalidFilter
= true });
2 references to SuppressModelStateInvalidFilter
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
33
if (!options.
SuppressModelStateInvalidFilter
)
Infrastructure\ModelStateInvalidFilter.cs (1)
32
if (!_apiBehaviorOptions.
SuppressModelStateInvalidFilter
&& _apiBehaviorOptions.InvalidModelStateResponseFactory == null)