swagger-spec-validator
Advanced tools
Changelog
v4.0.0 (2019-11-03)
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.Uint8Array
in addition to
string
, Buffer
, and stream.Readable
types.url
option which allows specifying the validator URL separately from
any request options and (optionally) as a URL
object.pify
dependency with util.promisify
.