bynk.event.bad_schema_dispatch
Error A via schema(...) dispatch clause's argument is malformed — it must be a positive Int literal, a range of positive Int literals, or _.
via schema(N) filters a subscription by the envelope's schemaVersion. Versions count up from 1, so every bound must be a positive Int literal: schema(0) or schema(0..3) names a version no event has. Write a version, a range such as schema(2..4), or _ for every version. A range whose lower bound is above its upper one is bynk.types.empty_range_pattern.
Example
service OnPaid from Events(Paid) via schema(0) { // ✗ versions start at 1service OnPaid from Events(Paid) via schema(1) { // ✓ on event(e: Paid) -> Effect[()] { … }}In the Book
See also
- Every code in its category, Events, on the diagnostic index.
bynk explain bynk.event.bad_schema_dispatchshows the same from the installed toolchain, without a network.