syncweaver validate

Validate a lockfile against the syncweaver JSON schema. Useful as a pre-commit or CI sanity check to catch hand-edited lockfiles that have drifted from the expected structure.

Usage

Usage: syncweaver validate [OPTIONS]

  Validate a lockfile against the syncweaver lockfile JSON schema.

Options:
  --lockfile PATH  Path to .syncweaver-lock.json in the host repository.
                   [default: .syncweaver-lock.json]
  --schema PATH    Optional path to a JSON schema file. Defaults to bundled
                   schema.
  -h, --help       Show this message and exit.

Examples

# Validate the default lockfile in the current directory
syncweaver validate

# Validate a custom lockfile path
syncweaver validate --lockfile path/to/custom-lock.json

# Validate against a local schema (for development)
syncweaver validate --schema path/to/schema.json