Skip to content

Fix handling for inert route parameters in MVC - #58246

Merged
captainsafia merged 2 commits into
mainfrom
safia/route-param-oai-bug-58219
Oct 9, 2024
Merged

captainsafia merged 2 commits into
mainfrom
safia/route-param-oai-bug-58219

Conversation

@captainsafia

@captainsafia captainsafia commented Oct 4, 2024 •

Copy link
Copy Markdown
Contributor

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 BrennanConroy and amcasey 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
@captainsafia
captainsafia deleted the safia/route-param-oai-bug-58219 branch October 9, 2024 04:19
@captainsafia

Copy link
Copy Markdown
Contributor Author

/backport to release/9.0

@dotnet-policy-service dotnet-policy-service Bot added this to the 10.0-preview1 milestone Oct 9, 2024
@github-actions

github-actions Bot commented Oct 9, 2024

Copy link
Copy Markdown
Contributor

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

* Set default type earlier
captainsafia pushed 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