Skip to content

Releases: stoplightio/spectral

v2.1.0

25 Apr 10:34
3d305a0
Compare
Choose a tag to compare

2.1.0 (2019-04-25)

Features

v2.0.6

31 Mar 10:02
Compare
Choose a tag to compare

2.0.6 (2019-03-31)

Bug Fixes

v2.0.5

30 Mar 11:59
551ee3c
Compare
Choose a tag to compare

2.0.5 (2019-03-30)

Bug Fixes

  • correctly set unique id rule as an error (#119) (551ee3c)

v2.0.4

29 Mar 08:35
8c47f3d
Compare
Choose a tag to compare

2.0.4 (2019-03-29)

Bug Fixes

v2.0.3

28 Mar 18:47
44c4d5c
Compare
Choose a tag to compare

2.0.3 (2019-03-28)

Bug Fixes

v2.0.2

28 Mar 18:01
Compare
Choose a tag to compare

2.0.2 (2019-03-28)

Bug Fixes

v2.0.1

28 Mar 14:58
Compare
Choose a tag to compare

2.0.1 (2019-03-28)

Bug Fixes

  • build: package.json was not including all files (d588f62)

v2.0.0

28 Mar 14:12
Compare
Choose a tag to compare

2.0.0 (2019-03-28)

Features

  • Added a CLI for linting without needing to play with JavaScript (#105)
  • Use json-ref-parser by default to provide dereferenced object, (#99)
  • Add file paths and line numbers to results, used for CLI output (#106 & #117)
  • Show YAML parsing errors as results (#118)

BREAKING CHANGES

  • The spectral.run() method is now async, so add the await keyword before it
  • The spectral.run() method now returns an array of results, instead of an object containing an array
  • Removed schema-items-is-object rule (#100) (2e5902f)

Before

const resolved = someCustomResolver(specification);
const results = spectral.run(specification, { resolvedTarget: resolved });
console.log(results.results) // [ { ... } ]

After

const results = await spectral.run(specification);
console.log(results) // [ { ... } ]

This is a big simplification to the API, as it will resolve things for you (internal $ref only, so any $ref which is pointing to a location within the same file).

The ability to pass in other resolvers to support external references or other resolving strategies will come in future versions.

v1.2.0

15 Mar 14:01
3034df3
Compare
Choose a tag to compare

1.2.0 (2019-03-15)

Features

  • oas: check examples are valid against their schema (#101) (3034df3)

v1.1.2

11 Mar 17:35
98a860c
Compare
Choose a tag to compare

1.1.2 (2019-03-11)

Bug Fixes