SR080

Severity: error

Summary: array items.ref must use ‘resource.field’ dot notation

What this means

An array field’s items spec has a ref: value that does not contain a dot. Like top-level field references, array item references must use resource_name.field_name format so Shaperail can identify both the target table and column.

Example that triggers this

schema:
  org_ids: { type: array, items: { type: uuid, ref: organizations } }

How to fix it

Write items.ref using resource_name.column_name notation:

org_ids: { type: array, items: { type: uuid, ref: organizations.id } }

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.