ajv-merge-patch
Advanced tools
Comparing version 2.0.2 to 2.1.0
@@ -23,3 +23,6 @@ 'use strict'; | ||
if (validate) return validate.schema; | ||
throw new Error('can\'t resolve reference ' + $ref + ' from id ' + it.baseId); | ||
var err = new Error('can\'t resolve reference ' + $ref + ' from id ' + it.baseId); | ||
err.missingRef = it.resolve.url(it.baseId, $ref); | ||
err.missingSchema = it.resolve.normalizeId(it.resolve.fullPath(err.missingRef)); | ||
throw err; | ||
} | ||
@@ -26,0 +29,0 @@ }, |
{ | ||
"name": "ajv-merge-patch", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "$merge and $patch keywords for Ajv JSON-Schema validator to extend schemas", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -40,5 +40,5 @@ 'use strict'; | ||
it('should extend schema defined in $ref', function() { | ||
ajvInstances.forEach(testMerge); | ||
ajvInstances.forEach(testPatch); | ||
function testMerge(ajv) { | ||
function testPatch(ajv) { | ||
var sourceSchema = { | ||
@@ -68,5 +68,5 @@ "id": "obj.json#", | ||
it('should extend schema defined with relative $ref', function() { | ||
ajvInstances.forEach(testMerge); | ||
ajvInstances.forEach(testPatch); | ||
function testMerge(ajv) { | ||
function testPatch(ajv) { | ||
var schema = { | ||
@@ -73,0 +73,0 @@ "id": "obj.json#", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20765
16
427