Skip to content
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. Will be adding the tests as a separate commit. #60096

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mkArtakMSFT
Copy link
Member

@mkArtakMSFT mkArtakMSFT commented Jan 29, 2025

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

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Jan 29, 2025
@mkArtakMSFT mkArtakMSFT force-pushed the mkArtakMSFT/issue_44988 branch from 7886a25 to c274bff Compare January 31, 2025 02:01
@mkArtakMSFT mkArtakMSFT marked this pull request as ready for review January 31, 2025 02:02
@mkArtakMSFT mkArtakMSFT requested a review from a team as a code owner January 31, 2025 02:02
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypedResults metadata are not inferred for API Controllers
1 participant