bynk.http.unbound_path_param
Error A :name route segment has no matching handler parameter.
A :name segment in a route promises a value the handler can use, and the value reaches it only through a parameter of the same name. A segment with no such parameter would be matched and then thrown away, which is nearly always a slip, so the route is refused. Add the parameter, typed String or a refined String, or drop the segment from the path. The reverse, a parameter with no segment, is bynk.http.extra_param.
Example
on GET("/items/:id") () -> Effect[HttpResult[String]] by v: Visitor { … } // ✗ `:id` has no parameter
on GET("/items/:id") (id: String) -> Effect[HttpResult[String]] by v: Visitor { … } // ✓In the Book
See also
- The grammar rule it governs:
http_handler. - Every code in its category, HTTP, on the diagnostic index.
bynk explain bynk.http.unbound_path_paramshows the same from the installed toolchain, without a network.