Skip to content

Commit

Permalink
Upgrade: ajv@^6.0.1, still using json schema draft 04 (#9856)
Browse files Browse the repository at this point in the history
* Upgrade: ajv@^6.0.1, still using json schema draft 04

* Upgrade: table@^4.0.3 (resolves peer dep warning)

* Chore: Using schemaId: "auto" instead of "id"

This retains compatibility with json schema draft-04 as well as draft-06 and draft-07. Previous setting unintentionally restricted compatibility to draft-04.
  • Loading branch information
platinumazure committed Apr 13, 2018
1 parent b77846d commit 7765fc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/util/ajv.js
Expand Up @@ -19,7 +19,8 @@ const ajv = new Ajv({
meta: false,
validateSchema: false,
missingRefs: "ignore",
verbose: true
verbose: true,
schemaId: "auto"
});

ajv.addMetaSchema(metaSchema);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -34,7 +34,7 @@
"homepage": "https://eslint.org",
"bugs": "https://github.com/eslint/eslint/issues/",
"dependencies": {
"ajv": "^5.3.0",
"ajv": "^6.0.1",
"babel-code-frame": "^6.26.0",
"chalk": "^2.1.0",
"concat-stream": "^1.6.2",
Expand Down Expand Up @@ -70,7 +70,7 @@
"semver": "^5.5.0",
"strip-ansi": "^4.0.0",
"strip-json-comments": "^2.0.1",
"table": "4.0.2",
"table": "^4.0.3",
"text-table": "^0.2.0"
},
"devDependencies": {
Expand Down

0 comments on commit 7765fc4

Please sign in to comment.