Spectral website screenshot

Spectral

Spectral is an open-source API style guide enforcer and linter from Stoplight, providing a flexible JSON/YAML linting engine with built-in support for OpenAPI (v3.1, v3.0, v2.0), Arazzo v1.0, and AsyncAPI v2.x. Teams use Spectral to define, share, and enforce API design standards through custom rulesets, integrating into CI/CD pipelines, VS Code, and the Stoplight Platform for real-time style guide feedback.

1 APIs 0 Features
API DesignAPI LintingAPI Style GuideAsyncAPIJSON SchemaOpenAPIQuality Assurance

APIs

Spectral

Spectral is a flexible JSON/YAML linter and style guide enforcer with built-in support for OpenAPI (v3.1, v3.0, v2.0), Arazzo v1.0, and AsyncAPI v2.x. It enables teams to define...

Pricing Plans

Spectral Plans Pricing

3 plans

PLANS

Rate Limits

Spectral Rate Limits

5 limits

RATE LIMITS

FinOps

Semantic Vocabularies

Spectral Context

9 classes · 10 properties

JSON-LD

API Governance Rules

Spectral API Rules

4 rules · 2 warnings

SPECTRAL

JSON Structure

Spectral Ruleset Structure

0 properties

JSON STRUCTURE

Example Payloads

Resources

🔗
LinkedIn
LinkedIn
🔗
Website
Website
🔗
Documentation
Documentation
👥
GitHub
GitHub
👥
GitHubOrganization
GitHubOrganization
🔗
NPMPackage
NPMPackage
🔗
License
License
📄
ReleaseNotes
ReleaseNotes
🔗
Contributing
Contributing

Sources

apis.yml Raw ↑
aid: spectral
name: Spectral
description: Spectral is an open-source API style guide enforcer and linter from Stoplight, providing a flexible JSON/YAML
  linting engine with built-in support for OpenAPI (v3.1, v3.0, v2.0), Arazzo v1.0, and AsyncAPI v2.x. Teams use Spectral
  to define, share, and enforce API design standards through custom rulesets, integrating into CI/CD pipelines, VS Code, and
  the Stoplight Platform for real-time style guide feedback.
type: Index
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/apis-json-logo.jpg
tags:
- API Design
- API Linting
- API Style Guide
- AsyncAPI
- JSON Schema
- OpenAPI
- Quality Assurance
url: https://raw.githubusercontent.com/api-evangelist/spectral/refs/heads/main/apis.yml
created: '2026-03-25'
modified: '2026-05-02'
specificationVersion: '0.19'
apis:
- aid: spectral:spectral
  name: Spectral
  description: Spectral is a flexible JSON/YAML linter and style guide enforcer with built-in support for OpenAPI (v3.1, v3.0,
    v2.0), Arazzo v1.0, and AsyncAPI v2.x. It enables teams to define custom rulesets to enforce naming conventions, security
    standards, and design consistency across API specifications at scale.
  humanURL: https://stoplight.io/open-source/spectral
  baseURL: https://github.com/stoplightio/spectral
  tags:
  - API Design
  - API Linting
  - API Style Guide
  - AsyncAPI
  - JSON Schema
  - OpenAPI
  - Quality Assurance
  properties:
  - type: Documentation
    url: https://docs.stoplight.io/docs/spectral
  - type: GettingStarted
    url: https://docs.stoplight.io/docs/spectral/674b27b261c3c-overview
  - type: GitHub
    url: https://github.com/stoplightio/spectral
  - type: NPMPackage
    url: https://www.npmjs.com/package/@stoplight/spectral-cli
  - type: ChangeLog
    url: https://github.com/stoplightio/spectral/blob/main/CHANGELOG.md
  - type: JSONSchema
    url: https://raw.githubusercontent.com/api-evangelist/spectral/refs/heads/main/json-schema/spectral-ruleset-schema.json
  - type: JSONStructure
    url: https://raw.githubusercontent.com/api-evangelist/spectral/refs/heads/main/json-structure/spectral-ruleset-structure.json
  - type: JSONLDContext
    url: https://raw.githubusercontent.com/api-evangelist/spectral/refs/heads/main/json-ld/spectral-context.jsonld
  - type: Vocabulary
    url: https://raw.githubusercontent.com/api-evangelist/spectral/refs/heads/main/vocabulary/spectral-vocabulary.yml
common:
- type: LinkedIn
  url: https://www.linkedin.com/company/spectralcode
- type: Website
  url: https://stoplight.io/open-source/spectral
- type: Documentation
  url: https://docs.stoplight.io/docs/spectral
- type: GitHub
  url: https://github.com/stoplightio/spectral
- type: GitHubOrganization
  url: https://github.com/stoplightio
- type: NPMPackage
  url: https://www.npmjs.com/package/@stoplight/spectral-cli
- type: License
  url: https://github.com/stoplightio/spectral/blob/main/LICENSE
  x-license: Apache-2.0
- type: ReleaseNotes
  url: https://github.com/stoplightio/spectral/releases
- type: Contributing
  url: https://github.com/stoplightio/spectral/blob/main/CONTRIBUTING.md
- type: Integrations
  url: https://stoplight.io/integrations
integrations:
- name: Azure
- name: GitHub
- name: GitLab
- name: Bitbucket
- name: Single sign-on
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com