SR071

Severity: error

Summary: index references a field not found in schema

What this means

An entry in the indexes: section names a field that does not exist in the resource schema. All index fields must be declared in the schema for Shaperail to emit a valid CREATE INDEX statement.

Example that triggers this

indexes:
  - fields: [missing_field]

(without missing_field in schema:)

How to fix it

Add the missing field to the schema, or remove it from the index definition:

missing_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.