You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, the route handler will panic if it can't find a matching name for a route parameter, with the error Unable to match url parameter name ....
It would be an improvement if the router macro caught this at compile time.
The text was updated successfully, but these errors were encountered:
Are you using string-style invocation? The docs state:
When using URL parameters with string-style syntax, the parameter names in the URL and identity: type pairs must be the same, e.g. ... ["/users/{name}", name: String] ... . This can't be checked at compile time so bad route definitions will cause a runtime panic.
Sorry yes I should have made that clear. This feature request is to check that at compile time, which is definitely possible given the stabilisation of procedural macros and other meta-programming features.
At the moment, the route handler will panic if it can't find a matching name for a route parameter, with the error
Unable to match url parameter name ...
.It would be an improvement if the router macro caught this at compile time.
The text was updated successfully, but these errors were encountered: