@stoplight/spectral-cli
v6.15.0
Published
[](https://stoplight.io/api-governance?utm_source=github&utm_medium=spectral&utm_campaign=readme) [, but that's just one of many functions.
I want to lint my OpenAPI documents but don't want to implement Spectral right now.
No problem! A hosted version of Spectral comes free with the Stoplight platform. Sign up for a free account here.
What is the difference between Spectral and Speccy
Speccy was a great inspiration for Spectral, but was designed to work only with OpenAPI v3. Spectral can apply rules to any JSON/YAML object (including OpenAPI v2/v3, Arazzo, and AsyncAPI). Speccy has mostly been abandoned now, and is JavaScript not TypeScript.
⚙️ Integrations
- Stoplight Studio uses Spectral to validate and lint OpenAPI documents.
- Spectral GitHub Action, lints documents in your repo, built by Vincenzo Chianese.
- VS Code Spectral, all the power of Spectral without leaving VS Code.
🏁 Help Others Utilize Spectral
If you're using Spectral for an interesting use case, create an issue with details on how you're using it. We'll add it to a list here. Spread the goodness 🎉
👏 Contributing
If you are interested in contributing to Spectral, check out CONTRIBUTING.md.
🎉 Thanks
- Mike Ralphson for kicking off the Spectral CLI and his work on Speccy
- Jamund Ferguson for JUnit formatter
- Sindre Sorhus for Stylish formatter
- Ava Thorn for the Pretty formatter
- Julian Laval for HTML formatter
- @nulltoken for a whole bunch of amazing features
📜 License
Spectral is 100% free and open-source, under Apache License 2.0.
🌲 Sponsor Spectral by Planting a Tree
If you would like to thank us for creating Spectral, we ask that you buy the world a tree.
