Skip to content

Commit fa0ffa8

Browse files
committed
Add default implementation to Description to prevent a breaking change when consumers cast this type and get exceptions about description being null
1 parent f355564 commit fa0ffa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Http.Abstractions/src/Metadata/IProducesResponseTypeMetadata.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public interface IProducesResponseTypeMetadata
2121
/// <summary>
2222
/// Gets the description of the response.
2323
/// </summary>
24-
string? Description { get; }
24+
string? Description { get; } = null;
2525

2626
/// <summary>
2727
/// Gets the content types supported by the metadata.

0 commit comments

Comments
 (0)