SR002

Severity: error

Summary: version must be >= 1

What this means

The version: field is set to 0 (or is missing and defaults to 0). The version drives the route prefix — /v1/..., /v2/... — so it must be a positive integer. Version 0 is not a valid API version.

Example that triggers this

resource: users
version: 0
schema:
  id: { type: uuid, primary: true, generated: true }

How to fix it

Set version to 1 or higher. For a new resource, use version: 1.


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.