bynk.http.limit_unknown_arg
Error A @limit annotation has an argument outside the closed set (maxBody).
@limit accepts maxBody and, on a @multipart route, maxFile and maxParts. The set is closed, so a misspelt or invented cap is refused rather than ignored, which would leave the route with a ceiling you did not set. Rename the argument or remove it. The ceilings are checked by bynk.http.limit_bad_max_body and bynk.http.limit_bad_max_file.
Example
type Note = { text: String }
@limit(maxBody: 1_000_000, maxSize: 10) // ✗ not an argument of `@limit`on POST("/notes") (body: Note) -> Effect[HttpResult[String]] by v: Visitor { … }
@limit(maxBody: 1_000_000) // ✓on POST("/notes") (body: Note) -> Effect[HttpResult[String]] by v: Visitor { … }In the Book
See also
- Every code in its category, HTTP, on the diagnostic index.
bynk explain bynk.http.limit_unknown_argshows the same from the installed toolchain, without a network.