SR035

Severity: error

Summary: controller hook uses ‘wasm:’ prefix but provides no path

What this means

A controller hook name starts with wasm: but no file path follows the prefix. The wasm: prefix tells Shaperail to load a WebAssembly plugin rather than a native Rust function, and it requires a path to the .wasm file.

Example that triggers this

endpoints:
  create:
    input: [name]
    controller: { before: "wasm:" }

How to fix it

Provide a .wasm file path after the wasm: prefix:

controller: { before: "wasm:./plugins/validator.wasm" }

Back to top

Shaperail documentation lives in the same repository as the framework so every release has versioned instructions. See the latest release for the most recent version.

This site uses Just the Docs, a documentation theme for Jekyll.