Skip to content

Releases: Hilzu/express-openapi-validate

v0.6.1

01 May 14:03
Compare
Choose a tag to compare
  • Feature #39: Add support for discriminator keyword
  • Fix #72: Don't throw an error for extra keywords defined in OAS

v0.6.0

28 Apr 13:57
Compare
Choose a tag to compare
  • breaking: Drop support for Node 10
  • breaking: validator.match() now throws an error if no matching route specification is found. For the old behaviour use match({ allowNoMatch: true })
  • breaking: Ajv was updated to v8 from v6. If you are passing in Ajv options there might be some changes. See Ajv migration guide for details

v0.5.1

18 Mar 09:19
Compare
Choose a tag to compare
  • fix: Remove yarn from engines so that the package can be installed with any yarn version
  • chore: Update dependencies

v0.5.0

27 Jan 12:04
Compare
Choose a tag to compare
  • Breaking: Drop support for Node 6 and 8 as they are end of life
  • Test with Node 12 and 13 to ensure compatability
  • Add new validator.match() function for automatic validator matching. By @codeclown 629e139
  • Upgrade all dependencies to fix known security issues

v0.4.4

24 Oct 10:18
Compare
Choose a tag to compare
  • Case insensitive header names in parameters. Thanks to @bemisguided for your contribution! b1359a1
  • Include source maps in the package for better debugging experience

v0.4.3

29 May 14:12
Compare
Choose a tag to compare

Fix compilation error when used with Typescript:

node_modules/express-openapi-validate/dist/OpenApiValidator.d.ts(2,8): error TS1192: Module '"node_modules/ajv/lib/ajv"' has no default export.

v0.4.2

29 May 12:51
Compare
Choose a tag to compare

Features:

Developing:

  • Support Windows in npm scripts and handle crlf line endings gracefully.

v0.4.1

10 Apr 11:22
Compare
Choose a tag to compare

Makes using the package with TypeScript easier.

  • Types are included in the package and are now found by tsc
  • Export the OpenApiDocument type that is needed by OpenApiValidator constructor

v0.4.0

06 Mar 12:47
Compare
Choose a tag to compare
  • Breaking: Use JSON Schema draft-04/05 to validate schemas. Previously draft-07 was used but OpenAPI specifies that its Schema Objects conform to the older version. Some schemas that were valid draft-07 schemas but invalid OpenAPI schemas might not work anymore.
  • Ability to debug schemas with the debug package. Set the DEBUG environment variable to express-openapi-validate or * and the used JSON schemas will be printed to the log.

v0.3.2

05 Mar 15:00
Compare
Choose a tag to compare
  • Add resources to npm package for the RunKit example to work