Skip to content

Releases: stoplightio/spectral

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

v1.1.1

04 Mar 15:52
06868a3
Compare
Choose a tag to compare

1.1.1 (2019-03-04)

Bug Fixes

  • force release with jsonpath dep updated (#96) (06868a3)

v1.1.0

21 Feb 04:14
c88ca75
Compare
Choose a tag to compare

1.1.0 (2019-02-21)

Bug Fixes

  • a typo and a probable cut-and-paste error (6aebc7d)
  • add operation-operationId-valid-in-url (#86) (dd46d06)
  • allow path-keys-no-trailing-slash empty slash (#85) (3f7af7d)

Features

v1.0.2

04 Feb 18:48
Compare
Choose a tag to compare

1.0.2 (2019-02-04)

Bug Fixes

  • a typo and a probable cut-and-paste error (5900c3a)
  • add operation-operationId-valid-in-url (#86) (e550cb6)
  • allow path-keys-no-trailing-slash empty slash (#85) (33a4a06)

v1.0.1

21 Dec 19:41
25af8de
Compare
Choose a tag to compare

1.0.1 (2018-12-21)

Bug Fixes

  • severity: default severity should be warning (#74) (11fa690)