Spectral OpenAPI and AsyncAPI Linter

Spectral is an open-source JSON/YAML linter by Stoplight with built-in support for OpenAPI 3.x, Swagger 2.0, AsyncAPI 2.x, and Arazzo 1.0. It enforces API style guides through custom and pre-built rulesets, ensuring consistency across all your API descriptions.

agentskillexchange Updated 28 repo stars

File contents

Spectral OpenAPI and AsyncAPI Linter

Spectral is an open-source JSON/YAML linter by Stoplight with built-in support for OpenAPI 3.x, Swagger 2.0, AsyncAPI 2.x, and Arazzo 1.0. It enforces API style guides through custom and pre-built rulesets, ensuring consistency across all your API descriptions.

Installation

Use the upstream install or setup path that matches your environment:

  • npm install -g @stoplight/spectral-cli
  • yarn global add @stoplight/spectral-cli

Basic usage or getting-started notes:

Documentation

Source

agentskillexchange/skills/tree/main/skills/spectral-openapi-asyncapi-linter commit 1df67c3fe7

Frequently asked questions

npx skillmds@latest add agentskillexchange/spectral-openapi-and-asyncapi-linter