-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Incorrect nullability on IApiRequestFormatMetadataProvider.GetSupport… #62935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This guide explains how to build the code locally: https://github.com/dotnet/aspnetcore/blob/main/docs/BuildFromSource.md There are scripts to download the required SDK version and make it available for use in your IDE of choice. |
…edContentTypes dotnet#62405 - update public api
@dotnet-policy-service agree |
@martincostello I am getting the build errors below. But I had to change these files in order for the tests to pass. What should I do here? ❌Detected modification to baseline API files. PublicAPI.Shipped.txt files should only be updated after a major release, and PublicAPI.Unshipped.txt files should not be updated in release branches. See /docs/APIBaselines.md for more information. |
Sorry, I don't know the answer to that specific question for this repo. |
@codingwithstephen Thanks for opening this PR! We use the PublicAPI analyzers to manage API versions in our application. The analyzer is complaining because the nullability changes should be applied in the Are you using VS or VS Code? There should be a codefixer offered to make this change? If not, you can try implementing it manually by creating a new
|
Incorrect nullability on IApiRequestFormatMetadataProvider.GetSupportedContentTypes #62405
Fix incorrect nullability in GetSupportedContentTypes
Summary of the changes:
Corrected the nullability annotations for the GetSupportedContentTypes method in the IApiRequestFormatMetadataProvider interface to match the expected behavior.
Description
This PR fixes the nullability specification on the GetSupportedContentTypes method to ensure correct usage and compatibility with nullable reference types.
Due to the requirement of a specific .NET SDK version (10.0.100-preview.7.25322.101) pinned in global.json, I have not been able to build the solution or run existing tests. Additionally, after searching the codebase, I could not find any existing unit tests covering this particular feature or method.
Fixes #62405