Skip to content

Fix handling for inert route parameters in MVC #58246

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

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

captainsafia
Copy link
Member

@captainsafia captainsafia commented Oct 4, 2024

Addresses #58219.

This comment provides some details about what's causing this issue when users use the Asp.Versioning library in conjunction with OpenAPI support.

We'll still need to investigate why the Asp.Versioning library isn't populating ParameterType correctly but this adds a guard in our code for these scenarios.

Note: I intended to backport this PR to .NET 9.

@ghost ghost added the old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels label Oct 4, 2024
@captainsafia captainsafia added area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-openapi and removed old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels labels Oct 5, 2024
@captainsafia captainsafia marked this pull request as ready for review October 8, 2024 21:34
@captainsafia captainsafia requested a review from a team as a code owner October 8, 2024 21:34
@captainsafia captainsafia requested review from amcasey and BrennanConroy and removed request for a team October 8, 2024 22:54
@captainsafia captainsafia changed the title Fix handling for ambient route parameters Fix handling for inert route parameters in MVC Oct 9, 2024
@captainsafia captainsafia merged commit 26cf815 into main Oct 9, 2024
27 checks passed
@captainsafia captainsafia deleted the safia/route-param-oai-bug-58219 branch October 9, 2024 04:19
@captainsafia
Copy link
Member Author

/backport to release/9.0

@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview1 milestone Oct 9, 2024
Copy link
Contributor

github-actions bot commented Oct 9, 2024

captainsafia added a commit that referenced this pull request Dec 31, 2024
* Fix handling for ambient route parameters

* Set default type earlier
captainsafia added a commit that referenced this pull request Feb 11, 2025
* Fix handling for ambient route parameters

* Set default type earlier
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 feature-openapi
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants