SR031

Severity: error

Summary: controller.after has an empty hook name

What this means

An endpoint’s controller.after list contains an empty string as a hook name. Every entry in the after list must be a non-empty function name that exists in the resource’s controller file.

Example that triggers this

endpoints:
  create:
    input: [name]
    controller: { after: "" }

How to fix it

Provide a non-empty function name for controller.after:

controller: { after: enrich_response }

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.