goodeggs-json-schema-validator
Advanced tools
Comparing version 4.2.3 to 4.3.0
@@ -61,6 +61,9 @@ 'use strict'; | ||
module.exports.assertValid = function (data, schema, errorMessage) { | ||
var _ref = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : { banUnknownProperties: true }, | ||
banUnknownProperties = _ref.banUnknownProperties; | ||
(0, _assert2.default)((typeof schema === 'undefined' ? 'undefined' : _typeof(schema)) === 'object', 'schema must be an object'); | ||
if (errorMessage != null) (0, _assert2.default)(typeof errorMessage === 'string', 'errorMessage must be a string'); | ||
var _tv4$validateResult = _tv2.default.validateResult(data, schema, null, true), | ||
var _tv4$validateResult = _tv2.default.validateResult(data, schema, null, banUnknownProperties), | ||
valid = _tv4$validateResult.valid, | ||
@@ -67,0 +70,0 @@ error = _tv4$validateResult.error; |
{ | ||
"name": "goodeggs-json-schema-validator", | ||
"version": "4.2.3", | ||
"version": "4.3.0", | ||
"description": "Good Eggs JSON Schema Validator", | ||
@@ -5,0 +5,0 @@ "author": "Good Eggs <open-source@goodeggs.com>", |
Sorry, the diff of this file is not supported yet
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
6360
71