Skip to content

Releases: stoplightio/spectral

v4.2.0-beta1

07 Oct 21:13
a6fa344
Compare
Choose a tag to compare
v4.2.0-beta1 Pre-release
Pre-release

v4.2.0-beta1

v4.1.1

05 Sep 11:04
eaacd91
Compare
Choose a tag to compare

Fixed

CLI: missing tslib #524

v4.1.0

04 Sep 08:46
def474e
Compare
Choose a tag to compare

Added

  • Rulesets can be loaded using Spectral#loadRuleset method
  • Custom functions can be registered directly in rulesets
  • Rulesets can be registered against document format
  • New rules: no-$ref-siblings, oas2-anyOf, oas2-oneOf
  • YAML's merge keys are supported
  • $refs can be used in rulesets
  • Resolved document is accessible now if you use Spectral#runWithResolved method #398

Changed

  • valid-example rule has been broken into smaller, more specific rules #223
  • YAML scalar values are parsed according to YAML 1.2 spec #481
  • We swapped oclif with yargs

Deprecated

  • addRules and addFunctions have been deprecated, use setRules and setFunctions instead
  • Importing built-in ruleset in cjs/esm module way (via require or import) is no longer recommended. Consider using #loadRuleset instead

Fixed

  • CLI: relative paths to documents are supported #474
  • Improved path and ranges generation #458, #459
  • Unknown schema formats are no longer printed #396
  • Graceful handling of circular rulesets
  • A few other minor issues

v4.1.0-beta3

31 Aug 09:25
Compare
Choose a tag to compare
v4.1.0-beta3 Pre-release
Pre-release
v4.1.0-beta3

v4.1.0-beta2

29 Aug 09:41
Compare
Choose a tag to compare
v4.1.0-beta2 Pre-release
Pre-release
v4.1.0-beta2

v4.1.0-beta1

27 Aug 21:31
2a85491
Compare
Choose a tag to compare
v4.1.0-beta1 Pre-release
Pre-release

See #497 for more information on this beta.

v4.0.3

26 Aug 17:36
25ebbd7
Compare
Choose a tag to compare
Released 4.0.3

v4.0.2

31 Jul 17:53
b1efa84
Compare
Choose a tag to compare
Release v4.0.2

v4.0.1

16 Jul 14:31
87411e1
Compare
Choose a tag to compare

Fixed

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

v4.0.0

10 Jul 11:37
Compare
Choose a tag to compare

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/