-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Fixed the issue #60096
Fixed the issue #60096
Conversation
src/Mvc/Mvc.Core/src/ApplicationModels/DefaultApplicationModelProvider.cs
Outdated
Show resolved
Hide resolved
7886a25
to
c274bff
Compare
Yes - I just merged that, so re-kicking this should fix CI |
9f01e34
to
6873581
Compare
@eerhardt somehow, I am unable to properly suppress these warnings, even though the suppressions have been generated. When running the suppression generation command locally, it doesn't make any other changes, which indicates that the suppressions are properly made in the file. So I'm not sure what else may be going on here. Can you take a look and see what I may be missing here? |
So the manual "fix" that I did was done incorrectly and that was the culprit. Thank you, @eerhardt. @captainsafia this is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall! Posted some notes about adding more tests to validate the behavior in the ApiExplorer/OpenAPI layer.
src/Mvc/Mvc.Core/test/ApplicationModels/DefaultApplicationModelProviderTest.cs
Outdated
Show resolved
Hide resolved
…sult returning action
…h typed result return type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Include typed result metadata in the action descriptors for MVC Controller actions
Description
The endpoint metadata wasn't being captured in ActionModel during the ApplicationModel creation. This is addressed by the change in the DefaultApplicationModelProvider class. The metadata is now being extracted based on the return type of the action and then the selectors associated with the action are populated with that metadata, as that's what is being used later on for populating the ActionDescriptor's EndpointMetadata.
Fixes #44988