Releases: stoplightio/spectral
Releases · stoplightio/spectral
v4.2.0-beta1
v4.2.0-beta1
v4.1.1
v4.1.0
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
andaddFunctions
have been deprecated, usesetRules
andsetFunctions
instead- Importing built-in ruleset in cjs/esm module way (via require or import) is no longer recommended. Consider using
#loadRuleset
instead
Fixed
v4.1.0-beta3
v4.1.0-beta3
v4.1.0-beta2
v4.1.0-beta2
v4.1.0-beta1
See #497 for more information on this beta.
v4.0.3
Released 4.0.3
v4.0.2
Release v4.0.2
v4.0.1
Fixed
- NPM install for Windows users was failing due to a dependency not supporting Windows in their build script
v4.0.0
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/