⚒️ OpenAPI 3 CLI toolbox with rich validation and bundling features.
OpenAPI CLI toolbox with rich validation and bundling features.
Currently, @redocly/openapi-cli supports these features:
Unlike other OpenAPI linters,
@redocly/openapi-clidefines the possible type tree of a valid OpenAPI definition and then traverses it. This approach is very similar to how linters for programming languages work and results in major performance benefits over other approaches. Extend functionality at different points in the lifecycle with preprocessors, rules, and decorators.
npx @redocly/openapi-cli lint path-to-root-file.yaml
Thanks to graphql-js and eslint for inspiration of the definition traversal approach and to Swagger, Spectral, and OAS-Kit for inspiring the ruleset.