1 write to Type
Microsoft.AspNetCore.Mvc.Core (1)
ProducesErrorResponseTypeAttribute.cs (1)
27
Type
= type ?? throw new ArgumentNullException(nameof(type));
10 references to Type
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
ApiResponseTypeProvider.cs (1)
50
defaultErrorType = ((ProducesErrorResponseTypeAttribute)result!).
Type
;
EndpointMetadataApiDescriptionProvider.cs (1)
332
var 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)
142
Assert.Equal(typeof(ProblemDetails), convention.DefaultErrorResponseType.
Type
);
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (5)
78
Assert.Equal(expected, attribute.
Type
);
94
Assert.Equal(expected, attribute.
Type
);
112
Assert.Equal(expected, attribute.
Type
);
131
Assert.Equal(expected, attribute.
Type
);
147
Assert.Equal(expected, attribute.
Type
);
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiGenerator.cs (1)
113
var defaultErrorType = errorMetadata?.
Type
;