Releases: Hilzu/express-openapi-validate
Releases · Hilzu/express-openapi-validate
v0.6.1
v0.6.0
- breaking: Drop support for Node 10
- breaking:
validator.match()
now throws an error if no matching route specification is found. For the old behaviour usematch({ 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
v0.5.0
v0.4.4
v0.4.3
v0.4.2
Features:
- Support specifying parameters in path item object in addition to operation object: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#pathItemObject. These parameters are applied to all the operations (get, post, etc.) that are specified for a path with path parameters taking precedence. Thanks to @mochiya98 for the initial implementation!
Developing:
- Support Windows in npm scripts and handle crlf line endings gracefully.
v0.4.1
v0.4.0
- 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 toexpress-openapi-validate
or*
and the used JSON schemas will be printed to the log.