SR040

Severity: error

Summary: endpoint input/filter/search/sort references a field not in schema

What this means

An endpoint’s input, filters, search, or sort list names a field that does not exist in the resource schema. Shaperail validates all field references at parse time to prevent runtime errors.

Example that triggers this

endpoints:
  create:
    input: [name, ghost_field]

(where ghost_field is not declared in schema:)

How to fix it

Add the missing field to the schema, or remove it from the endpoint’s field list:

ghost_field: { type: string, required: true }

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.