@@ -21,12 +21,10 @@ public sealed class ProducesResponseTypeMetadata : IProducesResponseTypeMetadata
2121 /// <param name="statusCode">The HTTP response status code.</param>
2222 /// <param name="type">The <see cref="Type"/> of object that is going to be written in the response.</param>
2323 /// <param name="contentTypes">Content types supported by the response.</param>
24- /// <param name="description">The description of the response.</param>
25- public ProducesResponseTypeMetadata ( int statusCode , Type ? type = null , string [ ] ? contentTypes = null , string ? description = null )
24+ public ProducesResponseTypeMetadata ( int statusCode , Type ? type = null , string [ ] ? contentTypes = null )
2625 {
2726 StatusCode = statusCode ;
2827 Type = type ;
29- Description = description ;
3028
3129 if ( contentTypes is null || contentTypes . Length == 0 )
3230 {
@@ -52,22 +50,12 @@ static void ValidateContentType(string type)
5250 }
5351 }
5452
55- // 9.0 BACKCOMPAT OVERLOAD -- DO NOT TOUCH
56- /// <summary>
57- /// Initializes an instance of <see cref="ProducesResponseTypeMetadata"/>.
58- /// </summary>
59- /// <param name="statusCode">The HTTP response status code.</param>
60- /// <param name="type">The <see cref="Type"/> of object that is going to be written in the response.</param>
61- /// <param name="contentTypes">Content types supported by the response.</param>
62- public ProducesResponseTypeMetadata ( int statusCode , Type ? type = null , string [ ] ? contentTypes = null ) : this ( statusCode , type , contentTypes , description : null ) { }
63-
6453 // Only for internal use where validation is unnecessary.
65- private ProducesResponseTypeMetadata ( int statusCode , Type ? type , IEnumerable < string > contentTypes , string ? description = null )
54+ private ProducesResponseTypeMetadata ( int statusCode , Type ? type , IEnumerable < string > contentTypes )
6655 {
6756 Type = type ;
6857 StatusCode = statusCode ;
6958 ContentTypes = contentTypes ;
70- Description = description ;
7159 }
7260
7361 /// <summary>
@@ -83,7 +71,7 @@ private ProducesResponseTypeMetadata(int statusCode, Type? type, IEnumerable<str
8371 /// <summary>
8472 /// Gets or sets the description of the response.
8573 /// </summary>
86- public string ? Description { get ; private set ; }
74+ public string ? Description { get ; set ; }
8775
8876 /// <summary>
8977 /// Gets or sets the content types associated with the response.
@@ -96,5 +84,5 @@ public override string ToString()
9684 return DebuggerHelpers . GetDebugText ( nameof ( StatusCode ) , StatusCode , nameof ( ContentTypes ) , ContentTypes , nameof ( Type ) , Type , includeNullValues : false , prefix : "Produces" ) ;
9785 }
9886
99- internal static ProducesResponseTypeMetadata CreateUnvalidated ( Type ? type , int statusCode , IEnumerable < string > contentTypes , string ? description ) => new ( statusCode , type , contentTypes , description ) ;
87+ internal static ProducesResponseTypeMetadata CreateUnvalidated ( Type ? type , int statusCode , IEnumerable < string > contentTypes ) => new ( statusCode , type , contentTypes ) ;
10088}
0 commit comments