spotlight-cli

The linter and engine for JSON/YAML API descriptions.

spotlight-cli is a maintained, independently-released 1.0 fork of Stoplight Spectral — a flexible JSON/YAML linter with out-of-the-box support for OpenAPI, AsyncAPI, and Arazzo. It carries that foundation forward as an openly-governed, vendor-neutral build under API Commons, published to npm under the @spotlight-rules scope.

Install

npm i -g @spotlight-rules/spotlight-cli

spotlight lint openapi.yaml
spotlight lint openapi.yaml --ruleset .spotlight.yaml

What you get

The ruleset format

Rulesets follow spotlight-spec — the standalone, versioned specification of the rule and ruleset format, with a JSON Schema for validation. Browse the full catalog of rules Spotlight ships.