EvalName returns the generic definition name used in error messages.
()
| 992 | |
| 993 | // EvalName returns the generic definition name used in error messages. |
| 994 | func (r *RouteExpr) EvalName() string { |
| 995 | return fmt.Sprintf(`route %s %q of %s`, r.Method, r.Path, r.Endpoint.EvalName()) |
| 996 | } |
| 997 | |
| 998 | // Validate validates a route expression by ensuring that the route parameters |
| 999 | // can be inferred from the method payload and there is no duplicate parameters |