bynk.http.json_unknown_arg
Error A @json annotation has an argument outside the closed set (options).
@json has one argument, options:. The set is closed, so a misspelt or invented argument is refused rather than ignored, which would leave the route writing Option otherwise than you asked. Rename it to options or remove it. The value is checked separately: bynk.http.json_invalid_arg. The same name in a service's json { } section is bynk.http.json_unknown_field.
Example
@json(options: plain, nulls: keep) // ✗ not an argument of `@json`on GET("/activity") () -> Effect[HttpResult[String]] by v: Visitor { … }
@json(options: plain) // ✓on GET("/activity") () -> 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.json_unknown_argshows the same from the installed toolchain, without a network.