Skip to content
Playground(another site)

bynk.capability.missing_option

Error A derived capability lacks an option its base requires, such as a Service instance's @worker.

A derived capability, capability Name = Kind, takes its configuration from options after the kind, and some kinds cannot work without them: a Service needs the Worker it reaches, @worker(…), a Queue its @name(…), a RateLimit its @limit(…) and @period(…), and a StoredSecret its @store(…) and @secret(…). There is no default. Write the options the note shows. A value the platform would refuse is bynk.capability.invalid_option; an option the kind does not take is bynk.capability.unknown_option.

Example

bynk.toml
[unstable]
allow = ["bynk.cloudflare.Queue"]
// orders.bynk
context orders
consumes bynk.cloudflare { Queue }
capability OrderEvents = Queue // ✗ a queue must be named
capability OrderEvents = Queue @name("order-events") // ✓

In the Book

See also

  • The grammar rule it governs: capability_decl.
  • Every code in its category, Capabilities, on the diagnostic index.
  • bynk explain bynk.capability.missing_option shows the same from the installed toolchain, without a network.