- Finally! Curveball v1. Only took 6 years.
- CommonJS support has been dropped. The previous version of this library supported both CommonJS and ESM. The effort of this no longer feels worth it. ESM is the future, so we're dropping CommonJS.
- Now requires Node 18.
- Upgraded to Typescript 5.3.
- This package now supports ESM and CommonJS modules.
- No longer supports Node 14. Please use Node 16 or higher.
- Upgraded from
@curveball/coreto@curveball/kernel.
- The plugin now creates a
.schemasand.ajvproperties onContext, to make it easy to access the ajv instance from other contexts.
- Add a
quietsetting to suppress all logging. (@defrex)
- Update all dependencies, fixing a potential upstream security bug in
json-pointer.
- Switch from
better-ajv-errorsto@stoplight/better-ajv-errors. The former no longer appears to be maintained.
- Add an option to not automatically add a HTTP Link header.
- Now an official Curveball package.
- Renamed from
@badgateway/schema-apito@curveball/validator. - Remove stateful API (
addSchemasForDir,schemaValidatefunctions).
- Fix validation method.
- Rewrote parts of the library to behave more like a middleware. The validator
can now be found in
ctx.request.validate(). - The middleware automatically creates a 'schema collection', mounted under
/schema, and also creates a link from the home document for easy discovery.
- Validator can now run more than once.
- Include 'ajv-formats'.
- Switch to JSON-Schema 2019-09 draft.
- Upgrade to Ajv 7
- Bug: Validation didn't work.
- Re-release of 0.0.2.
- First version