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-hor--help. - Only
index.js,cli.js, andpackage.jsonare 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, anderrproperties of theoptionsargument ofswagger-spec-validator/cli.jsare nowstdin,stdout, andstderrto matchprocessfor easier calling.
- Default values for the
argsandoptionsarguments ofswagger-spec-validator/cli.jsare no longer provided, due to lack of compelling use-case, to avoid ambiguity, and to reduce code. swagger-spec-validator/cli.jsno longer accepts a callback argument. It returns aPromisewith 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-Typeheader is now sent on every request (since it is now required byvalidator.swagger.ioandonline.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
Uint8Arrayin addition tostring,Buffer, andstream.Readabletypes. - New
urloption which allows specifying the validator URL separately from any request options and (optionally) as aURLobject. - Remove HTTPS workarounds for https://online.swagger.io which are no longer necessary (see swagger-api/validator-badge#98).
- Replace
pifydependency 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.