SR063

Severity: error

Summary: controller before/after list is empty

What this means

An endpoint’s controller.before or controller.after is declared as an empty list []. If you declare a controller hook phase, it must contain at least one hook name. An empty list has no effect and is likely a copy-paste mistake.

Example that triggers this

endpoints:
  create:
    auth: public
    controller: { before: [] }

How to fix it

Remove the before: or after: key entirely, or list at least one hook name:

controller: { before: [validate_currency, validate_org] }

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.