Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ public interface IApiRequestFormatMetadataProvider
/// </param>
/// <returns>Content types which are supported by the <see cref="Formatters.IInputFormatter"/>.</returns>
IReadOnlyList<string>? GetSupportedContentTypes(
string contentType,
string? contentType,
Type objectType);
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ public interface IApiResponseTypeMetadataProvider
/// </param>
/// <returns>Content types which are supported by the <see cref="Formatters.IOutputFormatter"/>.</returns>
IReadOnlyList<string>? GetSupportedContentTypes(
string contentType,
string? contentType,
Type objectType);
}
2 changes: 1 addition & 1 deletion src/Mvc/Mvc.Core/src/Formatters/InputFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public virtual Task<InputFormatterResult> ReadAsync(InputFormatterContext contex
public abstract Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context);

/// <inheritdoc />
public virtual IReadOnlyList<string>? GetSupportedContentTypes(string contentType, Type objectType)
public virtual IReadOnlyList<string>? GetSupportedContentTypes(string? contentType, Type objectType)
{
if (SupportedMediaTypes.Count == 0)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Mvc/Mvc.Core/src/Formatters/OutputFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected virtual bool CanWriteType(Type? type)

/// <inheritdoc />
public virtual IReadOnlyList<string>? GetSupportedContentTypes(
string contentType,
string? contentType,
Type objectType)
{
if (SupportedMediaTypes.Count == 0)
Expand Down
8 changes: 8 additions & 0 deletions src/Mvc/Mvc.Core/src/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
#nullable enable
*REMOVED*Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestFormatMetadataProvider.GetSupportedContentTypes(string! contentType, System.Type! objectType) -> System.Collections.Generic.IReadOnlyList<string!>?
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestFormatMetadataProvider.GetSupportedContentTypes(string? contentType, System.Type! objectType) -> System.Collections.Generic.IReadOnlyList<string!>?
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider.Description.get -> string?
*REMOVED*Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseTypeMetadataProvider.GetSupportedContentTypes(string! contentType, System.Type! objectType) -> System.Collections.Generic.IReadOnlyList<string!>?
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseTypeMetadataProvider.GetSupportedContentTypes(string? contentType, System.Type! objectType) -> System.Collections.Generic.IReadOnlyList<string!>?
Microsoft.AspNetCore.Mvc.ProducesAttribute.Description.get -> string?
Microsoft.AspNetCore.Mvc.ProducesAttribute.Description.set -> void
Microsoft.AspNetCore.Mvc.ProducesDefaultResponseTypeAttribute.Description.get -> string?
Microsoft.AspNetCore.Mvc.ProducesDefaultResponseTypeAttribute.Description.set -> void
Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute.Description.get -> string?
Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute.Description.set -> void
*REMOVED*virtual Microsoft.AspNetCore.Mvc.Formatters.InputFormatter.GetSupportedContentTypes(string! contentType, System.Type! objectType) -> System.Collections.Generic.IReadOnlyList<string!>?
virtual Microsoft.AspNetCore.Mvc.Formatters.InputFormatter.GetSupportedContentTypes(string? contentType, System.Type! objectType) -> System.Collections.Generic.IReadOnlyList<string!>?
*REMOVED*virtual Microsoft.AspNetCore.Mvc.Formatters.OutputFormatter.GetSupportedContentTypes(string! contentType, System.Type! objectType) -> System.Collections.Generic.IReadOnlyList<string!>?
virtual Microsoft.AspNetCore.Mvc.Formatters.OutputFormatter.GetSupportedContentTypes(string? contentType, System.Type! objectType) -> System.Collections.Generic.IReadOnlyList<string!>?
Loading