Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

@stoplight/spectral

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/spectral - npm Package Versions

rossmcd
published 5.5.0-beta7 •

rossmcd
published 5.5.0-beta6 •

rossmcd
published 5.5.0-beta5 •

rossmcd
published 5.5.0-beta4 •

rossmcd
published 5.5.0-beta3 •

rossmcd
published 5.5.0-beta2 •

rossmcd
published 5.5.0-beta1 •

rossmcd
published 5.4.0 •

Changelog

Source

[5.4.0] - 2020-05-27

Added

  • New AsyncAPI 2 ruleset and format #965
  • Custom functions can be async #694
  • Expose fetch and cache to custom functions #1078, #1079

Changed

  • Drop example-value-or-externalValue rule and introduce oas3-examples-value-or-externalValue #883, #1098
  • Drop useless oas rule tags #1095
  • AJV: swallow missing references #1147
  • Improve ruleset validation #1144
  • Allow running spectral from any directory in Docker #1022

Fixed

  • Improve oas2-schema and oas3-schema rules #403
  • path-params rule now properly detects undefined parameters across operations #1076
  • Load custom functions from NPM correctly #1093
  • Teach path-params to report an actual endpoint path #1130
rossmcd
published 5.4.0-beta1 •

rossmcd
published 5.3.0 •

Changelog

Source

[5.3.0] - 2020-04-02

Added

  • Built-in functions can now be accessed from custom functions #925
  • CLI: --show-unmatched-globs flag #747

Changed

  • typed-enum function is no longer a built-in function. It's been migrated into a custom function of the OpenAPI ruleset #924
  • openapi-tags rule has been fixed to make it fit its description #1038

Fixed

  • Ruleset exceptions used to slip certain errors through cracks #1018
  • Correct misleading info-license message #1031
  • Requiring packages located under node_modules is possible #1029
  • Set proper document source if legacy parsed result is given #1040