ASP0017: Invalid route pattern
Value | |
---|---|
Rule ID | ASP0017 |
Category | Usage |
Fix is breaking or non-breaking | Non-breaking |
Cause
A route pattern is invalid.
Rule description
This diagnostic is emitted when a route pattern is invalid. In the example below, the route pattern contains an invalid token.
var app = WebApplication.Create();
app.MapGet("/{id", (int id) => ...);
How to fix violations
To fix a violation of this rule, correct the error identified in the analyzer message.
When to suppress warnings
Do not suppress a warning from this rule.
Cộng tác với chúng tôi trên GitHub
Bạn có thể tìm thấy nguồn cho nội dung này trên GitHub, nơi bạn cũng có thể tạo và xem lại các vấn đề và yêu cầu kéo. Để biết thêm thông tin, hãy xem hướng dẫn dành cho người đóng góp của chúng tôi.
ASP.NET Core