Skip to content
Workloom
Menu

CLI command · Workspace loop

wl validate

Validate a workspace or package JSON file against the schemas and check trust gates.

First the file is parsed with the Zod schema for its type and every field error is printed. For a workspace, a render plan is then computed from the local package directory and the trust gate diagnostics are listed: asset types a target denies, and assets whose trust class is above the workspace maximum.

The exit code is non-zero on a schema error or a trust gate diagnostic.

Usage

wl validate <file> [options]

Arguments and options

<file>
Path to the JSON file to validate.
-t, --type <type>
Schema type: workspace or package. Default: workspace.
--fixtures <dir>
Local package directory to resolve packages from. Default: fixtures.