Skip to content

Commit 1285f01

Browse files
Clone IsDefaultResponse in API Explorer. Related #823
1 parent f8198d8 commit 1285f01

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/AspNetCore/WebApi/src/Asp.Versioning.Mvc.ApiExplorer/ApiDescriptionExtensions.cs

+1
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ internal static ApiResponseType Clone( this ApiResponseType responseType )
175175
{
176176
var clone = new ApiResponseType()
177177
{
178+
IsDefaultResponse = responseType.IsDefaultResponse,
178179
ModelMetadata = responseType.ModelMetadata,
179180
StatusCode = responseType.StatusCode,
180181
Type = responseType.Type,

0 commit comments

Comments
 (0)