Skip to content

Releases: kevinoid/swagger-spec-validator

v5.0.0

17 Nov 03:26
v5.0.0
Compare
Choose a tag to compare

BREAKING CHANGES

  • Drop support for Node.js 15 and 14.17 and below.
  • The ? CLI option was dropped in favor of -h or --help.
  • Only index.js, cli.js, and package.json are exported from this package.
  • require('swagger-spec-validator/bin/swagger-spec-validator.js') has been renamed to require('swagger-spec-validator/cli.js').
  • The in, out, and err properties of the options argument of swagger-spec-validator/cli.js are now stdin, stdout, and stderr to match process for easier calling.
  • Default values for the args and options arguments of swagger-spec-validator/cli.js are no longer provided, due to lack of compelling use-case, to avoid ambiguity, and to reduce code.
  • swagger-spec-validator/cli.js no longer accepts a callback argument. It returns a Promise with exit code.

Features

  • Use commander instead of yargs for command-line parsing (2a7c9c8)
  • Switch from nyc to c8 for native V8 coverage collection (d72a313)
  • Set process.exitCode instead of calling process.exit() in cli.js (247de91)

v4.0.1

17 Nov 01:01
v4.0.1
Compare
Choose a tag to compare
  • Update yargs to ^15.0.1.

v4.0.0

17 Nov 01:01
v4.0.0
Compare
Choose a tag to compare
  • BREAKING Drop support for Node < 8.3.
  • Default to https://validator.swagger.io instead of https://online.swagger.io which is newer and described in the swagger-api/validator-badge README and supports OpenAPI Specification v3.
  • The Content-Type header is now sent on every request (since it is now required by validator.swagger.io and online.swagger.io). It is determined from caller (or command-line) options, or file extension, or file content (which requires buffering the document before sending), in that order.
  • Specification data may now be passed as Uint8Array in addition to string, Buffer, and stream.Readable types.
  • New url option which allows specifying the validator URL separately from any request options and (optionally) as a URL object.
  • Remove HTTPS workarounds for https://online.swagger.io which are no longer necessary (see swagger-api/validator-badge#98).
  • Replace pify dependency with util.promisify.
  • Dependency version updates.

v3.0.1

25 Jan 01:14
v3.0.1
Compare
Choose a tag to compare
  • Fix support for http://online.swagger.io (without HTTPS), when requested by callers.
  • Developmental dependency version updates.

v3.0.0

29 Jun 23:44
v3.0.0
Compare
Choose a tag to compare
  • BREAKING Drop support for Node < 6.
  • Dependency version updates.
  • Drop unnecessary dependencies.
  • Code style improvements.

v2.0.0

19 Apr 16:03
v2.0.0
Compare
Choose a tag to compare
  • Major: Drop support for Node v0.12. Require Node v4 or later.
  • Replace DigiCert intermediate+root certificates with GoDaddy, which is now the CA for https://online.swagger.io/ (#38)
  • Update dependency versions. Drop unnecessary dependencies.

v1.0.1

07 May 09:23
v1.0.1
Compare
Choose a tag to compare
  • Include DigiCert Global Root CA in package to fix SSL validation on Debian.

v1.0.0

16 Mar 19:42
v1.0.0
Compare
Choose a tag to compare
  • No API Changes Change to v1.0.0 is only a declaration of stability.
  • Dev dependency version updates.

v0.1.2

16 Mar 19:44
v0.1.2
Compare
Choose a tag to compare
  • Update dependency versions.

v0.1.1

13 Jan 08:43
v0.1.1
Compare
Choose a tag to compare
  • Removed unnecessary dependencies.
  • Improved error message formatting.
  • Improved tests.