Type to search pages and rules.

Browse pages

Validate Consumer

litespec consumer holds a consumer repository to the release it pinned.

Markdown

Name#

litespec consumer holds a consumer repository to the release it pinned.

Synopsis#

Shell
litespec consumer [--root <path>] [--format json] [--help]

Description#

This command reads litespec.project.json and every Markdown page under the declared documentation root. It checks the project record against the project schema and the reviewed release against the manifest. It checks the stacks and extensions the project names, every page's frontmatter against the record schema, and each page's required sections. It checks the language record, every page, and every declared surface against its rejected words and mannered terms, and it checks the controlled UI through the UI validator.

The language checks skip fenced generated regions, which only the model builder writes. The builder owns identifier resolution, coverage, traces, and the computed links between records, code, screens, and tests.

Run it from the consumer root after changing a page, a project path, or a language record.

Arguments#

None. Everything passes through options.

Options#

OptionDefaultEffect
--root <path>the working directorySelects the consumer repository to read.
--format jsonoffWrites one JSON object on standard output, with the problems as an array.
--helpoffPrints the synopsis, the options, and the exit codes, then exits zero.

Exit codes#

CodeMeaning
0Configuration, frontmatter, and language are valid.
1At least one check reported a defect.
2The root holds no litespec.project.json, an option is unknown, or an input file is unreadable.

Examples#

Validate the consumer from its root:

Shell
litespec consumer

Write the result as JSON for another tool:

Shell
litespec consumer --format json

Underneath#

This command runs the controlled UI check in-process and merges its findings. Run that check alone as litespec ui. The language and schema checks run only as part of this command.