SR077

Severity: error

Summary: array items type is enum but declares no values

What this means

An array field has items: { type: enum } but the required values: list is missing from the items spec. Without values, Shaperail cannot generate the enum type for the array elements.

Example that triggers this

schema:
  statuses: { type: array, items: { type: enum } }

How to fix it

Add values: [...] to the items spec:

statuses: { type: array, items: { type: enum, values: [a, b] } }

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.