json-schema-merge-allof
Advanced tools
Comparing version 0.5.3 to 0.5.4
{ | ||
"name": "json-schema-merge-allof", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"description": "Simplify your schema by combining allOf into the root schema, safely.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -26,3 +26,3 @@ var cloneDeep = require('lodash/cloneDeep') | ||
var isTrue = (val) => val === true | ||
var schemaResolver = (compacted, key, mergeSchemas, totalSchemas, parent) => mergeSchemas(compacted, compacted[0]) | ||
var schemaResolver = (compacted, key, mergeSchemas) => mergeSchemas(compacted) | ||
var stringArray = (values) => sortBy(uniq(flattenDeep(values))) | ||
@@ -394,3 +394,2 @@ var notUndefined = (val) => val !== undefined | ||
defaultResolvers.exclusiveMinimum = maximumValue | ||
defaultResolvers.first = first | ||
defaultResolvers.maximum = minimumValue | ||
@@ -479,3 +478,2 @@ defaultResolvers.maxItems = minimumValue | ||
// TODO check if addToAllOf was called or not, and throw if undefined returnvalue and not called | ||
if (merged[key] === undefined && !calledWithArray) { | ||
@@ -482,0 +480,0 @@ throwIncompatible(compacted, key) |
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
82958
17
3096