Skip to content

Commit

Permalink
Merge pull request ajv-validator#25 from jstewmon/ajv-v6
Browse files Browse the repository at this point in the history
update peer dependency to ajv >= 6.0.0
  • Loading branch information
epoberezkin authored Jun 25, 2018
2 parents bc61807 + dc016fa commit 43c2a95
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion keywords/add_keyword.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = function (ajv, keyword, jsonPatch, patchSchema) {
}
}
},
{ "$ref": "http://json-schema.org/draft-06/schema#" }
{ "$ref": "http://json-schema.org/draft-07/schema#" }
]
},
"with": patchSchema
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"json-merge-patch": "^0.2.3"
},
"devDependencies": {
"ajv": "^5.0.0",
"ajv": "^6.5.1",
"coveralls": "^2.11.12",
"eslint": "^3.3.0",
"if-node-version": "^1.0.0",
Expand All @@ -46,6 +46,6 @@
"pre-commit": "^1.1.3"
},
"peerDependencies": {
"ajv": ">=5.0.0"
"ajv": ">=6.0.0"
}
}
6 changes: 3 additions & 3 deletions spec/merge.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('keyword $merge', function() {

function testMerge(ajv) {
var sourceSchema = {
"id": "obj.json#",
"$id": "obj.json#",
"type": "object",
"properties": { "p": { "type": "string" } },
"additionalProperties": false
Expand All @@ -68,7 +68,7 @@ describe('keyword $merge', function() {

function testMerge(ajv) {
var schema = {
"id": "obj.json#",
"$id": "obj.json#",
"definitions": {
"source": {
"type": "object",
Expand Down Expand Up @@ -133,7 +133,7 @@ describe('keyword $merge', function() {
ajv.addSchema(sourceSchema, "obj1.json#");

var schema = {
"id": "obj2.json#",
"$id": "obj2.json#",
"definitions": {
"patch":{
"type": "object",
Expand Down
4 changes: 2 additions & 2 deletions spec/patch.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('keyword $patch', function() {

function testPatch(ajv) {
var sourceSchema = {
"id": "obj.json#",
"$id": "obj.json#",
"type": "object",
"properties": { "p": { "type": "string" } },
"additionalProperties": false
Expand All @@ -68,7 +68,7 @@ describe('keyword $patch', function() {

function testPatch(ajv) {
var schema = {
"id": "obj.json#",
"$id": "obj.json#",
"definitions": {
"source": {
"type": "object",
Expand Down

0 comments on commit 43c2a95

Please sign in to comment.