Ajv version 8 is released!
Ajv version 8 has these new features:
- support of JSON Schema draft-2020-12: prefixItems keyword and changed semantics of items keyword, dynamic recursive references.
- OpenAPI discriminator keyword.
- improved JSON Type Definition support:
- errors consistent with JTD specification.
- error objects with additional properties to simplify error handling
- internationalized error messages with ajv-i18n
- TypeScript: support type unions in JSONSchemaType
See release notes (opens new window) for the details.
To install the new version:
npm install ajv
See Getting started for code examples.