](https://opensource.microsoft.com)
{{ data.tagline || $description || 'Welcome to your VuePress site' }}
{{ feature.details }}
←
{{ prev.title || prev.path }}
// Make sure to add code blocks to your code group
{{ getMsg() }}
](https://openjsf.org/blog/2020/08/14/ajv-joins-openjs-foundation-as-an-incubation-project/)
Ajv has been awarded a grant from Mozilla’s [Open Source Support (MOSS) program](https://www.mozilla.org/en-US/moss/) in the “Foundational Technology” track! It will sponsor the development of Ajv support of [JSON Schema version 2019-09](https://tools.ietf.org/html/draft-handrews-json-schema-02) and of [JSON Type Definition (RFC8927)](https://datatracker.ietf.org/doc/rfc8927/).
Ajv also joined [OpenJS Foundation](https://openjsf.org/) – having this support will help ensure the longevity and stability of Ajv for all its users.
This [blog post](https://www.poberezkin.com/posts/2020-08-14-ajv-json-validator-mozilla-open-source-grant-openjs-foundation.html) has more details.
I am looking for the long term maintainers of Ajv – working with [ReadySet](https://www.thereadyset.co/), also sponsored by Mozilla, to establish clear guidelines for the role of a "maintainer" and the contribution standards, and to encourage a wider, more inclusive, contribution from the community.
================================================
FILE: docs/news/2020-12-15-ajv-version-7-released.md
================================================
---
news: true
title: Ajv version 7 is released!
date: 2020-12-15
---
Ajv version 7 has these new features:
- support of JSON Schema draft-2019-09 features: unevaluatedProperties and unevaluatedItems, dynamic recursive references and other additional keywords.
- to reduce the mistakes in JSON schemas and unexpected validation results, strict mode is added - it prohibits ignored or ambiguous JSON Schema elements.
- to make code injection from untrusted schemas impossible, code generation is fully re-written to be safe and to allow code optimization (compiled schema code size is reduced by more than 10%).
- to simplify Ajv extensions, the new keyword API that is used by pre-defined keywords is available to user-defined keywords - it is much easier to define any keywords now, especially with subschemas. [ajv-keywords](https://github.com/ajv-validator/ajv-keywords) package was updated to use the new API (in [v4.0.0](https://github.com/ajv-validator/ajv-keywords/releases/tag/v4.0.0))
- schemas are compiled to ES6 code (ES5 code generation is also supported with an option).
- to improve reliability and maintainability the code is migrated to TypeScript.
**Please note**:
- the support for JSON-Schema draft-04 is removed - if you have schemas using "id" attributes you have to replace them with "\$id" (or continue using [Ajv v6](https://github.com/ajv-validator/ajv/tree/v6) that will be supported until 02/28/2021).
- all formats are separated to ajv-formats package - they have to be explicitly added if you use them.
See [release notes](https://github.com/ajv-validator/ajv/releases/tag/v7.0.0) for the details.
To install the new version:
```bash
npm install ajv
```
See [Getting started](/guide/getting-started.md) for code examples.
================================================
FILE: docs/news/2021-03-07-ajv-supports-json-type-definition.md
================================================
---
news: true
title: Ajv supports JSON Type Definition
date: 2021-03-07
---
JSON Type Definition (JTD) is a new specification for defining JSON structures that is very simple to use, comparing with JSON Schema, less error prone, and it is published as [RFC8927](https://datatracker.ietf.org/doc/rfc8927/).
See Choosing schema language for a detailed comparison between JSON Schema and JSON Type definition and informal specification.
In addition to validation, Ajv also supports:
- generation of [serializers](/api.html#jtd-serialize) and [parsers](/api.html#jtd-parse) from JTD schemas/ This is more efficient than native JSON serialization/parsing - you can combine JSON string parsing and validation in one function call.
- utility type [JTDSchemaType](/guide/typescript.html#utility-types-for-schemas) to convert your data type to the type of JTD schema and [JTDDataType](/guide/typescript.html#utility-type-for-jtd-data-type) to convert the type of schema to the type of data.
================================================
FILE: docs/news/2021-03-27-ajv-version-8-released.md
================================================
---
news: true
title: Ajv version 8 is released!
date: 2021-03-27
---
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](/packages/ajv-i18n)
- TypeScript: support type unions in [JSONSchemaType](/guide/typescript.html#type-safe-unions)
See [release notes](https://github.com/ajv-validator/ajv/releases/tag/v8.0.0) for the details.
To install the new version:
```bash
npm install ajv
```
See [Getting started](/guide/getting-started.md) for code examples.
================================================
FILE: docs/news/2021-04-24-ajv-online-event.md
================================================
---
news: true
title: "Ajv online event - May 20, 10am PT / 6pm UK"
date: 2021-04-24
more: false
---
We will talk about:
- new features of Ajv version 8.
- the improvements sponsored by Mozilla's MOSS grant.
- how Ajv is used in JavaScript applications.
Speakers:
- [Evgeny Poberezkin](https://github.com/epoberezkin), the creator of Ajv.
- [Mehan Jayasuriya](https://github.com/mehan), Program Officer at Mozilla Foundation, leading the [MOSS](https://www.mozilla.org/en-US/moss/) and other programs investing in the open source and community ecosystems.
- [Matteo Collina](https://github.com/mcollina), Technical Director at NearForm and Node.js Technical Steering Committee member, creator of Fastify web framework.
- [Kin Lane](https://github.com/kinlane), Chief Evangelist at Postman. Studying the tech, business & politics of APIs since 2010. Presidential Innovation Fellow during the Obama administration.
- [Ulysse Carion](https://github.com/ucarion), the creator of JSON Type Definition specification.
[Gajus Kuizinas](https://github.com/gajus) will host the event.
Please [register here](https://us02web.zoom.us/webinar/register/4216192074976/WN_erJ_t4ICTHOnGC1SOybNnw).
================================================
FILE: docs/news/2021-05-24-ajv-online-event-video.md
================================================
---
news: true
title: Ajv online event video uploaded
date: 2021-05-24
more: false
---
Huge thanks to everybody who joined, and to the speakers! The video of the event is [available on YouTube](https://www.youtube.com/watch?v=KxSKqXEBB7A).
================================================
FILE: docs/news/2021-07-22-ajv-microsoft-foss-fund-award.md
================================================
---
news: true
title: Microsoft FOSS award
date: 2021-07-22
more: false
---
Ajv was awarded a sponsorship from [Microsoft FOSS fund](https://github.com/microsoft/foss-fund/blob/main/README.md#2021) - huge thanks to Microsoft and the engineers who voted to support Ajv development.
This award will contribute to a long term maintenance of Ajv.
================================================
FILE: docs/news/README.md
================================================
---
newsIndex: true
editLink: false
---
# Ajv News