Skip to content

Commit 5e2505c

Browse files
committed
Set default implementation on Description in IApiResponseMetadataProvider to prevent casting errors
1 parent 3ca5e52 commit 5e2505c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mvc/Mvc.Core/src/ApiExplorer/IApiResponseMetadataProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public interface IApiResponseMetadataProvider : IFilterMetadata
2020
/// <summary>
2121
/// Gets the description of the response.
2222
/// </summary>
23-
string? Description { get; }
23+
string? Description => null;
2424

2525
/// <summary>
2626
/// Gets the HTTP status code of the response.

0 commit comments

Comments
 (0)