3 writes to SuppressMapClientErrors
Microsoft.AspNetCore.Mvc.Core.Test (3)
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (2)
151
var provider = GetProvider(new ApiBehaviorOptions {
SuppressMapClientErrors
= true });
202
var provider = GetProvider(new ApiBehaviorOptions {
SuppressMapClientErrors
= true });
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (1)
171
var writer = GetWriter(options: new ApiBehaviorOptions() {
SuppressMapClientErrors
= true });
6 references to SuppressMapClientErrors
Microsoft.AspNetCore.Mvc.Core (4)
ApiBehaviorOptions.cs (1)
89
/// Use of this feature can be disabled by resetting <see cref="
SuppressMapClientErrors
"/>.
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (2)
28
if (!options.
SuppressMapClientErrors
)
43
var defaultErrorType = options.
SuppressMapClientErrors
? typeof(void) : typeof(ProblemDetails);
Infrastructure\DefaultApiProblemDetailsWriter.cs (1)
48
if (apiControllerAttribute is null || _apiBehaviorOptions.
SuppressMapClientErrors
)
Microsoft.AspNetCore.Mvc.Core.Test (2)
DependencyInjection\MvcBuilderExtensionsTest.cs (1)
157
Assert.True(options.
SuppressMapClientErrors
);
DependencyInjection\MvcCoreBuilderExtensionsTest.cs (1)
100
Assert.True(options.
SuppressMapClientErrors
);