Skip to content

Commit b05f9ba

Browse files
Incorrect nullability on IApiRequestFormatMetadataProvider.GetSupportedContentTypes dotnet#62405 - update public api
1 parent 1c95dbc commit b05f9ba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Mvc/Mvc.Core/src/ApiExplorer/IApiRequestFormatMetadataProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ public interface IApiRequestFormatMetadataProvider
2525
/// </param>
2626
/// <returns>Content types which are supported by the <see cref="Formatters.IInputFormatter"/>.</returns>
2727
IReadOnlyList<string>? GetSupportedContentTypes(
28-
string contentType,
28+
string? contentType,
2929
Type objectType);
3030
}

src/Mvc/Mvc.Core/src/PublicAPI.Shipped.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionGroupNameProvider.GroupName.
172172
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionVisibilityProvider
173173
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionVisibilityProvider.IgnoreApi.get -> bool
174174
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestFormatMetadataProvider
175-
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestFormatMetadataProvider.GetSupportedContentTypes(string! contentType, System.Type! objectType) -> System.Collections.Generic.IReadOnlyList<string!>?
175+
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestFormatMetadataProvider.GetSupportedContentTypes(string? contentType, System.Type! objectType) -> System.Collections.Generic.IReadOnlyList<string!>?
176176
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestMetadataProvider
177177
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestMetadataProvider.SetContentTypes(Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection! contentTypes) -> void
178178
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider
@@ -2454,7 +2454,7 @@ virtual Microsoft.AspNetCore.Mvc.Formatters.FormatFilter.GetFormat(Microsoft.Asp
24542454
virtual Microsoft.AspNetCore.Mvc.Formatters.InputFormatter.CanRead(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext! context) -> bool
24552455
virtual Microsoft.AspNetCore.Mvc.Formatters.InputFormatter.CanReadType(System.Type! type) -> bool
24562456
virtual Microsoft.AspNetCore.Mvc.Formatters.InputFormatter.GetDefaultValueForType(System.Type! modelType) -> object?
2457-
virtual Microsoft.AspNetCore.Mvc.Formatters.InputFormatter.GetSupportedContentTypes(string! contentType, System.Type! objectType) -> System.Collections.Generic.IReadOnlyList<string!>?
2457+
virtual Microsoft.AspNetCore.Mvc.Formatters.InputFormatter.GetSupportedContentTypes(string? contentType, System.Type! objectType) -> System.Collections.Generic.IReadOnlyList<string!>?
24582458
virtual Microsoft.AspNetCore.Mvc.Formatters.InputFormatter.ReadAsync(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext! context) -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult!>!
24592459
virtual Microsoft.AspNetCore.Mvc.Formatters.OutputFormatter.CanWriteResult(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext! context) -> bool
24602460
virtual Microsoft.AspNetCore.Mvc.Formatters.OutputFormatter.CanWriteType(System.Type? type) -> bool

0 commit comments

Comments
 (0)