docs: draft-07
parent
19c8a967b8
commit
d97543f327
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Ajv: Another JSON Schema Validator
|
||||
|
||||
The fastest JSON Schema validator for Node.js and browser with draft 6 support.
|
||||
The fastest JSON Schema validator for Node.js and browser with draft-07 support.
|
||||
|
||||
|
||||
[![Build Status](https://travis-ci.org/epoberezkin/ajv.svg?branch=master)](https://travis-ci.org/epoberezkin/ajv)
|
||||
|
@ -20,11 +20,11 @@ The fastest JSON Schema validator for Node.js and browser with draft 6 support.
|
|||
|
||||
[Ajv version 6.0.0-beta.0](https://github.com/epoberezkin/ajv/releases/tag/6.0.0-beta.0) that supports draft-07 is released. It may require either migrating your schemas or updating your code (to continue using draft-04 and v5 schemas, draft-06 schemas will be supported without changes).
|
||||
|
||||
__Please note__: To use Ajv with draft-04 (or draft-06) schemas you need to explicitly add meta-schema to the validator instance:
|
||||
__Please note__: To use Ajv with draft-06 (or draft-04) schemas you need to explicitly add the meta-schema(s) to the validator instance:
|
||||
|
||||
```javascript
|
||||
ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-04.json'));
|
||||
// ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'));
|
||||
ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'));
|
||||
// ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-04.json'));
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue