spectral

A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI v3.1, v3.0, and v2.0 as well as AsyncAPI v2.x.

APACHE-2.0 License

Downloads
22.3M
Stars
2.3K
Committers
92

Bot releases are visible (Hide)

spectral - v4.1.0-beta2

Published by stoplight-bot about 5 years ago

spectral - v4.1.0-beta1

Published by stoplight-bot about 5 years ago

See #497 for more information on this beta.

spectral -

Published by stoplight-bot about 5 years ago

spectral -

Published by stoplight-bot about 5 years ago

spectral -

Published by stoplight-bot over 5 years ago

Fixed

  • NPM install for Windows users was failing due to a dependency not supporting Windows in their build script
spectral -

Published by stoplight-bot over 5 years ago

Added

  • Using the CLI with multiple, custom rulesets
  • New syntax for rulesets, including overriding rules and extending rulesets
  • More friendly errors and warnings
  • CLI --quiet flag added to lint command, removing any output other than results
  • CLI --skip-rules flag added to lint command, to ignore certain rules

Changed

  • CLI now reports errors and warnings for referenced ($ref) files

Removed

  • Configuration files were briefly available in 3.x but removed in v4.0
  • CLI --max-results flag is removed

Read more (including breaking changes in the blog post): https://stoplight.io/blog/spectral-v4/

spectral -

Published by stoplight-bot over 5 years ago

spectral - https://github.com/stoplightio/spectral/releases/tag/v4.0.0-beta.9

Published by stoplight-bot over 5 years ago

spectral -

Published by stoplight-bot over 5 years ago

spectral - https://github.com/stoplightio/spectral/releases/tag/v4.0.0-beta.7

Published by stoplight-bot over 5 years ago

spectral -

Published by stoplight-bot over 5 years ago

spectral -

Published by stoplight-bot over 5 years ago

spectral -

Published by stoplight-bot over 5 years ago

spectral - v3.1.0

Published by stoplight-bot over 5 years ago

3.1.0 (2019-06-17)

Features

spectral - v3.0.5

Published by stoplight-bot over 5 years ago

3.0.5 (2019-06-14)

Bug Fixes

  • pattern.ts: enable use of regex flags for pattern in ruleset files (#251) (e951347), closes #242 #242
spectral - v3.0.4

Published by stoplight-bot over 5 years ago

3.0.4 (2019-06-04)

Bug Fixes

  • escape dot in example.com match pattern (#246) (e2dcfa3)
spectral - v3.0.3

Published by stoplight-bot over 5 years ago

3.0.3 (2019-05-24)

Bug Fixes

spectral - v3.0.2

Published by stoplight-bot over 5 years ago

3.0.2 (2019-05-23)

Bug Fixes

spectral - v3.0.1

Published by stoplight-bot over 5 years ago

3.0.1 (2019-05-23)

Bug Fixes

  • Bump @stoplight/types from 5.1.2 to 7.0.1 (#224) (c4edd08)
spectral - v3.0.0

Published by stoplight-bot over 5 years ago

3.0.0 (2019-05-21)

Features

  • change string interpolation implementation (#220) (ec82732)
  • convert oas2 and 3 rulesets to json format and distribute for reuse SO-170 (5eec0b7)

BREAKING CHANGES

  • loading rulesets from ts file no longer works
  • must be loaded using rulesetReader
  • oas2/index.ts#rules() is async
Package Rankings
Top 1.02% on Npmjs.org
Top 24.92% on Repo1.maven.org
Top 8.17% on Proxy.golang.org
Top 36.01% on Pypi.org
Badges
Extracted from project README
Demo of Spectral linting an OpenAPI document from the CLI CircleCI npm Downloads Stoplight Forest
Related Projects