json-schema-merge-allof
Advanced tools
Comparing version 0.5.0 to 0.5.1
{ | ||
"name": "json-schema-merge-allof", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Simplify your schema by combining allOf into the root schema, safely.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -1,2 +0,1 @@ | ||
var Ajv = require('ajv') | ||
var cloneDeep = require('lodash/cloneDeep') | ||
@@ -431,3 +430,2 @@ var compare = require('json-schema-compare') | ||
totalSchemas = totalSchemas || [] | ||
var ajv = new Ajv() | ||
options = defaults(options, { | ||
@@ -568,15 +566,2 @@ ignoreAdditionalProperties: false, | ||
// TODO consider having this here as a feature or just while developing | ||
try { | ||
var isValid = ajv.validateSchema(merged) | ||
if (!isValid) { | ||
throw new Error('Schema returned by resolver isn\'t valid.') | ||
} | ||
} catch (e) { | ||
if (!/stack/i.test(e.message)) { | ||
throw e | ||
} | ||
} | ||
return merged | ||
@@ -583,0 +568,0 @@ } |
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
83476
3118