File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
language : python
2
2
python : " 2.7"
3
- node_js : " 6 "
3
+ node_js : " 9 "
4
4
install :
5
5
- pip install tox
6
6
- npm install
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ const SKIP = {
27
27
if ( draft == 7 ) {
28
28
ajv = new Ajv ( { format : 'full' } ) ;
29
29
} else {
30
- ajv = new Ajv ( { format : 'full' , meta : false } ) ;
30
+ const schemaId = draft == 4 ? 'id' : '$id' ;
31
+ ajv = new Ajv ( { format : 'full' , meta : false , schemaId} ) ;
31
32
ajv . addMetaSchema ( require ( `ajv/lib/refs/json-schema-draft-0${ draft } .json` ) ) ;
32
33
ajv . _opts . defaultMeta = `http://json-schema.org/draft-0${ draft } /schema#` ;
33
34
}
Original file line number Diff line number Diff line change 21
21
},
22
22
"homepage" : " https://github.com/json-schema-org/JSON-Schema-Test-Suite#readme" ,
23
23
"devDependencies" : {
24
- "ajv" : " ^6.0.0-rc.0 " ,
24
+ "ajv" : " ^6.0.0-rc.1 " ,
25
25
"json-schema-test" : " ^2.0.0" ,
26
26
"mocha" : " ^3.2.0"
27
27
}
You can’t perform that action at this time.
0 commit comments