SR021

Severity: error

Summary: tenant_key references a field not found in schema

What this means

The tenant_key: value names a field that does not exist in the schema: section. The tenant key field must be declared in the schema before it can be referenced.

Example that triggers this

resource: items
version: 1
tenant_key: missing_field
schema:
  id: { type: uuid, primary: true, generated: true }

How to fix it

Add the missing field to the schema as a uuid field, or correct the tenant_key value to match an existing field name:

missing_field: { type: uuid, ref: organizations.id, 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.