# Reference

The scene schema, patches, the player API, the CLI and every validation code.

The reference pages are generated from the spec types or checked against them in CI, so they can't drift from the engine.

  - [Scene](/docs/reference/scene): The top-level document and an index of every type.
  - [Patches](/docs/reference/patch): JSON Patch ops, how they apply, and the report.
  - [Player](/docs/reference/player): createPlayer, the Player API and runtime overrides.
  - [CLI](/docs/reference/cli): validate, expand and render, with every flag.
  - [Error Codes](/docs/reference/errors): Every code, with a real message and fix.

## How It Stays Current

- Property tables render from `schema/scene.schema.json`, which is generated from the Rust types.
- `npm run check -w @motion-sdk/docs` fails if a type, field or variant has no description or no page.
- A Rust test runs every error example through the validator and fails if a code is missing or a message changes.
- Another test validates every example scene on this site in final mode.
