witnyx schema
witnyx schema prints the JSON Schema of a Witnyx document.
It prints the copy bundled with the tool, unchanged, and makes no network request, so the schema always belongs to the version you run.
Use it to validate the documents in a pipeline, or to give a coding agent the shape of a document.
| Name | The schema of |
|---|---|
report (the default) |
the check report |
error |
the error document |
config |
.witnyx.yml |
init |
the plan of init in agent mode |
help |
the command reference of --help --format json |
upload |
the document of upload in agent mode |
Examples
Section titled “Examples”Without a name, it prints the schema of the report:
$ witnyx schema "$id": "https://witnyx.dev/schemas/report/v1.json", "title": "Witnyx release security check report, version 1",An unknown name is an error, with exit code 2:
$ witnyx schema reportserror WX-CONFIG: Unknown schema 'reports'.hint: Use one of: report, error, config, init, help, upload.Usage
witnyx schema [-hV] [--format=FORMAT] [NAME]Arguments
| Argument | Required | Default | Description |
|---|---|---|---|
NAME |
no | report |
report, error, config, init, help or upload (default: report). |
Options
| Option | Value | Default | Description |
|---|---|---|---|
-h, --help |
Show this help message and exit. | ||
-V, --version |
Print version information and exit. | ||
--format |
FORMAT |
With --help: text (the default) or json, a machine-readable reference. |
Exit codes
| Code | Meaning |
|---|---|
| 0 | Done. |
| 2 | Could not run: a usage error, an input error or a failed download. |
Witnyx is a record-keeping and workflow tool. It does not certify compliance. Nothing on this site is legal advice.