SR036

Severity: error

Summary: controller hook WASM path does not end with ‘.wasm’

What this means

A controller hook uses the wasm: prefix but the path that follows does not end with .wasm. Shaperail validates the extension to prevent accidental references to non-WASM files being loaded as plugins.

Example that triggers this

endpoints:
  create:
    input: [name]
    controller: { after: "wasm:./plugins/my_plugin" }

How to fix it

Ensure the WASM plugin path ends with .wasm:

controller: { after: "wasm:./plugins/my_plugin.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.