dotnet / dotnet/aspnetcore

Improve route pattern related errors when working with route groups

Open
#42,491 0 comments 1 reaction 0 assignees View on GitHub
area-minimal
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

Route groups must have unique route parameter names across all the group definitions. If you have a duplicate route parameter name somewhere, you'll get an error.

![Screen Shot 2022-06-28 at 10 32 03 PM](https://user-images.githubusercontent.com/1857993/176540444-22ba4842-8627-4ca1-b874-a2c3fd50c0e0.png)

Unfortunately, this error isn't specific about where the impacted group is so you end up having to grep through your code. It would be helpful if it showed the routes with duplicates.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.