repost schema validate checks that your schema parses and satisfies every rule, and writes nothing. Errors render to stderr and exit 1; warnings render to stderr and still exit 0, so the command works as a CI check without failing on advisories.
Usage#
repost schema validate [options]Options#
| Option | Description |
|---|---|
--schema <path> | A .repost file or a directory of them. Defaults to ./repost/schema.repost, else ./repost/schema/. |
Examples#
repost schema validateThe schema at repost/schema.repost is valid.With warnings, the count is appended (is valid (1 warning).) and the warnings themselves print to stderr. On an error, the diagnostic names the file and the offending field, and the command exits 1.