Skip to content

Change contentType parameter in GetSupportedContentTypes to nullable - #63040

Merged
captainsafia merged 1 commit into
dotnet:mainfrom
bkoelman:content-types-nullable
Aug 5, 2025
Merged

captainsafia merged 1 commit into
dotnet:mainfrom
bkoelman:content-types-nullable

Conversation

@bkoelman

@bkoelman bkoelman commented Aug 1, 2025

Copy link
Copy Markdown
Contributor

Description

Change the contentType parameter in GetSupportedContentTypes to nullable.

Fixes #62405

@github-actions github-actions Bot added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Aug 1, 2025
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Aug 1, 2025
@bkoelman
bkoelman marked this pull request as ready for review August 1, 2025 18:34
@bkoelman
bkoelman requested a review from a team as a code owner August 1, 2025 18:34
@bkoelman

bkoelman commented Aug 1, 2025 •

Copy link
Copy Markdown
Contributor Author

@captainsafia How can I fix the build errors? I used the quick-fix from VS, which added the entries to PublicAPI.Unshipped.txt. Am I supposed to hand-edit PublicAPI.Shipped.txt now?

@martincostello

Copy link
Copy Markdown
Member

#62935 (comment)

@captainsafia

Copy link
Copy Markdown
Contributor

@bkoelman This change looks overall good! The test failures in your branch appear related to the fact that new snapshot tests were to main after you forked. A rebase of this branch on your fork should address the issue assuming your hunch is correct.

@bkoelman

bkoelman commented Aug 2, 2025

Copy link
Copy Markdown
Contributor Author

Rebased, but still failing.

@captainsafia

Copy link
Copy Markdown
Contributor

It looks like the issue is related to the tests introduced in #63052.

They appear to have triggered some test failures on main as well in commits like 9720579 and 9cdd601. The test failures don't appear persistent so it looks like some sort of aggressive flake :/

@captainsafia
captainsafia enabled auto-merge (squash) August 3, 2025 04:45
@captainsafia

captainsafia commented Aug 3, 2025 •

Copy link
Copy Markdown
Contributor

/ba-g Test failures are tests that need to be quarantined per #63073.

1 similar comment
@captainsafia

Copy link
Copy Markdown
Contributor

/ba-g Test failures are tests that need to be quarantined per #63073.

auto-merge was automatically disabled August 4, 2025 20:41

Head branch was pushed to by a user without write access

@captainsafia captainsafia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the PR and your patience with the builds ⚒️

@captainsafia
captainsafia merged commit fab448a into dotnet:main Aug 5, 2025
@dotnet-policy-service dotnet-policy-service Bot added this to the 10.0-rc1 milestone Aug 5, 2025
@bkoelman
bkoelman deleted the content-types-nullable branch August 5, 2025 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect nullability on IApiRequestFormatMetadataProvider.GetSupportedContentTypes

3 participants