Runtime exception for endpoints in different API versions with the same endpoint name #59669
Open
1 task done
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Is there an existing issue for this?
Describe the bug
In a Minimal API application using the Asp.Versioning package to implement API versioning, the runtime throws an exception if two endpoints in different API versions have the same endpoint name. The exception thrown is:
Expected Behavior
I think that endpoint names should only be required to be unique within an API version.
Steps To Reproduce
This repo contains a branch that illustrates the issue.
Exceptions (if any)
See above.
.NET Version
9.0.100
Anything else?
No response
The text was updated successfully, but these errors were encountered: