Skip to content
Free since 2015. Built for the engineers who keep things running.

cat /articles/improve-the-quality-of-your-apis-with-spectral-linting.md

Platform Engineering

Improve the Quality of Your APIs with Spectral Linting

Spectral is an open source linting tool for APIs, specifically those described using the OpenAPI specification (formerly known as Swagger) and API definitions, developed by Stoplight. It is designed to help developers create, document and maintain APIs that are easy to use and understand.

The New Stack20 Jan 2023 · summary

article --summary

The summary

https://github.com/stoplightio/spectral is an open source linting tool for APIs, specifically those described using https://www.openapis.org/ (formerly known as Swagger) and API definitions, developed by Stoplight. The tool is a linter that can be used to enforce rules and standards on JSON and JSON Schema documents. Once you have fixed any linting errors, you will need to re-run Spectral to verify that your API definition passes the linting process. To ensure that your API definition meets the standards specified by Spectral, you may need to edit the API definition file accordingly. Overall, Spectral linting is an invaluable tool for any developer looking to create an OpenAPI document that is secure, of high quality, and reliable.

Editorial note: This is a summary of an article first published by The New Stack. The full piece is on their site.

articles --latest

Latest articles

New from the blogs we follow and the community.

All articles

newsletter --weekly

DevOps Weekly, minus the noise.

The best reads, new jobs and upcoming events, in one email a week.