1 write to Type
Microsoft.AspNetCore.Mvc.Core (1)
ProducesErrorResponseTypeAttribute.cs (1)
27Type = type ?? throw new ArgumentNullException(nameof(type));
10 references to Type
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
ApiResponseTypeProvider.cs (1)
50defaultErrorType = ((ProducesErrorResponseTypeAttribute)result!).Type;
EndpointMetadataApiDescriptionProvider.cs (1)
332var defaultErrorType = errorMetadata?.Type ?? typeof(void);
Microsoft.AspNetCore.Mvc.Core (1)
ProducesErrorResponseTypeAttribute.cs (1)
9/// <see cref="Type"/> specifies the error model type associated with a <see cref="ProducesResponseTypeAttribute"/>
Microsoft.AspNetCore.Mvc.Core.Test (6)
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (1)
142Assert.Equal(typeof(ProblemDetails), convention.DefaultErrorResponseType.Type);
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (5)
78Assert.Equal(expected, attribute.Type); 94Assert.Equal(expected, attribute.Type); 112Assert.Equal(expected, attribute.Type); 131Assert.Equal(expected, attribute.Type); 147Assert.Equal(expected, attribute.Type);
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiGenerator.cs (1)
113var defaultErrorType = errorMetadata?.Type;