Releases: kevinoid/swagger-spec-validator
Releases · kevinoid/swagger-spec-validator
v5.0.0
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
, andpackage.json
are exported from this package. require('swagger-spec-validator/bin/swagger-spec-validator.js')
has been renamed torequire('swagger-spec-validator/cli.js')
.- The
in
,out
, anderr
properties of theoptions
argument ofswagger-spec-validator/cli.js
are nowstdin
,stdout
, andstderr
to matchprocess
for easier calling.
- Default values for the
args
andoptions
arguments ofswagger-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 aPromise
with exit code.
Features
v4.0.1
v4.0.0
- 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 byvalidator.swagger.io
andonline.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 tostring
,Buffer
, andstream.Readable
types. - New
url
option which allows specifying the validator URL separately from any request options and (optionally) as aURL
object. - Remove HTTPS workarounds for https://online.swagger.io which are no longer necessary (see swagger-api/validator-badge#98).
- Replace
pify
dependency withutil.promisify
. - Dependency version updates.
v3.0.1
- Fix support for http://online.swagger.io (without HTTPS), when requested by callers.
- Developmental dependency version updates.