z-schema 3.20.0 → 3.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8926,7 +8926,7 @@ http.METHODS = [
8926
8926
  'UNSUBSCRIBE'
8927
8927
  ]
8928
8928
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
8929
- },{"./lib/request":32,"./lib/response":33,"builtin-status-codes":4,"url":36,"xtend":110}],31:[function(require,module,exports){
8929
+ },{"./lib/request":32,"./lib/response":33,"builtin-status-codes":4,"url":36,"xtend":112}],31:[function(require,module,exports){
8930
8930
  (function (global){
8931
8931
  exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableStream)
8932
8932
 
@@ -9063,6 +9063,7 @@ var ClientRequest = module.exports = function (opts) {
9063
9063
  throw new Error('Invalid value for opts.mode')
9064
9064
  }
9065
9065
  self._mode = decideMode(preferBinary, useFetch)
9066
+ self._fetchTimer = null
9066
9067
 
9067
9068
  self.on('finish', function () {
9068
9069
  self._onFinish()
@@ -9138,13 +9139,14 @@ ClientRequest.prototype._onFinish = function () {
9138
9139
 
9139
9140
  if (self._mode === 'fetch') {
9140
9141
  var signal = null
9142
+ var fetchTimer = null
9141
9143
  if (capability.abortController) {
9142
9144
  var controller = new AbortController()
9143
9145
  signal = controller.signal
9144
9146
  self._fetchAbortController = controller
9145
9147
 
9146
9148
  if ('requestTimeout' in opts && opts.requestTimeout !== 0) {
9147
- global.setTimeout(function () {
9149
+ self._fetchTimer = global.setTimeout(function () {
9148
9150
  self.emit('requestTimeout')
9149
9151
  if (self._fetchAbortController)
9150
9152
  self._fetchAbortController.abort()
@@ -9163,7 +9165,9 @@ ClientRequest.prototype._onFinish = function () {
9163
9165
  self._fetchResponse = response
9164
9166
  self._connect()
9165
9167
  }, function (reason) {
9166
- self.emit('error', reason)
9168
+ global.clearTimeout(self._fetchTimer)
9169
+ if (!self._destroyed)
9170
+ self.emit('error', reason)
9167
9171
  })
9168
9172
  } else {
9169
9173
  var xhr = self._xhr = new global.XMLHttpRequest()
@@ -9263,7 +9267,7 @@ ClientRequest.prototype._connect = function () {
9263
9267
  if (self._destroyed)
9264
9268
  return
9265
9269
 
9266
- self._response = new IncomingMessage(self._xhr, self._fetchResponse, self._mode)
9270
+ self._response = new IncomingMessage(self._xhr, self._fetchResponse, self._mode, self._fetchTimer)
9267
9271
  self._response.on('error', function(err) {
9268
9272
  self.emit('error', err)
9269
9273
  })
@@ -9281,6 +9285,7 @@ ClientRequest.prototype._write = function (chunk, encoding, cb) {
9281
9285
  ClientRequest.prototype.abort = ClientRequest.prototype.destroy = function () {
9282
9286
  var self = this
9283
9287
  self._destroyed = true
9288
+ global.clearTimeout(self._fetchTimer)
9284
9289
  if (self._response)
9285
9290
  self._response._destroyed = true
9286
9291
  if (self._xhr)
@@ -9344,7 +9349,7 @@ var rStates = exports.readyStates = {
9344
9349
  DONE: 4
9345
9350
  }
9346
9351
 
9347
- var IncomingMessage = exports.IncomingMessage = function (xhr, response, mode) {
9352
+ var IncomingMessage = exports.IncomingMessage = function (xhr, response, mode, fetchTimer) {
9348
9353
  var self = this
9349
9354
  stream.Readable.call(self)
9350
9355
 
@@ -9379,7 +9384,7 @@ var IncomingMessage = exports.IncomingMessage = function (xhr, response, mode) {
9379
9384
  write: function (chunk) {
9380
9385
  return new Promise(function (resolve, reject) {
9381
9386
  if (self._destroyed) {
9382
- return
9387
+ reject()
9383
9388
  } else if(self.push(new Buffer(chunk))) {
9384
9389
  resolve()
9385
9390
  } else {
@@ -9388,6 +9393,7 @@ var IncomingMessage = exports.IncomingMessage = function (xhr, response, mode) {
9388
9393
  })
9389
9394
  },
9390
9395
  close: function () {
9396
+ global.clearTimeout(fetchTimer)
9391
9397
  if (!self._destroyed)
9392
9398
  self.push(null)
9393
9399
  },
@@ -9398,7 +9404,11 @@ var IncomingMessage = exports.IncomingMessage = function (xhr, response, mode) {
9398
9404
  })
9399
9405
 
9400
9406
  try {
9401
- response.body.pipeTo(writable)
9407
+ response.body.pipeTo(writable).catch(function (err) {
9408
+ global.clearTimeout(fetchTimer)
9409
+ if (!self._destroyed)
9410
+ self.emit('error', err)
9411
+ })
9402
9412
  return
9403
9413
  } catch (e) {} // pipeTo method isn't defined. Can't find a better way to feature test this
9404
9414
  }
@@ -9409,12 +9419,14 @@ var IncomingMessage = exports.IncomingMessage = function (xhr, response, mode) {
9409
9419
  if (self._destroyed)
9410
9420
  return
9411
9421
  if (result.done) {
9422
+ global.clearTimeout(fetchTimer)
9412
9423
  self.push(null)
9413
9424
  return
9414
9425
  }
9415
9426
  self.push(new Buffer(result.value))
9416
9427
  read()
9417
- }).catch(function(err) {
9428
+ }).catch(function (err) {
9429
+ global.clearTimeout(fetchTimer)
9418
9430
  if (!self._destroyed)
9419
9431
  self.emit('error', err)
9420
9432
  })
@@ -10907,10 +10919,18 @@ var _isISO = require('./lib/isISO8601');
10907
10919
 
10908
10920
  var _isISO2 = _interopRequireDefault(_isISO);
10909
10921
 
10922
+ var _isRFC = require('./lib/isRFC3339');
10923
+
10924
+ var _isRFC2 = _interopRequireDefault(_isRFC);
10925
+
10910
10926
  var _isISO31661Alpha = require('./lib/isISO31661Alpha2');
10911
10927
 
10912
10928
  var _isISO31661Alpha2 = _interopRequireDefault(_isISO31661Alpha);
10913
10929
 
10930
+ var _isISO31661Alpha3 = require('./lib/isISO31661Alpha3');
10931
+
10932
+ var _isISO31661Alpha4 = _interopRequireDefault(_isISO31661Alpha3);
10933
+
10914
10934
  var _isBase = require('./lib/isBase64');
10915
10935
 
10916
10936
  var _isBase2 = _interopRequireDefault(_isBase);
@@ -10977,7 +10997,7 @@ var _toString2 = _interopRequireDefault(_toString);
10977
10997
 
10978
10998
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10979
10999
 
10980
- var version = '9.4.1';
11000
+ var version = '10.2.0';
10981
11001
 
10982
11002
  var validator = {
10983
11003
  version: version,
@@ -11030,9 +11050,12 @@ var validator = {
11030
11050
  isISSN: _isISSN2.default,
11031
11051
  isMobilePhone: _isMobilePhone2.default,
11032
11052
  isPostalCode: _isPostalCode2.default,
11053
+ isPostalCodeLocales: _isPostalCode.locales,
11033
11054
  isCurrency: _isCurrency2.default,
11034
11055
  isISO8601: _isISO2.default,
11056
+ isRFC3339: _isRFC2.default,
11035
11057
  isISO31661Alpha2: _isISO31661Alpha2.default,
11058
+ isISO31661Alpha3: _isISO31661Alpha4.default,
11036
11059
  isBase64: _isBase2.default,
11037
11060
  isDataURI: _isDataURI2.default,
11038
11061
  isMimeType: _isMimeType2.default,
@@ -11052,7 +11075,7 @@ var validator = {
11052
11075
 
11053
11076
  exports.default = validator;
11054
11077
  module.exports = exports['default'];
11055
- },{"./lib/blacklist":41,"./lib/contains":42,"./lib/equals":43,"./lib/escape":44,"./lib/isAfter":45,"./lib/isAlpha":46,"./lib/isAlphanumeric":47,"./lib/isAscii":48,"./lib/isBase64":49,"./lib/isBefore":50,"./lib/isBoolean":51,"./lib/isByteLength":52,"./lib/isCreditCard":53,"./lib/isCurrency":54,"./lib/isDataURI":55,"./lib/isDecimal":56,"./lib/isDivisibleBy":57,"./lib/isEmail":58,"./lib/isEmpty":59,"./lib/isFQDN":60,"./lib/isFloat":61,"./lib/isFullWidth":62,"./lib/isHalfWidth":63,"./lib/isHash":64,"./lib/isHexColor":65,"./lib/isHexadecimal":66,"./lib/isIP":67,"./lib/isISBN":68,"./lib/isISIN":69,"./lib/isISO31661Alpha2":70,"./lib/isISO8601":71,"./lib/isISRC":72,"./lib/isISSN":73,"./lib/isIn":74,"./lib/isInt":75,"./lib/isJSON":76,"./lib/isLatLong":77,"./lib/isLength":78,"./lib/isLowercase":79,"./lib/isMACAddress":80,"./lib/isMD5":81,"./lib/isMimeType":82,"./lib/isMobilePhone":83,"./lib/isMongoId":84,"./lib/isMultibyte":85,"./lib/isNumeric":86,"./lib/isPort":87,"./lib/isPostalCode":88,"./lib/isSurrogatePair":89,"./lib/isURL":90,"./lib/isUUID":91,"./lib/isUppercase":92,"./lib/isVariableWidth":93,"./lib/isWhitelisted":94,"./lib/ltrim":95,"./lib/matches":96,"./lib/normalizeEmail":97,"./lib/rtrim":98,"./lib/stripLow":99,"./lib/toBoolean":100,"./lib/toDate":101,"./lib/toFloat":102,"./lib/toInt":103,"./lib/trim":104,"./lib/unescape":105,"./lib/util/toString":108,"./lib/whitelist":109}],40:[function(require,module,exports){
11078
+ },{"./lib/blacklist":41,"./lib/contains":42,"./lib/equals":43,"./lib/escape":44,"./lib/isAfter":45,"./lib/isAlpha":46,"./lib/isAlphanumeric":47,"./lib/isAscii":48,"./lib/isBase64":49,"./lib/isBefore":50,"./lib/isBoolean":51,"./lib/isByteLength":52,"./lib/isCreditCard":53,"./lib/isCurrency":54,"./lib/isDataURI":55,"./lib/isDecimal":56,"./lib/isDivisibleBy":57,"./lib/isEmail":58,"./lib/isEmpty":59,"./lib/isFQDN":60,"./lib/isFloat":61,"./lib/isFullWidth":62,"./lib/isHalfWidth":63,"./lib/isHash":64,"./lib/isHexColor":65,"./lib/isHexadecimal":66,"./lib/isIP":67,"./lib/isISBN":68,"./lib/isISIN":69,"./lib/isISO31661Alpha2":70,"./lib/isISO31661Alpha3":71,"./lib/isISO8601":72,"./lib/isISRC":73,"./lib/isISSN":74,"./lib/isIn":75,"./lib/isInt":76,"./lib/isJSON":77,"./lib/isLatLong":78,"./lib/isLength":79,"./lib/isLowercase":80,"./lib/isMACAddress":81,"./lib/isMD5":82,"./lib/isMimeType":83,"./lib/isMobilePhone":84,"./lib/isMongoId":85,"./lib/isMultibyte":86,"./lib/isNumeric":87,"./lib/isPort":88,"./lib/isPostalCode":89,"./lib/isRFC3339":90,"./lib/isSurrogatePair":91,"./lib/isURL":92,"./lib/isUUID":93,"./lib/isUppercase":94,"./lib/isVariableWidth":95,"./lib/isWhitelisted":96,"./lib/ltrim":97,"./lib/matches":98,"./lib/normalizeEmail":99,"./lib/rtrim":100,"./lib/stripLow":101,"./lib/toBoolean":102,"./lib/toDate":103,"./lib/toFloat":104,"./lib/toInt":105,"./lib/trim":106,"./lib/unescape":107,"./lib/util/toString":110,"./lib/whitelist":111}],40:[function(require,module,exports){
11056
11079
  'use strict';
11057
11080
 
11058
11081
  Object.defineProperty(exports, "__esModule", {
@@ -11168,7 +11191,7 @@ function blacklist(str, chars) {
11168
11191
  return str.replace(new RegExp('[' + chars + ']+', 'g'), '');
11169
11192
  }
11170
11193
  module.exports = exports['default'];
11171
- },{"./util/assertString":106}],42:[function(require,module,exports){
11194
+ },{"./util/assertString":108}],42:[function(require,module,exports){
11172
11195
  'use strict';
11173
11196
 
11174
11197
  Object.defineProperty(exports, "__esModule", {
@@ -11191,7 +11214,7 @@ function contains(str, elem) {
11191
11214
  return str.indexOf((0, _toString2.default)(elem)) >= 0;
11192
11215
  }
11193
11216
  module.exports = exports['default'];
11194
- },{"./util/assertString":106,"./util/toString":108}],43:[function(require,module,exports){
11217
+ },{"./util/assertString":108,"./util/toString":110}],43:[function(require,module,exports){
11195
11218
  'use strict';
11196
11219
 
11197
11220
  Object.defineProperty(exports, "__esModule", {
@@ -11210,7 +11233,7 @@ function equals(str, comparison) {
11210
11233
  return str === comparison;
11211
11234
  }
11212
11235
  module.exports = exports['default'];
11213
- },{"./util/assertString":106}],44:[function(require,module,exports){
11236
+ },{"./util/assertString":108}],44:[function(require,module,exports){
11214
11237
  'use strict';
11215
11238
 
11216
11239
  Object.defineProperty(exports, "__esModule", {
@@ -11229,7 +11252,7 @@ function escape(str) {
11229
11252
  return str.replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#x27;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\//g, '&#x2F;').replace(/\\/g, '&#x5C;').replace(/`/g, '&#96;');
11230
11253
  }
11231
11254
  module.exports = exports['default'];
11232
- },{"./util/assertString":106}],45:[function(require,module,exports){
11255
+ },{"./util/assertString":108}],45:[function(require,module,exports){
11233
11256
  'use strict';
11234
11257
 
11235
11258
  Object.defineProperty(exports, "__esModule", {
@@ -11256,7 +11279,7 @@ function isAfter(str) {
11256
11279
  return !!(original && comparison && original > comparison);
11257
11280
  }
11258
11281
  module.exports = exports['default'];
11259
- },{"./toDate":101,"./util/assertString":106}],46:[function(require,module,exports){
11282
+ },{"./toDate":103,"./util/assertString":108}],46:[function(require,module,exports){
11260
11283
  'use strict';
11261
11284
 
11262
11285
  Object.defineProperty(exports, "__esModule", {
@@ -11282,7 +11305,7 @@ function isAlpha(str) {
11282
11305
  throw new Error('Invalid locale \'' + locale + '\'');
11283
11306
  }
11284
11307
  module.exports = exports['default'];
11285
- },{"./alpha":40,"./util/assertString":106}],47:[function(require,module,exports){
11308
+ },{"./alpha":40,"./util/assertString":108}],47:[function(require,module,exports){
11286
11309
  'use strict';
11287
11310
 
11288
11311
  Object.defineProperty(exports, "__esModule", {
@@ -11308,7 +11331,7 @@ function isAlphanumeric(str) {
11308
11331
  throw new Error('Invalid locale \'' + locale + '\'');
11309
11332
  }
11310
11333
  module.exports = exports['default'];
11311
- },{"./alpha":40,"./util/assertString":106}],48:[function(require,module,exports){
11334
+ },{"./alpha":40,"./util/assertString":108}],48:[function(require,module,exports){
11312
11335
  'use strict';
11313
11336
 
11314
11337
  Object.defineProperty(exports, "__esModule", {
@@ -11331,7 +11354,7 @@ function isAscii(str) {
11331
11354
  return ascii.test(str);
11332
11355
  }
11333
11356
  module.exports = exports['default'];
11334
- },{"./util/assertString":106}],49:[function(require,module,exports){
11357
+ },{"./util/assertString":108}],49:[function(require,module,exports){
11335
11358
  'use strict';
11336
11359
 
11337
11360
  Object.defineProperty(exports, "__esModule", {
@@ -11357,7 +11380,7 @@ function isBase64(str) {
11357
11380
  return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && str[len - 1] === '=';
11358
11381
  }
11359
11382
  module.exports = exports['default'];
11360
- },{"./util/assertString":106}],50:[function(require,module,exports){
11383
+ },{"./util/assertString":108}],50:[function(require,module,exports){
11361
11384
  'use strict';
11362
11385
 
11363
11386
  Object.defineProperty(exports, "__esModule", {
@@ -11384,7 +11407,7 @@ function isBefore(str) {
11384
11407
  return !!(original && comparison && original < comparison);
11385
11408
  }
11386
11409
  module.exports = exports['default'];
11387
- },{"./toDate":101,"./util/assertString":106}],51:[function(require,module,exports){
11410
+ },{"./toDate":103,"./util/assertString":108}],51:[function(require,module,exports){
11388
11411
  'use strict';
11389
11412
 
11390
11413
  Object.defineProperty(exports, "__esModule", {
@@ -11403,7 +11426,7 @@ function isBoolean(str) {
11403
11426
  return ['true', 'false', '1', '0'].indexOf(str) >= 0;
11404
11427
  }
11405
11428
  module.exports = exports['default'];
11406
- },{"./util/assertString":106}],52:[function(require,module,exports){
11429
+ },{"./util/assertString":108}],52:[function(require,module,exports){
11407
11430
  'use strict';
11408
11431
 
11409
11432
  Object.defineProperty(exports, "__esModule", {
@@ -11437,7 +11460,7 @@ function isByteLength(str, options) {
11437
11460
  return len >= min && (typeof max === 'undefined' || len <= max);
11438
11461
  }
11439
11462
  module.exports = exports['default'];
11440
- },{"./util/assertString":106}],53:[function(require,module,exports){
11463
+ },{"./util/assertString":108}],53:[function(require,module,exports){
11441
11464
  'use strict';
11442
11465
 
11443
11466
  Object.defineProperty(exports, "__esModule", {
@@ -11452,7 +11475,7 @@ var _assertString2 = _interopRequireDefault(_assertString);
11452
11475
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11453
11476
 
11454
11477
  /* eslint-disable max-len */
11455
- var creditCard = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|62[0-9]{14})$/;
11478
+ var creditCard = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14})$/;
11456
11479
  /* eslint-enable max-len */
11457
11480
 
11458
11481
  function isCreditCard(str) {
@@ -11483,7 +11506,7 @@ function isCreditCard(str) {
11483
11506
  return !!(sum % 10 === 0 ? sanitized : false);
11484
11507
  }
11485
11508
  module.exports = exports['default'];
11486
- },{"./util/assertString":106}],54:[function(require,module,exports){
11509
+ },{"./util/assertString":108}],54:[function(require,module,exports){
11487
11510
  'use strict';
11488
11511
 
11489
11512
  Object.defineProperty(exports, "__esModule", {
@@ -11576,7 +11599,7 @@ function isCurrency(str, options) {
11576
11599
  return currencyRegex(options).test(str);
11577
11600
  }
11578
11601
  module.exports = exports['default'];
11579
- },{"./util/assertString":106,"./util/merge":107}],55:[function(require,module,exports){
11602
+ },{"./util/assertString":108,"./util/merge":109}],55:[function(require,module,exports){
11580
11603
  'use strict';
11581
11604
 
11582
11605
  Object.defineProperty(exports, "__esModule", {
@@ -11626,7 +11649,7 @@ function isDataURI(str) {
11626
11649
  return true;
11627
11650
  }
11628
11651
  module.exports = exports['default'];
11629
- },{"./util/assertString":106}],56:[function(require,module,exports){
11652
+ },{"./util/assertString":108}],56:[function(require,module,exports){
11630
11653
  'use strict';
11631
11654
 
11632
11655
  Object.defineProperty(exports, "__esModule", {
@@ -11668,7 +11691,7 @@ function isDecimal(str, options) {
11668
11691
  throw new Error('Invalid locale \'' + options.locale + '\'');
11669
11692
  }
11670
11693
  module.exports = exports['default'];
11671
- },{"./alpha":40,"./util/assertString":106,"./util/merge":107}],57:[function(require,module,exports){
11694
+ },{"./alpha":40,"./util/assertString":108,"./util/merge":109}],57:[function(require,module,exports){
11672
11695
  'use strict';
11673
11696
 
11674
11697
  Object.defineProperty(exports, "__esModule", {
@@ -11691,7 +11714,7 @@ function isDivisibleBy(str, num) {
11691
11714
  return (0, _toFloat2.default)(str) % parseInt(num, 10) === 0;
11692
11715
  }
11693
11716
  module.exports = exports['default'];
11694
- },{"./toFloat":102,"./util/assertString":106}],58:[function(require,module,exports){
11717
+ },{"./toFloat":104,"./util/assertString":108}],58:[function(require,module,exports){
11695
11718
  'use strict';
11696
11719
 
11697
11720
  Object.defineProperty(exports, "__esModule", {
@@ -11752,8 +11775,16 @@ function isEmail(str, options) {
11752
11775
  var user = parts.join('@');
11753
11776
 
11754
11777
  var lower_domain = domain.toLowerCase();
11778
+
11755
11779
  if (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com') {
11756
- user = user.replace(/\./g, '').toLowerCase();
11780
+ /*
11781
+ Previously we removed dots for gmail addresses before validating.
11782
+ This was removed because it allows `multiple..dots@gmail.com`
11783
+ to be reported as valid, but it is not.
11784
+ Gmail only normalizes single dots, removing them from here is pointless,
11785
+ should be done in normalizeEmail
11786
+ */
11787
+ user = user.toLowerCase();
11757
11788
  }
11758
11789
 
11759
11790
  if (!(0, _isByteLength2.default)(user, { max: 64 }) || !(0, _isByteLength2.default)(domain, { max: 254 })) {
@@ -11781,7 +11812,7 @@ function isEmail(str, options) {
11781
11812
  return true;
11782
11813
  }
11783
11814
  module.exports = exports['default'];
11784
- },{"./isByteLength":52,"./isFQDN":60,"./util/assertString":106,"./util/merge":107}],59:[function(require,module,exports){
11815
+ },{"./isByteLength":52,"./isFQDN":60,"./util/assertString":108,"./util/merge":109}],59:[function(require,module,exports){
11785
11816
  'use strict';
11786
11817
 
11787
11818
  Object.defineProperty(exports, "__esModule", {
@@ -11800,7 +11831,7 @@ function isEmpty(str) {
11800
11831
  return str.length === 0;
11801
11832
  }
11802
11833
  module.exports = exports['default'];
11803
- },{"./util/assertString":106}],60:[function(require,module,exports){
11834
+ },{"./util/assertString":108}],60:[function(require,module,exports){
11804
11835
  'use strict';
11805
11836
 
11806
11837
  Object.defineProperty(exports, "__esModule", {
@@ -11833,6 +11864,11 @@ function isFQDN(str, options) {
11833
11864
  str = str.substring(0, str.length - 1);
11834
11865
  }
11835
11866
  var parts = str.split('.');
11867
+ for (var i = 0; i < parts.length; i++) {
11868
+ if (parts[i].length > 63) {
11869
+ return false;
11870
+ }
11871
+ }
11836
11872
  if (options.require_tld) {
11837
11873
  var tld = parts.pop();
11838
11874
  if (!parts.length || !/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {
@@ -11843,8 +11879,8 @@ function isFQDN(str, options) {
11843
11879
  return false;
11844
11880
  }
11845
11881
  }
11846
- for (var part, i = 0; i < parts.length; i++) {
11847
- part = parts[i];
11882
+ for (var part, _i = 0; _i < parts.length; _i++) {
11883
+ part = parts[_i];
11848
11884
  if (options.allow_underscores) {
11849
11885
  part = part.replace(/_/g, '');
11850
11886
  }
@@ -11862,7 +11898,7 @@ function isFQDN(str, options) {
11862
11898
  return true;
11863
11899
  }
11864
11900
  module.exports = exports['default'];
11865
- },{"./util/assertString":106,"./util/merge":107}],61:[function(require,module,exports){
11901
+ },{"./util/assertString":108,"./util/merge":109}],61:[function(require,module,exports){
11866
11902
  'use strict';
11867
11903
 
11868
11904
  Object.defineProperty(exports, "__esModule", {
@@ -11885,10 +11921,11 @@ function isFloat(str, options) {
11885
11921
  if (str === '' || str === '.' || str === '-' || str === '+') {
11886
11922
  return false;
11887
11923
  }
11888
- return float.test(str) && (!options.hasOwnProperty('min') || str >= options.min) && (!options.hasOwnProperty('max') || str <= options.max) && (!options.hasOwnProperty('lt') || str < options.lt) && (!options.hasOwnProperty('gt') || str > options.gt);
11924
+ var value = parseFloat(str.replace(',', '.'));
11925
+ return float.test(str) && (!options.hasOwnProperty('min') || value >= options.min) && (!options.hasOwnProperty('max') || value <= options.max) && (!options.hasOwnProperty('lt') || value < options.lt) && (!options.hasOwnProperty('gt') || value > options.gt);
11889
11926
  }
11890
11927
  module.exports = exports['default'];
11891
- },{"./alpha":40,"./util/assertString":106}],62:[function(require,module,exports){
11928
+ },{"./alpha":40,"./util/assertString":108}],62:[function(require,module,exports){
11892
11929
  'use strict';
11893
11930
 
11894
11931
  Object.defineProperty(exports, "__esModule", {
@@ -11909,7 +11946,7 @@ function isFullWidth(str) {
11909
11946
  (0, _assertString2.default)(str);
11910
11947
  return fullWidth.test(str);
11911
11948
  }
11912
- },{"./util/assertString":106}],63:[function(require,module,exports){
11949
+ },{"./util/assertString":108}],63:[function(require,module,exports){
11913
11950
  'use strict';
11914
11951
 
11915
11952
  Object.defineProperty(exports, "__esModule", {
@@ -11930,7 +11967,7 @@ function isHalfWidth(str) {
11930
11967
  (0, _assertString2.default)(str);
11931
11968
  return halfWidth.test(str);
11932
11969
  }
11933
- },{"./util/assertString":106}],64:[function(require,module,exports){
11970
+ },{"./util/assertString":108}],64:[function(require,module,exports){
11934
11971
  'use strict';
11935
11972
 
11936
11973
  Object.defineProperty(exports, "__esModule", {
@@ -11966,7 +12003,7 @@ function isHash(str, algorithm) {
11966
12003
  return hash.test(str);
11967
12004
  }
11968
12005
  module.exports = exports['default'];
11969
- },{"./util/assertString":106}],65:[function(require,module,exports){
12006
+ },{"./util/assertString":108}],65:[function(require,module,exports){
11970
12007
  'use strict';
11971
12008
 
11972
12009
  Object.defineProperty(exports, "__esModule", {
@@ -11987,7 +12024,7 @@ function isHexColor(str) {
11987
12024
  return hexcolor.test(str);
11988
12025
  }
11989
12026
  module.exports = exports['default'];
11990
- },{"./util/assertString":106}],66:[function(require,module,exports){
12027
+ },{"./util/assertString":108}],66:[function(require,module,exports){
11991
12028
  'use strict';
11992
12029
 
11993
12030
  Object.defineProperty(exports, "__esModule", {
@@ -12008,7 +12045,7 @@ function isHexadecimal(str) {
12008
12045
  return hexadecimal.test(str);
12009
12046
  }
12010
12047
  module.exports = exports['default'];
12011
- },{"./util/assertString":106}],67:[function(require,module,exports){
12048
+ },{"./util/assertString":108}],67:[function(require,module,exports){
12012
12049
  'use strict';
12013
12050
 
12014
12051
  Object.defineProperty(exports, "__esModule", {
@@ -12090,7 +12127,7 @@ function isIP(str) {
12090
12127
  return false;
12091
12128
  }
12092
12129
  module.exports = exports['default'];
12093
- },{"./util/assertString":106}],68:[function(require,module,exports){
12130
+ },{"./util/assertString":108}],68:[function(require,module,exports){
12094
12131
  'use strict';
12095
12132
 
12096
12133
  Object.defineProperty(exports, "__esModule", {
@@ -12148,7 +12185,7 @@ function isISBN(str) {
12148
12185
  return false;
12149
12186
  }
12150
12187
  module.exports = exports['default'];
12151
- },{"./util/assertString":106}],69:[function(require,module,exports){
12188
+ },{"./util/assertString":108}],69:[function(require,module,exports){
12152
12189
  'use strict';
12153
12190
 
12154
12191
  Object.defineProperty(exports, "__esModule", {
@@ -12197,7 +12234,7 @@ function isISIN(str) {
12197
12234
  return parseInt(str.substr(str.length - 1), 10) === (10000 - sum) % 10;
12198
12235
  }
12199
12236
  module.exports = exports['default'];
12200
- },{"./util/assertString":106}],70:[function(require,module,exports){
12237
+ },{"./util/assertString":108}],70:[function(require,module,exports){
12201
12238
  'use strict';
12202
12239
 
12203
12240
  Object.defineProperty(exports, "__esModule", {
@@ -12219,7 +12256,29 @@ function isISO31661Alpha2(str) {
12219
12256
  return validISO31661Alpha2CountriesCodes.includes(str.toUpperCase());
12220
12257
  }
12221
12258
  module.exports = exports['default'];
12222
- },{"./util/assertString":106}],71:[function(require,module,exports){
12259
+ },{"./util/assertString":108}],71:[function(require,module,exports){
12260
+ 'use strict';
12261
+
12262
+ Object.defineProperty(exports, "__esModule", {
12263
+ value: true
12264
+ });
12265
+ exports.default = isISO31661Alpha3;
12266
+
12267
+ var _assertString = require('./util/assertString');
12268
+
12269
+ var _assertString2 = _interopRequireDefault(_assertString);
12270
+
12271
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12272
+
12273
+ // from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
12274
+ var validISO31661Alpha3CountriesCodes = ['AFG', 'ALA', 'ALB', 'DZA', 'ASM', 'AND', 'AGO', 'AIA', 'ATA', 'ATG', 'ARG', 'ARM', 'ABW', 'AUS', 'AUT', 'AZE', 'BHS', 'BHR', 'BGD', 'BRB', 'BLR', 'BEL', 'BLZ', 'BEN', 'BMU', 'BTN', 'BOL', 'BES', 'BIH', 'BWA', 'BVT', 'BRA', 'IOT', 'BRN', 'BGR', 'BFA', 'BDI', 'KHM', 'CMR', 'CAN', 'CPV', 'CYM', 'CAF', 'TCD', 'CHL', 'CHN', 'CXR', 'CCK', 'COL', 'COM', 'COG', 'COD', 'COK', 'CRI', 'CIV', 'HRV', 'CUB', 'CUW', 'CYP', 'CZE', 'DNK', 'DJI', 'DMA', 'DOM', 'ECU', 'EGY', 'SLV', 'GNQ', 'ERI', 'EST', 'ETH', 'FLK', 'FRO', 'FJI', 'FIN', 'FRA', 'GUF', 'PYF', 'ATF', 'GAB', 'GMB', 'GEO', 'DEU', 'GHA', 'GIB', 'GRC', 'GRL', 'GRD', 'GLP', 'GUM', 'GTM', 'GGY', 'GIN', 'GNB', 'GUY', 'HTI', 'HMD', 'VAT', 'HND', 'HKG', 'HUN', 'ISL', 'IND', 'IDN', 'IRN', 'IRQ', 'IRL', 'IMN', 'ISR', 'ITA', 'JAM', 'JPN', 'JEY', 'JOR', 'KAZ', 'KEN', 'KIR', 'PRK', 'KOR', 'KWT', 'KGZ', 'LAO', 'LVA', 'LBN', 'LSO', 'LBR', 'LBY', 'LIE', 'LTU', 'LUX', 'MAC', 'MKD', 'MDG', 'MWI', 'MYS', 'MDV', 'MLI', 'MLT', 'MHL', 'MTQ', 'MRT', 'MUS', 'MYT', 'MEX', 'FSM', 'MDA', 'MCO', 'MNG', 'MNE', 'MSR', 'MAR', 'MOZ', 'MMR', 'NAM', 'NRU', 'NPL', 'NLD', 'NCL', 'NZL', 'NIC', 'NER', 'NGA', 'NIU', 'NFK', 'MNP', 'NOR', 'OMN', 'PAK', 'PLW', 'PSE', 'PAN', 'PNG', 'PRY', 'PER', 'PHL', 'PCN', 'POL', 'PRT', 'PRI', 'QAT', 'REU', 'ROU', 'RUS', 'RWA', 'BLM', 'SHN', 'KNA', 'LCA', 'MAF', 'SPM', 'VCT', 'WSM', 'SMR', 'STP', 'SAU', 'SEN', 'SRB', 'SYC', 'SLE', 'SGP', 'SXM', 'SVK', 'SVN', 'SLB', 'SOM', 'ZAF', 'SGS', 'SSD', 'ESP', 'LKA', 'SDN', 'SUR', 'SJM', 'SWZ', 'SWE', 'CHE', 'SYR', 'TWN', 'TJK', 'TZA', 'THA', 'TLS', 'TGO', 'TKL', 'TON', 'TTO', 'TUN', 'TUR', 'TKM', 'TCA', 'TUV', 'UGA', 'UKR', 'ARE', 'GBR', 'USA', 'UMI', 'URY', 'UZB', 'VUT', 'VEN', 'VNM', 'VGB', 'VIR', 'WLF', 'ESH', 'YEM', 'ZMB', 'ZWE'];
12275
+
12276
+ function isISO31661Alpha3(str) {
12277
+ (0, _assertString2.default)(str);
12278
+ return validISO31661Alpha3CountriesCodes.includes(str.toUpperCase());
12279
+ }
12280
+ module.exports = exports['default'];
12281
+ },{"./util/assertString":108}],72:[function(require,module,exports){
12223
12282
  'use strict';
12224
12283
 
12225
12284
  Object.defineProperty(exports, "__esModule", {
@@ -12243,7 +12302,7 @@ function isISO8601(str) {
12243
12302
  return iso8601.test(str);
12244
12303
  }
12245
12304
  module.exports = exports['default'];
12246
- },{"./util/assertString":106}],72:[function(require,module,exports){
12305
+ },{"./util/assertString":108}],73:[function(require,module,exports){
12247
12306
  'use strict';
12248
12307
 
12249
12308
  Object.defineProperty(exports, "__esModule", {
@@ -12265,7 +12324,7 @@ function isISRC(str) {
12265
12324
  return isrc.test(str);
12266
12325
  }
12267
12326
  module.exports = exports['default'];
12268
- },{"./util/assertString":106}],73:[function(require,module,exports){
12327
+ },{"./util/assertString":108}],74:[function(require,module,exports){
12269
12328
  'use strict';
12270
12329
 
12271
12330
  Object.defineProperty(exports, "__esModule", {
@@ -12324,7 +12383,7 @@ function isISSN(str) {
12324
12383
  return checksum % 11 === 0;
12325
12384
  }
12326
12385
  module.exports = exports['default'];
12327
- },{"./util/assertString":106}],74:[function(require,module,exports){
12386
+ },{"./util/assertString":108}],75:[function(require,module,exports){
12328
12387
  'use strict';
12329
12388
 
12330
12389
  Object.defineProperty(exports, "__esModule", {
@@ -12364,7 +12423,7 @@ function isIn(str, options) {
12364
12423
  return false;
12365
12424
  }
12366
12425
  module.exports = exports['default'];
12367
- },{"./util/assertString":106,"./util/toString":108}],75:[function(require,module,exports){
12426
+ },{"./util/assertString":108,"./util/toString":110}],76:[function(require,module,exports){
12368
12427
  'use strict';
12369
12428
 
12370
12429
  Object.defineProperty(exports, "__esModule", {
@@ -12398,7 +12457,7 @@ function isInt(str, options) {
12398
12457
  return regex.test(str) && minCheckPassed && maxCheckPassed && ltCheckPassed && gtCheckPassed;
12399
12458
  }
12400
12459
  module.exports = exports['default'];
12401
- },{"./util/assertString":106}],76:[function(require,module,exports){
12460
+ },{"./util/assertString":108}],77:[function(require,module,exports){
12402
12461
  'use strict';
12403
12462
 
12404
12463
  Object.defineProperty(exports, "__esModule", {
@@ -12424,7 +12483,7 @@ function isJSON(str) {
12424
12483
  return false;
12425
12484
  }
12426
12485
  module.exports = exports['default'];
12427
- },{"./util/assertString":106}],77:[function(require,module,exports){
12486
+ },{"./util/assertString":108}],78:[function(require,module,exports){
12428
12487
  'use strict';
12429
12488
 
12430
12489
  Object.defineProperty(exports, "__esModule", {
@@ -12448,7 +12507,7 @@ var lat = /^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/;
12448
12507
  var long = /^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/;
12449
12508
 
12450
12509
  module.exports = exports['default'];
12451
- },{"./util/assertString":106}],78:[function(require,module,exports){
12510
+ },{"./util/assertString":108}],79:[function(require,module,exports){
12452
12511
  'use strict';
12453
12512
 
12454
12513
  Object.defineProperty(exports, "__esModule", {
@@ -12483,7 +12542,7 @@ function isLength(str, options) {
12483
12542
  return len >= min && (typeof max === 'undefined' || len <= max);
12484
12543
  }
12485
12544
  module.exports = exports['default'];
12486
- },{"./util/assertString":106}],79:[function(require,module,exports){
12545
+ },{"./util/assertString":108}],80:[function(require,module,exports){
12487
12546
  'use strict';
12488
12547
 
12489
12548
  Object.defineProperty(exports, "__esModule", {
@@ -12502,7 +12561,7 @@ function isLowercase(str) {
12502
12561
  return str === str.toLowerCase();
12503
12562
  }
12504
12563
  module.exports = exports['default'];
12505
- },{"./util/assertString":106}],80:[function(require,module,exports){
12564
+ },{"./util/assertString":108}],81:[function(require,module,exports){
12506
12565
  'use strict';
12507
12566
 
12508
12567
  Object.defineProperty(exports, "__esModule", {
@@ -12523,7 +12582,7 @@ function isMACAddress(str) {
12523
12582
  return macAddress.test(str);
12524
12583
  }
12525
12584
  module.exports = exports['default'];
12526
- },{"./util/assertString":106}],81:[function(require,module,exports){
12585
+ },{"./util/assertString":108}],82:[function(require,module,exports){
12527
12586
  'use strict';
12528
12587
 
12529
12588
  Object.defineProperty(exports, "__esModule", {
@@ -12544,7 +12603,7 @@ function isMD5(str) {
12544
12603
  return md5.test(str);
12545
12604
  }
12546
12605
  module.exports = exports['default'];
12547
- },{"./util/assertString":106}],82:[function(require,module,exports){
12606
+ },{"./util/assertString":108}],83:[function(require,module,exports){
12548
12607
  'use strict';
12549
12608
 
12550
12609
  Object.defineProperty(exports, "__esModule", {
@@ -12597,7 +12656,7 @@ function isMimeType(str) {
12597
12656
  return mimeTypeSimple.test(str) || mimeTypeText.test(str) || mimeTypeMultipart.test(str);
12598
12657
  }
12599
12658
  module.exports = exports['default'];
12600
- },{"./util/assertString":106}],83:[function(require,module,exports){
12659
+ },{"./util/assertString":108}],84:[function(require,module,exports){
12601
12660
  'use strict';
12602
12661
 
12603
12662
  Object.defineProperty(exports, "__esModule", {
@@ -12701,7 +12760,7 @@ function isMobilePhone(str, locale, options) {
12701
12760
  throw new Error('Invalid locale \'' + locale + '\'');
12702
12761
  }
12703
12762
  module.exports = exports['default'];
12704
- },{"./util/assertString":106}],84:[function(require,module,exports){
12763
+ },{"./util/assertString":108}],85:[function(require,module,exports){
12705
12764
  'use strict';
12706
12765
 
12707
12766
  Object.defineProperty(exports, "__esModule", {
@@ -12724,7 +12783,7 @@ function isMongoId(str) {
12724
12783
  return (0, _isHexadecimal2.default)(str) && str.length === 24;
12725
12784
  }
12726
12785
  module.exports = exports['default'];
12727
- },{"./isHexadecimal":66,"./util/assertString":106}],85:[function(require,module,exports){
12786
+ },{"./isHexadecimal":66,"./util/assertString":108}],86:[function(require,module,exports){
12728
12787
  'use strict';
12729
12788
 
12730
12789
  Object.defineProperty(exports, "__esModule", {
@@ -12747,7 +12806,7 @@ function isMultibyte(str) {
12747
12806
  return multibyte.test(str);
12748
12807
  }
12749
12808
  module.exports = exports['default'];
12750
- },{"./util/assertString":106}],86:[function(require,module,exports){
12809
+ },{"./util/assertString":108}],87:[function(require,module,exports){
12751
12810
  'use strict';
12752
12811
 
12753
12812
  Object.defineProperty(exports, "__esModule", {
@@ -12761,14 +12820,14 @@ var _assertString2 = _interopRequireDefault(_assertString);
12761
12820
 
12762
12821
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12763
12822
 
12764
- var numeric = /^[-+]?[0-9]+$/;
12823
+ var numeric = /^[+-]?([0-9]*[.])?[0-9]+$/;
12765
12824
 
12766
12825
  function isNumeric(str) {
12767
12826
  (0, _assertString2.default)(str);
12768
12827
  return numeric.test(str);
12769
12828
  }
12770
12829
  module.exports = exports['default'];
12771
- },{"./util/assertString":106}],87:[function(require,module,exports){
12830
+ },{"./util/assertString":108}],88:[function(require,module,exports){
12772
12831
  'use strict';
12773
12832
 
12774
12833
  Object.defineProperty(exports, "__esModule", {
@@ -12786,7 +12845,7 @@ function isPort(str) {
12786
12845
  return (0, _isInt2.default)(str, { min: 0, max: 65535 });
12787
12846
  }
12788
12847
  module.exports = exports['default'];
12789
- },{"./isInt":75}],88:[function(require,module,exports){
12848
+ },{"./isInt":76}],89:[function(require,module,exports){
12790
12849
  'use strict';
12791
12850
 
12792
12851
  Object.defineProperty(exports, "__esModule", {
@@ -12856,6 +12915,7 @@ var patterns = {
12856
12915
  RU: sixDigit,
12857
12916
  SA: fiveDigit,
12858
12917
  SE: /^\d{3}\s?\d{2}$/,
12918
+ SK: /^\d{3}\s?\d{2}$/,
12859
12919
  TW: /^\d{3}(\d{2})?$/,
12860
12920
  US: /^\d{5}(-\d{4})?$/,
12861
12921
  ZA: fourDigit,
@@ -12863,7 +12923,47 @@ var patterns = {
12863
12923
  };
12864
12924
 
12865
12925
  var locales = exports.locales = Object.keys(patterns);
12866
- },{"./util/assertString":106}],89:[function(require,module,exports){
12926
+ },{"./util/assertString":108}],90:[function(require,module,exports){
12927
+ 'use strict';
12928
+
12929
+ Object.defineProperty(exports, "__esModule", {
12930
+ value: true
12931
+ });
12932
+ exports.default = isRFC3339;
12933
+
12934
+ var _assertString = require('./util/assertString');
12935
+
12936
+ var _assertString2 = _interopRequireDefault(_assertString);
12937
+
12938
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12939
+
12940
+ /* Based on https://tools.ietf.org/html/rfc3339#section-5.6 */
12941
+
12942
+ var dateFullYear = /[0-9]{4}/;
12943
+ var dateMonth = /(0[1-9]|1[0-2])/;
12944
+ var dateMDay = /([12]\d|0[1-9]|3[01])/;
12945
+
12946
+ var timeHour = /([01][0-9]|2[0-3])/;
12947
+ var timeMinute = /[0-5][0-9]/;
12948
+ var timeSecond = /([0-5][0-9]|60)/;
12949
+
12950
+ var timeSecFrac = /(\.[0-9]+)?/;
12951
+ var timeNumOffset = new RegExp('[-+]' + timeHour.source + ':' + timeMinute.source);
12952
+ var timeOffset = new RegExp('([zZ]|' + timeNumOffset.source + ')');
12953
+
12954
+ var partialTime = new RegExp(timeHour.source + ':' + timeMinute.source + ':' + timeSecond.source + timeSecFrac.source);
12955
+
12956
+ var fullDate = new RegExp(dateFullYear.source + '-' + dateMonth.source + '-' + dateMDay.source);
12957
+ var fullTime = new RegExp('' + partialTime.source + timeOffset.source);
12958
+
12959
+ var rfc3339 = new RegExp(fullDate.source + '[ tT]' + fullTime.source);
12960
+
12961
+ function isRFC3339(str) {
12962
+ (0, _assertString2.default)(str);
12963
+ return rfc3339.test(str);
12964
+ }
12965
+ module.exports = exports['default'];
12966
+ },{"./util/assertString":108}],91:[function(require,module,exports){
12867
12967
  'use strict';
12868
12968
 
12869
12969
  Object.defineProperty(exports, "__esModule", {
@@ -12884,7 +12984,7 @@ function isSurrogatePair(str) {
12884
12984
  return surrogatePair.test(str);
12885
12985
  }
12886
12986
  module.exports = exports['default'];
12887
- },{"./util/assertString":106}],90:[function(require,module,exports){
12987
+ },{"./util/assertString":108}],92:[function(require,module,exports){
12888
12988
  'use strict';
12889
12989
 
12890
12990
  Object.defineProperty(exports, "__esModule", {
@@ -13032,7 +13132,7 @@ function isURL(url, options) {
13032
13132
  return true;
13033
13133
  }
13034
13134
  module.exports = exports['default'];
13035
- },{"./isFQDN":60,"./isIP":67,"./util/assertString":106,"./util/merge":107}],91:[function(require,module,exports){
13135
+ },{"./isFQDN":60,"./isIP":67,"./util/assertString":108,"./util/merge":109}],93:[function(require,module,exports){
13036
13136
  'use strict';
13037
13137
 
13038
13138
  Object.defineProperty(exports, "__esModule", {
@@ -13061,7 +13161,7 @@ function isUUID(str) {
13061
13161
  return pattern && pattern.test(str);
13062
13162
  }
13063
13163
  module.exports = exports['default'];
13064
- },{"./util/assertString":106}],92:[function(require,module,exports){
13164
+ },{"./util/assertString":108}],94:[function(require,module,exports){
13065
13165
  'use strict';
13066
13166
 
13067
13167
  Object.defineProperty(exports, "__esModule", {
@@ -13080,7 +13180,7 @@ function isUppercase(str) {
13080
13180
  return str === str.toUpperCase();
13081
13181
  }
13082
13182
  module.exports = exports['default'];
13083
- },{"./util/assertString":106}],93:[function(require,module,exports){
13183
+ },{"./util/assertString":108}],95:[function(require,module,exports){
13084
13184
  'use strict';
13085
13185
 
13086
13186
  Object.defineProperty(exports, "__esModule", {
@@ -13103,7 +13203,7 @@ function isVariableWidth(str) {
13103
13203
  return _isFullWidth.fullWidth.test(str) && _isHalfWidth.halfWidth.test(str);
13104
13204
  }
13105
13205
  module.exports = exports['default'];
13106
- },{"./isFullWidth":62,"./isHalfWidth":63,"./util/assertString":106}],94:[function(require,module,exports){
13206
+ },{"./isFullWidth":62,"./isHalfWidth":63,"./util/assertString":108}],96:[function(require,module,exports){
13107
13207
  'use strict';
13108
13208
 
13109
13209
  Object.defineProperty(exports, "__esModule", {
@@ -13127,7 +13227,7 @@ function isWhitelisted(str, chars) {
13127
13227
  return true;
13128
13228
  }
13129
13229
  module.exports = exports['default'];
13130
- },{"./util/assertString":106}],95:[function(require,module,exports){
13230
+ },{"./util/assertString":108}],97:[function(require,module,exports){
13131
13231
  'use strict';
13132
13232
 
13133
13233
  Object.defineProperty(exports, "__esModule", {
@@ -13147,7 +13247,7 @@ function ltrim(str, chars) {
13147
13247
  return str.replace(pattern, '');
13148
13248
  }
13149
13249
  module.exports = exports['default'];
13150
- },{"./util/assertString":106}],96:[function(require,module,exports){
13250
+ },{"./util/assertString":108}],98:[function(require,module,exports){
13151
13251
  'use strict';
13152
13252
 
13153
13253
  Object.defineProperty(exports, "__esModule", {
@@ -13169,7 +13269,7 @@ function matches(str, pattern, modifiers) {
13169
13269
  return pattern.test(str);
13170
13270
  }
13171
13271
  module.exports = exports['default'];
13172
- },{"./util/assertString":106}],97:[function(require,module,exports){
13272
+ },{"./util/assertString":108}],99:[function(require,module,exports){
13173
13273
  'use strict';
13174
13274
 
13175
13275
  Object.defineProperty(exports, "__esModule", {
@@ -13212,6 +13312,10 @@ var default_normalize_email_options = {
13212
13312
  // Removes the subaddress (e.g. "-foo") from the email address
13213
13313
  yahoo_remove_subaddress: true,
13214
13314
 
13315
+ // The following conversions are specific to Yandex
13316
+ // Lowercases the local part of the Yandex address (known to be case-insensitive)
13317
+ yandex_lowercase: true,
13318
+
13215
13319
  // The following conversions are specific to iCloud
13216
13320
  // Lowercases the local part of the iCloud address (known to be case-insensitive)
13217
13321
  icloud_lowercase: true,
@@ -13232,6 +13336,17 @@ var outlookdotcom_domains = ['hotmail.at', 'hotmail.be', 'hotmail.ca', 'hotmail.
13232
13336
  // This list is likely incomplete
13233
13337
  var yahoo_domains = ['rocketmail.com', 'yahoo.ca', 'yahoo.co.uk', 'yahoo.com', 'yahoo.de', 'yahoo.fr', 'yahoo.in', 'yahoo.it', 'ymail.com'];
13234
13338
 
13339
+ // List of domains used by yandex.ru
13340
+ var yandex_domains = ['yandex.ru', 'yandex.ua', 'yandex.kz', 'yandex.com', 'yandex.by', 'ya.ru'];
13341
+
13342
+ // replace single dots, but not multiple consecutive dots
13343
+ function dotsReplacer(match) {
13344
+ if (match.length > 1) {
13345
+ return match;
13346
+ }
13347
+ return '';
13348
+ }
13349
+
13235
13350
  function normalizeEmail(email, options) {
13236
13351
  options = (0, _merge2.default)(options, default_normalize_email_options);
13237
13352
 
@@ -13249,7 +13364,8 @@ function normalizeEmail(email, options) {
13249
13364
  parts[0] = parts[0].split('+')[0];
13250
13365
  }
13251
13366
  if (options.gmail_remove_dots) {
13252
- parts[0] = parts[0].replace(/\./g, '');
13367
+ // this does not replace consecutive dots like example..email@gmail.com
13368
+ parts[0] = parts[0].replace(/\.+/g, dotsReplacer);
13253
13369
  }
13254
13370
  if (!parts[0].length) {
13255
13371
  return false;
@@ -13292,6 +13408,11 @@ function normalizeEmail(email, options) {
13292
13408
  if (options.all_lowercase || options.yahoo_lowercase) {
13293
13409
  parts[0] = parts[0].toLowerCase();
13294
13410
  }
13411
+ } else if (~yandex_domains.indexOf(parts[1])) {
13412
+ if (options.all_lowercase || options.yandex_lowercase) {
13413
+ parts[0] = parts[0].toLowerCase();
13414
+ }
13415
+ parts[1] = 'yandex.ru'; // all yandex domains are equal, 1st preffered
13295
13416
  } else if (options.all_lowercase) {
13296
13417
  // Any other address
13297
13418
  parts[0] = parts[0].toLowerCase();
@@ -13299,7 +13420,7 @@ function normalizeEmail(email, options) {
13299
13420
  return parts.join('@');
13300
13421
  }
13301
13422
  module.exports = exports['default'];
13302
- },{"./util/merge":107}],98:[function(require,module,exports){
13423
+ },{"./util/merge":109}],100:[function(require,module,exports){
13303
13424
  'use strict';
13304
13425
 
13305
13426
  Object.defineProperty(exports, "__esModule", {
@@ -13325,7 +13446,7 @@ function rtrim(str, chars) {
13325
13446
  return idx < str.length ? str.substr(0, idx + 1) : str;
13326
13447
  }
13327
13448
  module.exports = exports['default'];
13328
- },{"./util/assertString":106}],99:[function(require,module,exports){
13449
+ },{"./util/assertString":108}],101:[function(require,module,exports){
13329
13450
  'use strict';
13330
13451
 
13331
13452
  Object.defineProperty(exports, "__esModule", {
@@ -13349,7 +13470,7 @@ function stripLow(str, keep_new_lines) {
13349
13470
  return (0, _blacklist2.default)(str, chars);
13350
13471
  }
13351
13472
  module.exports = exports['default'];
13352
- },{"./blacklist":41,"./util/assertString":106}],100:[function(require,module,exports){
13473
+ },{"./blacklist":41,"./util/assertString":108}],102:[function(require,module,exports){
13353
13474
  'use strict';
13354
13475
 
13355
13476
  Object.defineProperty(exports, "__esModule", {
@@ -13371,7 +13492,7 @@ function toBoolean(str, strict) {
13371
13492
  return str !== '0' && str !== 'false' && str !== '';
13372
13493
  }
13373
13494
  module.exports = exports['default'];
13374
- },{"./util/assertString":106}],101:[function(require,module,exports){
13495
+ },{"./util/assertString":108}],103:[function(require,module,exports){
13375
13496
  'use strict';
13376
13497
 
13377
13498
  Object.defineProperty(exports, "__esModule", {
@@ -13391,7 +13512,7 @@ function toDate(date) {
13391
13512
  return !isNaN(date) ? new Date(date) : null;
13392
13513
  }
13393
13514
  module.exports = exports['default'];
13394
- },{"./util/assertString":106}],102:[function(require,module,exports){
13515
+ },{"./util/assertString":108}],104:[function(require,module,exports){
13395
13516
  'use strict';
13396
13517
 
13397
13518
  Object.defineProperty(exports, "__esModule", {
@@ -13410,7 +13531,7 @@ function toFloat(str) {
13410
13531
  return parseFloat(str);
13411
13532
  }
13412
13533
  module.exports = exports['default'];
13413
- },{"./util/assertString":106}],103:[function(require,module,exports){
13534
+ },{"./util/assertString":108}],105:[function(require,module,exports){
13414
13535
  'use strict';
13415
13536
 
13416
13537
  Object.defineProperty(exports, "__esModule", {
@@ -13429,7 +13550,7 @@ function toInt(str, radix) {
13429
13550
  return parseInt(str, radix || 10);
13430
13551
  }
13431
13552
  module.exports = exports['default'];
13432
- },{"./util/assertString":106}],104:[function(require,module,exports){
13553
+ },{"./util/assertString":108}],106:[function(require,module,exports){
13433
13554
  'use strict';
13434
13555
 
13435
13556
  Object.defineProperty(exports, "__esModule", {
@@ -13451,7 +13572,7 @@ function trim(str, chars) {
13451
13572
  return (0, _rtrim2.default)((0, _ltrim2.default)(str, chars), chars);
13452
13573
  }
13453
13574
  module.exports = exports['default'];
13454
- },{"./ltrim":95,"./rtrim":98}],105:[function(require,module,exports){
13575
+ },{"./ltrim":97,"./rtrim":100}],107:[function(require,module,exports){
13455
13576
  'use strict';
13456
13577
 
13457
13578
  Object.defineProperty(exports, "__esModule", {
@@ -13470,7 +13591,7 @@ function unescape(str) {
13470
13591
  return str.replace(/&amp;/g, '&').replace(/&quot;/g, '"').replace(/&#x27;/g, "'").replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&#x2F;/g, '/').replace(/&#x5C;/g, '\\').replace(/&#96;/g, '`');
13471
13592
  }
13472
13593
  module.exports = exports['default'];
13473
- },{"./util/assertString":106}],106:[function(require,module,exports){
13594
+ },{"./util/assertString":108}],108:[function(require,module,exports){
13474
13595
  'use strict';
13475
13596
 
13476
13597
  Object.defineProperty(exports, "__esModule", {
@@ -13485,7 +13606,7 @@ function assertString(input) {
13485
13606
  }
13486
13607
  }
13487
13608
  module.exports = exports['default'];
13488
- },{}],107:[function(require,module,exports){
13609
+ },{}],109:[function(require,module,exports){
13489
13610
  'use strict';
13490
13611
 
13491
13612
  Object.defineProperty(exports, "__esModule", {
@@ -13504,7 +13625,7 @@ function merge() {
13504
13625
  return obj;
13505
13626
  }
13506
13627
  module.exports = exports['default'];
13507
- },{}],108:[function(require,module,exports){
13628
+ },{}],110:[function(require,module,exports){
13508
13629
  'use strict';
13509
13630
 
13510
13631
  Object.defineProperty(exports, "__esModule", {
@@ -13527,7 +13648,7 @@ function toString(input) {
13527
13648
  return String(input);
13528
13649
  }
13529
13650
  module.exports = exports['default'];
13530
- },{}],109:[function(require,module,exports){
13651
+ },{}],111:[function(require,module,exports){
13531
13652
  'use strict';
13532
13653
 
13533
13654
  Object.defineProperty(exports, "__esModule", {
@@ -13546,7 +13667,7 @@ function whitelist(str, chars) {
13546
13667
  return str.replace(new RegExp('[^' + chars + ']+', 'g'), '');
13547
13668
  }
13548
13669
  module.exports = exports['default'];
13549
- },{"./util/assertString":106}],110:[function(require,module,exports){
13670
+ },{"./util/assertString":108}],112:[function(require,module,exports){
13550
13671
  module.exports = extend
13551
13672
 
13552
13673
  var hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -13567,7 +13688,7 @@ function extend() {
13567
13688
  return target
13568
13689
  }
13569
13690
 
13570
- },{}],111:[function(require,module,exports){
13691
+ },{}],113:[function(require,module,exports){
13571
13692
  "use strict";
13572
13693
 
13573
13694
  module.exports = {
@@ -13629,7 +13750,7 @@ module.exports = {
13629
13750
 
13630
13751
  };
13631
13752
 
13632
- },{}],112:[function(require,module,exports){
13753
+ },{}],114:[function(require,module,exports){
13633
13754
  /*jshint maxlen: false*/
13634
13755
 
13635
13756
  var validator = require("validator");
@@ -13760,7 +13881,7 @@ var FormatValidators = {
13760
13881
 
13761
13882
  module.exports = FormatValidators;
13762
13883
 
13763
- },{"validator":39}],113:[function(require,module,exports){
13884
+ },{"validator":39}],115:[function(require,module,exports){
13764
13885
  "use strict";
13765
13886
 
13766
13887
  var FormatValidators = require("./FormatValidators"),
@@ -14308,7 +14429,7 @@ exports.validate = function (report, schema, json) {
14308
14429
 
14309
14430
  };
14310
14431
 
14311
- },{"./FormatValidators":112,"./Report":115,"./Utils":119}],114:[function(require,module,exports){
14432
+ },{"./FormatValidators":114,"./Report":117,"./Utils":121}],116:[function(require,module,exports){
14312
14433
  // Number.isFinite polyfill
14313
14434
  // http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite
14314
14435
  if (typeof Number.isFinite !== "function") {
@@ -14326,7 +14447,7 @@ if (typeof Number.isFinite !== "function") {
14326
14447
  };
14327
14448
  }
14328
14449
 
14329
- },{}],115:[function(require,module,exports){
14450
+ },{}],117:[function(require,module,exports){
14330
14451
  (function (process){
14331
14452
  "use strict";
14332
14453
 
@@ -14533,7 +14654,7 @@ Report.prototype.addCustomError = function (errorCode, errorMessage, params, sub
14533
14654
  module.exports = Report;
14534
14655
 
14535
14656
  }).call(this,require('_process'))
14536
- },{"./Errors":111,"./Utils":119,"_process":15,"lodash.get":12}],116:[function(require,module,exports){
14657
+ },{"./Errors":113,"./Utils":121,"_process":15,"lodash.get":12}],118:[function(require,module,exports){
14537
14658
  "use strict";
14538
14659
 
14539
14660
  var isequal = require("lodash.isequal");
@@ -14697,7 +14818,7 @@ exports.getSchemaByUri = function (report, uri, root) {
14697
14818
 
14698
14819
  exports.getRemotePath = getRemotePath;
14699
14820
 
14700
- },{"./Report":115,"./SchemaCompilation":117,"./SchemaValidation":118,"./Utils":119,"lodash.isequal":13}],117:[function(require,module,exports){
14821
+ },{"./Report":117,"./SchemaCompilation":119,"./SchemaValidation":120,"./Utils":121,"lodash.isequal":13}],119:[function(require,module,exports){
14701
14822
  "use strict";
14702
14823
 
14703
14824
  var Report = require("./Report");
@@ -14998,7 +15119,7 @@ exports.compileSchema = function (report, schema) {
14998
15119
 
14999
15120
  };
15000
15121
 
15001
- },{"./Report":115,"./SchemaCache":116,"./Utils":119}],118:[function(require,module,exports){
15122
+ },{"./Report":117,"./SchemaCache":118,"./Utils":121}],120:[function(require,module,exports){
15002
15123
  "use strict";
15003
15124
 
15004
15125
  var FormatValidators = require("./FormatValidators"),
@@ -15607,7 +15728,7 @@ exports.validateSchema = function (report, schema) {
15607
15728
  return isValid;
15608
15729
  };
15609
15730
 
15610
- },{"./FormatValidators":112,"./JsonValidation":113,"./Report":115,"./Utils":119}],119:[function(require,module,exports){
15731
+ },{"./FormatValidators":114,"./JsonValidation":115,"./Report":117,"./Utils":121}],121:[function(require,module,exports){
15611
15732
  "use strict";
15612
15733
 
15613
15734
  exports.isAbsoluteUri = function (uri) {
@@ -15836,7 +15957,7 @@ exports.ucs2decode = function (string) {
15836
15957
  };
15837
15958
  /*jshint +W016*/
15838
15959
 
15839
- },{}],120:[function(require,module,exports){
15960
+ },{}],122:[function(require,module,exports){
15840
15961
  (function (process){
15841
15962
  "use strict";
15842
15963
 
@@ -15954,6 +16075,7 @@ function normalizeOptions(options) {
15954
16075
  function ZSchema(options) {
15955
16076
  this.cache = {};
15956
16077
  this.referenceCache = [];
16078
+ this.validateOptions = {};
15957
16079
 
15958
16080
  this.options = normalizeOptions(options);
15959
16081
 
@@ -16000,6 +16122,8 @@ ZSchema.prototype.validate = function (json, schema, options, callback) {
16000
16122
  }
16001
16123
  if (!options) { options = {}; }
16002
16124
 
16125
+ this.validateOptions = options;
16126
+
16003
16127
  var whatIs = Utils.whatIs(schema);
16004
16128
  if (whatIs !== "string" && whatIs !== "object") {
16005
16129
  var e = new Error("Invalid .validate call - schema must be an string or object but " + whatIs + " was passed!");
@@ -16209,7 +16333,7 @@ ZSchema.getDefaultOptions = function () {
16209
16333
  module.exports = ZSchema;
16210
16334
 
16211
16335
  }).call(this,require('_process'))
16212
- },{"./FormatValidators":112,"./JsonValidation":113,"./Polyfills":114,"./Report":115,"./SchemaCache":116,"./SchemaCompilation":117,"./SchemaValidation":118,"./Utils":119,"./schemas/hyper-schema.json":121,"./schemas/schema.json":122,"_process":15,"lodash.get":12}],121:[function(require,module,exports){
16336
+ },{"./FormatValidators":114,"./JsonValidation":115,"./Polyfills":116,"./Report":117,"./SchemaCache":118,"./SchemaCompilation":119,"./SchemaValidation":120,"./Utils":121,"./schemas/hyper-schema.json":123,"./schemas/schema.json":124,"_process":15,"lodash.get":12}],123:[function(require,module,exports){
16213
16337
  module.exports={
16214
16338
  "$schema": "http://json-schema.org/draft-04/hyper-schema#",
16215
16339
  "id": "http://json-schema.org/draft-04/hyper-schema#",
@@ -16369,7 +16493,7 @@ module.exports={
16369
16493
  }
16370
16494
 
16371
16495
 
16372
- },{}],122:[function(require,module,exports){
16496
+ },{}],124:[function(require,module,exports){
16373
16497
  module.exports={
16374
16498
  "id": "http://json-schema.org/draft-04/schema#",
16375
16499
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -16522,7 +16646,7 @@ module.exports={
16522
16646
  "default": {}
16523
16647
  }
16524
16648
 
16525
- },{}],123:[function(require,module,exports){
16649
+ },{}],125:[function(require,module,exports){
16526
16650
  "use strict";
16527
16651
 
16528
16652
  module.exports = {
@@ -16600,7 +16724,7 @@ module.exports = {
16600
16724
  ]
16601
16725
  };
16602
16726
 
16603
- },{}],124:[function(require,module,exports){
16727
+ },{}],126:[function(require,module,exports){
16604
16728
  "use strict";
16605
16729
 
16606
16730
  module.exports = {
@@ -16665,7 +16789,7 @@ module.exports = {
16665
16789
  ]
16666
16790
  };
16667
16791
 
16668
- },{}],125:[function(require,module,exports){
16792
+ },{}],127:[function(require,module,exports){
16669
16793
  "use strict";
16670
16794
 
16671
16795
  module.exports = {
@@ -16738,7 +16862,7 @@ module.exports = {
16738
16862
  ]
16739
16863
  };
16740
16864
 
16741
- },{}],126:[function(require,module,exports){
16865
+ },{}],128:[function(require,module,exports){
16742
16866
  "use strict";
16743
16867
 
16744
16868
  //Implement new 'shouldFail' keyword
@@ -16801,7 +16925,7 @@ module.exports = {
16801
16925
  ]
16802
16926
  };
16803
16927
 
16804
- },{}],127:[function(require,module,exports){
16928
+ },{}],129:[function(require,module,exports){
16805
16929
  "use strict";
16806
16930
 
16807
16931
  module.exports = {
@@ -16829,7 +16953,7 @@ module.exports = {
16829
16953
  ]
16830
16954
  };
16831
16955
 
16832
- },{}],128:[function(require,module,exports){
16956
+ },{}],130:[function(require,module,exports){
16833
16957
  "use strict";
16834
16958
 
16835
16959
  module.exports = {
@@ -16854,7 +16978,7 @@ module.exports = {
16854
16978
  ]
16855
16979
  };
16856
16980
 
16857
- },{}],129:[function(require,module,exports){
16981
+ },{}],131:[function(require,module,exports){
16858
16982
  "use strict";
16859
16983
 
16860
16984
  module.exports = {
@@ -16927,7 +17051,7 @@ module.exports = {
16927
17051
  ]
16928
17052
  };
16929
17053
 
16930
- },{}],130:[function(require,module,exports){
17054
+ },{}],132:[function(require,module,exports){
16931
17055
  "use strict";
16932
17056
 
16933
17057
  module.exports = {
@@ -16955,7 +17079,7 @@ module.exports = {
16955
17079
  ]
16956
17080
  };
16957
17081
 
16958
- },{}],131:[function(require,module,exports){
17082
+ },{}],133:[function(require,module,exports){
16959
17083
  "use strict";
16960
17084
 
16961
17085
  module.exports = {
@@ -16983,7 +17107,7 @@ module.exports = {
16983
17107
  ]
16984
17108
  };
16985
17109
 
16986
- },{}],132:[function(require,module,exports){
17110
+ },{}],134:[function(require,module,exports){
16987
17111
  "use strict";
16988
17112
 
16989
17113
  module.exports = {
@@ -17011,7 +17135,7 @@ module.exports = {
17011
17135
  ]
17012
17136
  };
17013
17137
 
17014
- },{}],133:[function(require,module,exports){
17138
+ },{}],135:[function(require,module,exports){
17015
17139
  "use strict";
17016
17140
 
17017
17141
  module.exports = {
@@ -17039,7 +17163,7 @@ module.exports = {
17039
17163
  ]
17040
17164
  };
17041
17165
 
17042
- },{}],134:[function(require,module,exports){
17166
+ },{}],136:[function(require,module,exports){
17043
17167
  "use strict";
17044
17168
 
17045
17169
  module.exports = {
@@ -17067,7 +17191,7 @@ module.exports = {
17067
17191
  ]
17068
17192
  };
17069
17193
 
17070
- },{}],135:[function(require,module,exports){
17194
+ },{}],137:[function(require,module,exports){
17071
17195
  "use strict";
17072
17196
 
17073
17197
  module.exports = {
@@ -17123,7 +17247,7 @@ module.exports = {
17123
17247
  ]
17124
17248
  };
17125
17249
 
17126
- },{}],136:[function(require,module,exports){
17250
+ },{}],138:[function(require,module,exports){
17127
17251
  "use strict";
17128
17252
 
17129
17253
  module.exports = {
@@ -17167,7 +17291,7 @@ module.exports = {
17167
17291
  ]
17168
17292
  };
17169
17293
 
17170
- },{}],137:[function(require,module,exports){
17294
+ },{}],139:[function(require,module,exports){
17171
17295
  "use strict";
17172
17296
 
17173
17297
  module.exports = {
@@ -17184,7 +17308,7 @@ module.exports = {
17184
17308
  ]
17185
17309
  };
17186
17310
 
17187
- },{}],138:[function(require,module,exports){
17311
+ },{}],140:[function(require,module,exports){
17188
17312
  "use strict";
17189
17313
 
17190
17314
  module.exports = {
@@ -17206,7 +17330,7 @@ module.exports = {
17206
17330
  ]
17207
17331
  };
17208
17332
 
17209
- },{}],139:[function(require,module,exports){
17333
+ },{}],141:[function(require,module,exports){
17210
17334
  "use strict";
17211
17335
 
17212
17336
  module.exports = {
@@ -17224,7 +17348,7 @@ module.exports = {
17224
17348
  ]
17225
17349
  };
17226
17350
 
17227
- },{}],140:[function(require,module,exports){
17351
+ },{}],142:[function(require,module,exports){
17228
17352
  "use strict";
17229
17353
 
17230
17354
  module.exports = {
@@ -17293,7 +17417,7 @@ module.exports = {
17293
17417
  ]
17294
17418
  };
17295
17419
 
17296
- },{}],141:[function(require,module,exports){
17420
+ },{}],143:[function(require,module,exports){
17297
17421
  "use strict";
17298
17422
 
17299
17423
  module.exports = {
@@ -17308,7 +17432,7 @@ module.exports = {
17308
17432
  ]
17309
17433
  };
17310
17434
 
17311
- },{}],142:[function(require,module,exports){
17435
+ },{}],144:[function(require,module,exports){
17312
17436
  "use strict";
17313
17437
 
17314
17438
  module.exports = {
@@ -17332,7 +17456,7 @@ module.exports = {
17332
17456
  ]
17333
17457
  };
17334
17458
 
17335
- },{}],143:[function(require,module,exports){
17459
+ },{}],145:[function(require,module,exports){
17336
17460
  "use strict";
17337
17461
 
17338
17462
  module.exports = {
@@ -17407,7 +17531,7 @@ module.exports = {
17407
17531
  ]
17408
17532
  };
17409
17533
 
17410
- },{}],144:[function(require,module,exports){
17534
+ },{}],146:[function(require,module,exports){
17411
17535
  "use strict";
17412
17536
 
17413
17537
  module.exports = {
@@ -17428,7 +17552,7 @@ module.exports = {
17428
17552
  ]
17429
17553
  };
17430
17554
 
17431
- },{}],145:[function(require,module,exports){
17555
+ },{}],147:[function(require,module,exports){
17432
17556
  "use strict";
17433
17557
 
17434
17558
  module.exports = {
@@ -17455,7 +17579,7 @@ module.exports = {
17455
17579
  ]
17456
17580
  };
17457
17581
 
17458
- },{}],146:[function(require,module,exports){
17582
+ },{}],148:[function(require,module,exports){
17459
17583
  "use strict";
17460
17584
 
17461
17585
  var REF_NAME = "int.json";
@@ -17502,7 +17626,7 @@ module.exports = {
17502
17626
  ]
17503
17627
  };
17504
17628
 
17505
- },{}],147:[function(require,module,exports){
17629
+ },{}],149:[function(require,module,exports){
17506
17630
  "use strict";
17507
17631
 
17508
17632
  module.exports = {
@@ -17675,7 +17799,7 @@ module.exports = {
17675
17799
  ]
17676
17800
  };
17677
17801
 
17678
- },{}],148:[function(require,module,exports){
17802
+ },{}],150:[function(require,module,exports){
17679
17803
  "use strict";
17680
17804
 
17681
17805
  module.exports = {
@@ -17720,7 +17844,7 @@ module.exports = {
17720
17844
  ]
17721
17845
  };
17722
17846
 
17723
- },{}],149:[function(require,module,exports){
17847
+ },{}],151:[function(require,module,exports){
17724
17848
  "use strict";
17725
17849
 
17726
17850
  module.exports = {
@@ -17763,7 +17887,7 @@ module.exports = {
17763
17887
  ]
17764
17888
  };
17765
17889
 
17766
- },{}],150:[function(require,module,exports){
17890
+ },{}],152:[function(require,module,exports){
17767
17891
  "use strict";
17768
17892
 
17769
17893
  var schema1 = {
@@ -17847,7 +17971,7 @@ module.exports = {
17847
17971
  ]
17848
17972
  };
17849
17973
 
17850
- },{}],151:[function(require,module,exports){
17974
+ },{}],153:[function(require,module,exports){
17851
17975
  module.exports = {
17852
17976
  description: "Issue #139 - add schema id if present to erro message via addError method",
17853
17977
  tests: [
@@ -17906,7 +18030,7 @@ module.exports = {
17906
18030
  ]
17907
18031
  };
17908
18032
 
17909
- },{}],152:[function(require,module,exports){
18033
+ },{}],154:[function(require,module,exports){
17910
18034
  "use strict";
17911
18035
 
17912
18036
  module.exports = {
@@ -17924,7 +18048,7 @@ module.exports = {
17924
18048
  ]
17925
18049
  };
17926
18050
 
17927
- },{}],153:[function(require,module,exports){
18051
+ },{}],155:[function(require,module,exports){
17928
18052
  "use strict";
17929
18053
 
17930
18054
  module.exports = {
@@ -17954,7 +18078,7 @@ module.exports = {
17954
18078
  ]
17955
18079
  };
17956
18080
 
17957
- },{}],154:[function(require,module,exports){
18081
+ },{}],156:[function(require,module,exports){
17958
18082
  "use strict";
17959
18083
 
17960
18084
  module.exports = {
@@ -17982,7 +18106,7 @@ module.exports = {
17982
18106
  ]
17983
18107
  };
17984
18108
 
17985
- },{}],155:[function(require,module,exports){
18109
+ },{}],157:[function(require,module,exports){
17986
18110
  "use strict";
17987
18111
 
17988
18112
  module.exports = {
@@ -18009,7 +18133,7 @@ module.exports = {
18009
18133
  ]
18010
18134
  };
18011
18135
 
18012
- },{}],156:[function(require,module,exports){
18136
+ },{}],158:[function(require,module,exports){
18013
18137
  "use strict";
18014
18138
 
18015
18139
  module.exports = {
@@ -18085,7 +18209,7 @@ module.exports = {
18085
18209
  ]
18086
18210
  };
18087
18211
 
18088
- },{}],157:[function(require,module,exports){
18212
+ },{}],159:[function(require,module,exports){
18089
18213
  "use strict";
18090
18214
 
18091
18215
  module.exports = {
@@ -18121,7 +18245,7 @@ module.exports = {
18121
18245
  ]
18122
18246
  };
18123
18247
 
18124
- },{}],158:[function(require,module,exports){
18248
+ },{}],160:[function(require,module,exports){
18125
18249
  "use strict";
18126
18250
 
18127
18251
  module.exports = {
@@ -18211,7 +18335,7 @@ module.exports = {
18211
18335
  ]
18212
18336
  };
18213
18337
 
18214
- },{}],159:[function(require,module,exports){
18338
+ },{}],161:[function(require,module,exports){
18215
18339
  "use strict";
18216
18340
 
18217
18341
  module.exports = {
@@ -18236,7 +18360,7 @@ module.exports = {
18236
18360
  ]
18237
18361
  };
18238
18362
 
18239
- },{}],160:[function(require,module,exports){
18363
+ },{}],162:[function(require,module,exports){
18240
18364
  "use strict";
18241
18365
 
18242
18366
  module.exports = {
@@ -18312,7 +18436,7 @@ module.exports = {
18312
18436
  ]
18313
18437
  };
18314
18438
 
18315
- },{}],161:[function(require,module,exports){
18439
+ },{}],163:[function(require,module,exports){
18316
18440
  "use strict";
18317
18441
 
18318
18442
  module.exports = {
@@ -18425,7 +18549,7 @@ module.exports = {
18425
18549
  ]
18426
18550
  };
18427
18551
 
18428
- },{}],162:[function(require,module,exports){
18552
+ },{}],164:[function(require,module,exports){
18429
18553
  "use strict";
18430
18554
 
18431
18555
  module.exports = {
@@ -18605,7 +18729,7 @@ module.exports = {
18605
18729
  ]
18606
18730
  };
18607
18731
 
18608
- },{}],163:[function(require,module,exports){
18732
+ },{}],165:[function(require,module,exports){
18609
18733
  "use strict";
18610
18734
 
18611
18735
  module.exports = {
@@ -18652,7 +18776,7 @@ module.exports = {
18652
18776
  ]
18653
18777
  };
18654
18778
 
18655
- },{}],164:[function(require,module,exports){
18779
+ },{}],166:[function(require,module,exports){
18656
18780
  "use strict";
18657
18781
 
18658
18782
  var resourceObject = {
@@ -18948,7 +19072,7 @@ module.exports = {
18948
19072
  ]
18949
19073
  };
18950
19074
 
18951
- },{}],165:[function(require,module,exports){
19075
+ },{}],167:[function(require,module,exports){
18952
19076
  "use strict";
18953
19077
 
18954
19078
  var draft4 = require("./files/Issue47/draft4.json");
@@ -18977,7 +19101,7 @@ module.exports = {
18977
19101
  ]
18978
19102
  };
18979
19103
 
18980
- },{"./files/Issue47/draft4.json":189,"./files/Issue47/sample.json":190,"./files/Issue47/swagger_draft.json":191,"./files/Issue47/swagger_draft_modified.json":192}],166:[function(require,module,exports){
19104
+ },{"./files/Issue47/draft4.json":191,"./files/Issue47/sample.json":192,"./files/Issue47/swagger_draft.json":193,"./files/Issue47/swagger_draft_modified.json":194}],168:[function(require,module,exports){
18981
19105
  "use strict";
18982
19106
 
18983
19107
  module.exports = {
@@ -19010,7 +19134,7 @@ module.exports = {
19010
19134
  ]
19011
19135
  };
19012
19136
 
19013
- },{}],167:[function(require,module,exports){
19137
+ },{}],169:[function(require,module,exports){
19014
19138
  "use strict";
19015
19139
 
19016
19140
  module.exports = {
@@ -19028,7 +19152,7 @@ module.exports = {
19028
19152
  ]
19029
19153
  };
19030
19154
 
19031
- },{}],168:[function(require,module,exports){
19155
+ },{}],170:[function(require,module,exports){
19032
19156
  "use strict";
19033
19157
 
19034
19158
  module.exports = {
@@ -19050,7 +19174,7 @@ module.exports = {
19050
19174
  ]
19051
19175
  };
19052
19176
 
19053
- },{}],169:[function(require,module,exports){
19177
+ },{}],171:[function(require,module,exports){
19054
19178
  "use strict";
19055
19179
 
19056
19180
  module.exports = {
@@ -19121,7 +19245,7 @@ module.exports = {
19121
19245
  ]
19122
19246
  };
19123
19247
 
19124
- },{}],170:[function(require,module,exports){
19248
+ },{}],172:[function(require,module,exports){
19125
19249
  "use strict";
19126
19250
 
19127
19251
  var dataTypeBaseJson = {
@@ -19806,7 +19930,7 @@ module.exports = {
19806
19930
  ]
19807
19931
  };
19808
19932
 
19809
- },{}],171:[function(require,module,exports){
19933
+ },{}],173:[function(require,module,exports){
19810
19934
  "use strict";
19811
19935
 
19812
19936
  module.exports = {
@@ -19869,7 +19993,7 @@ module.exports = {
19869
19993
  ]
19870
19994
  };
19871
19995
 
19872
- },{}],172:[function(require,module,exports){
19996
+ },{}],174:[function(require,module,exports){
19873
19997
  /*jshint -W101*/
19874
19998
 
19875
19999
  "use strict";
@@ -20446,7 +20570,7 @@ module.exports = {
20446
20570
  ]
20447
20571
  };
20448
20572
 
20449
- },{}],173:[function(require,module,exports){
20573
+ },{}],175:[function(require,module,exports){
20450
20574
  "use strict";
20451
20575
 
20452
20576
  module.exports = {
@@ -20477,7 +20601,7 @@ module.exports = {
20477
20601
  ]
20478
20602
  };
20479
20603
 
20480
- },{}],174:[function(require,module,exports){
20604
+ },{}],176:[function(require,module,exports){
20481
20605
  "use strict";
20482
20606
 
20483
20607
  module.exports = {
@@ -20528,7 +20652,7 @@ module.exports = {
20528
20652
  ]
20529
20653
  };
20530
20654
 
20531
- },{}],175:[function(require,module,exports){
20655
+ },{}],177:[function(require,module,exports){
20532
20656
  "use strict";
20533
20657
 
20534
20658
  module.exports = {
@@ -20648,7 +20772,7 @@ module.exports = {
20648
20772
  ]
20649
20773
  };
20650
20774
 
20651
- },{}],176:[function(require,module,exports){
20775
+ },{}],178:[function(require,module,exports){
20652
20776
  "use strict";
20653
20777
 
20654
20778
  module.exports = {
@@ -20706,7 +20830,7 @@ module.exports = {
20706
20830
  ]
20707
20831
  };
20708
20832
 
20709
- },{}],177:[function(require,module,exports){
20833
+ },{}],179:[function(require,module,exports){
20710
20834
  "use strict";
20711
20835
 
20712
20836
  module.exports = {
@@ -20779,7 +20903,7 @@ module.exports = {
20779
20903
  ]
20780
20904
  };
20781
20905
 
20782
- },{}],178:[function(require,module,exports){
20906
+ },{}],180:[function(require,module,exports){
20783
20907
  "use strict";
20784
20908
 
20785
20909
  var innerSchema = {
@@ -20824,7 +20948,7 @@ module.exports = {
20824
20948
  ]
20825
20949
  };
20826
20950
 
20827
- },{}],179:[function(require,module,exports){
20951
+ },{}],181:[function(require,module,exports){
20828
20952
  "use strict";
20829
20953
 
20830
20954
  var schema1 = {
@@ -20868,7 +20992,7 @@ module.exports = {
20868
20992
  ]
20869
20993
  };
20870
20994
 
20871
- },{}],180:[function(require,module,exports){
20995
+ },{}],182:[function(require,module,exports){
20872
20996
  "use strict";
20873
20997
 
20874
20998
  module.exports = {
@@ -20886,7 +21010,7 @@ module.exports = {
20886
21010
  ]
20887
21011
  };
20888
21012
 
20889
- },{}],181:[function(require,module,exports){
21013
+ },{}],183:[function(require,module,exports){
20890
21014
  "use strict";
20891
21015
 
20892
21016
  module.exports = {
@@ -20918,7 +21042,7 @@ module.exports = {
20918
21042
  ]
20919
21043
  };
20920
21044
 
20921
- },{}],182:[function(require,module,exports){
21045
+ },{}],184:[function(require,module,exports){
20922
21046
  "use strict";
20923
21047
 
20924
21048
  module.exports = {
@@ -20977,7 +21101,7 @@ module.exports = {
20977
21101
  ]
20978
21102
  };
20979
21103
 
20980
- },{}],183:[function(require,module,exports){
21104
+ },{}],185:[function(require,module,exports){
20981
21105
  "use strict";
20982
21106
 
20983
21107
  module.exports = {
@@ -21002,7 +21126,7 @@ module.exports = {
21002
21126
  ]
21003
21127
  };
21004
21128
 
21005
- },{}],184:[function(require,module,exports){
21129
+ },{}],186:[function(require,module,exports){
21006
21130
  "use strict";
21007
21131
 
21008
21132
  module.exports = {
@@ -21027,7 +21151,7 @@ module.exports = {
21027
21151
  ]
21028
21152
  };
21029
21153
 
21030
- },{}],185:[function(require,module,exports){
21154
+ },{}],187:[function(require,module,exports){
21031
21155
  "use strict";
21032
21156
 
21033
21157
  module.exports = {
@@ -21072,7 +21196,7 @@ module.exports = {
21072
21196
  ]
21073
21197
  };
21074
21198
 
21075
- },{}],186:[function(require,module,exports){
21199
+ },{}],188:[function(require,module,exports){
21076
21200
  "use strict";
21077
21201
 
21078
21202
  module.exports = {
@@ -21097,7 +21221,7 @@ module.exports = {
21097
21221
  ]
21098
21222
  };
21099
21223
 
21100
- },{}],187:[function(require,module,exports){
21224
+ },{}],189:[function(require,module,exports){
21101
21225
  "use strict";
21102
21226
 
21103
21227
  module.exports = {
@@ -21136,7 +21260,7 @@ module.exports = {
21136
21260
  ]
21137
21261
  };
21138
21262
 
21139
- },{}],188:[function(require,module,exports){
21263
+ },{}],190:[function(require,module,exports){
21140
21264
  "use strict";
21141
21265
 
21142
21266
  module.exports = {
@@ -21166,7 +21290,7 @@ module.exports = {
21166
21290
  ]
21167
21291
  };
21168
21292
 
21169
- },{}],189:[function(require,module,exports){
21293
+ },{}],191:[function(require,module,exports){
21170
21294
  module.exports={
21171
21295
  "id": "http://json-schema.org/draft-04/schema#",
21172
21296
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -21318,7 +21442,7 @@ module.exports={
21318
21442
  "default": {}
21319
21443
  }
21320
21444
 
21321
- },{}],190:[function(require,module,exports){
21445
+ },{}],192:[function(require,module,exports){
21322
21446
  module.exports={
21323
21447
  "swagger": 2,
21324
21448
  "info": {
@@ -21409,7 +21533,7 @@ module.exports={
21409
21533
  }
21410
21534
  }
21411
21535
 
21412
- },{}],191:[function(require,module,exports){
21536
+ },{}],193:[function(require,module,exports){
21413
21537
  module.exports={
21414
21538
  "title": "A JSON Schema for Swagger 2.0 API.",
21415
21539
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -21807,7 +21931,7 @@ module.exports={
21807
21931
  }
21808
21932
  }
21809
21933
 
21810
- },{}],192:[function(require,module,exports){
21934
+ },{}],194:[function(require,module,exports){
21811
21935
  module.exports={
21812
21936
  "title": "A JSON Schema for Swagger 2.0 API.",
21813
21937
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -22205,7 +22329,7 @@ module.exports={
22205
22329
  }
22206
22330
  }
22207
22331
 
22208
- },{}],193:[function(require,module,exports){
22332
+ },{}],195:[function(require,module,exports){
22209
22333
  'use strict';
22210
22334
 
22211
22335
  module.exports = {
@@ -22230,15 +22354,15 @@ module.exports = {
22230
22354
  ]
22231
22355
  };
22232
22356
 
22233
- },{}],194:[function(require,module,exports){
22234
- arguments[4][189][0].apply(exports,arguments)
22235
- },{"dup":189}],195:[function(require,module,exports){
22357
+ },{}],196:[function(require,module,exports){
22358
+ arguments[4][191][0].apply(exports,arguments)
22359
+ },{"dup":191}],197:[function(require,module,exports){
22236
22360
  module.exports={
22237
22361
  "type": "integer"
22238
22362
  }
22239
- },{}],196:[function(require,module,exports){
22240
- arguments[4][195][0].apply(exports,arguments)
22241
- },{"dup":195}],197:[function(require,module,exports){
22363
+ },{}],198:[function(require,module,exports){
22364
+ arguments[4][197][0].apply(exports,arguments)
22365
+ },{"dup":197}],199:[function(require,module,exports){
22242
22366
  module.exports={
22243
22367
  "integer": {
22244
22368
  "type": "integer"
@@ -22247,7 +22371,7 @@ module.exports={
22247
22371
  "$ref": "#/integer"
22248
22372
  }
22249
22373
  }
22250
- },{}],198:[function(require,module,exports){
22374
+ },{}],200:[function(require,module,exports){
22251
22375
  module.exports=[
22252
22376
  {
22253
22377
  "description": "additionalItems as schema",
@@ -22331,7 +22455,7 @@ module.exports=[
22331
22455
  }
22332
22456
  ]
22333
22457
 
22334
- },{}],199:[function(require,module,exports){
22458
+ },{}],201:[function(require,module,exports){
22335
22459
  module.exports=[
22336
22460
  {
22337
22461
  "description":
@@ -22421,7 +22545,7 @@ module.exports=[
22421
22545
  }
22422
22546
  ]
22423
22547
 
22424
- },{}],200:[function(require,module,exports){
22548
+ },{}],202:[function(require,module,exports){
22425
22549
  module.exports=[
22426
22550
  {
22427
22551
  "description": "allOf",
@@ -22535,7 +22659,7 @@ module.exports=[
22535
22659
  }
22536
22660
  ]
22537
22661
 
22538
- },{}],201:[function(require,module,exports){
22662
+ },{}],203:[function(require,module,exports){
22539
22663
  module.exports=[
22540
22664
  {
22541
22665
  "description": "anyOf",
@@ -22605,7 +22729,7 @@ module.exports=[
22605
22729
  }
22606
22730
  ]
22607
22731
 
22608
- },{}],202:[function(require,module,exports){
22732
+ },{}],204:[function(require,module,exports){
22609
22733
  module.exports=[
22610
22734
  {
22611
22735
  "description": "invalid type for default",
@@ -22656,7 +22780,7 @@ module.exports=[
22656
22780
  }
22657
22781
  ]
22658
22782
 
22659
- },{}],203:[function(require,module,exports){
22783
+ },{}],205:[function(require,module,exports){
22660
22784
  module.exports=[
22661
22785
  {
22662
22786
  "description": "valid definition",
@@ -22690,7 +22814,7 @@ module.exports=[
22690
22814
  }
22691
22815
  ]
22692
22816
 
22693
- },{}],204:[function(require,module,exports){
22817
+ },{}],206:[function(require,module,exports){
22694
22818
  module.exports=[
22695
22819
  {
22696
22820
  "description": "dependencies",
@@ -22805,7 +22929,7 @@ module.exports=[
22805
22929
  }
22806
22930
  ]
22807
22931
 
22808
- },{}],205:[function(require,module,exports){
22932
+ },{}],207:[function(require,module,exports){
22809
22933
  module.exports=[
22810
22934
  {
22811
22935
  "description": "simple enum validation",
@@ -22879,7 +23003,7 @@ module.exports=[
22879
23003
  }
22880
23004
  ]
22881
23005
 
22882
- },{}],206:[function(require,module,exports){
23006
+ },{}],208:[function(require,module,exports){
22883
23007
  module.exports=[
22884
23008
  {
22885
23009
  "description": "a schema given for items",
@@ -22927,7 +23051,7 @@ module.exports=[
22927
23051
  }
22928
23052
  ]
22929
23053
 
22930
- },{}],207:[function(require,module,exports){
23054
+ },{}],209:[function(require,module,exports){
22931
23055
  module.exports=[
22932
23056
  {
22933
23057
  "description": "maxItems validation",
@@ -22957,7 +23081,7 @@ module.exports=[
22957
23081
  }
22958
23082
  ]
22959
23083
 
22960
- },{}],208:[function(require,module,exports){
23084
+ },{}],210:[function(require,module,exports){
22961
23085
  module.exports=[
22962
23086
  {
22963
23087
  "description": "maxLength validation",
@@ -22992,7 +23116,7 @@ module.exports=[
22992
23116
  }
22993
23117
  ]
22994
23118
 
22995
- },{}],209:[function(require,module,exports){
23119
+ },{}],211:[function(require,module,exports){
22996
23120
  module.exports=[
22997
23121
  {
22998
23122
  "description": "maxProperties validation",
@@ -23022,7 +23146,7 @@ module.exports=[
23022
23146
  }
23023
23147
  ]
23024
23148
 
23025
- },{}],210:[function(require,module,exports){
23149
+ },{}],212:[function(require,module,exports){
23026
23150
  module.exports=[
23027
23151
  {
23028
23152
  "description": "maximum validation",
@@ -23066,7 +23190,7 @@ module.exports=[
23066
23190
  }
23067
23191
  ]
23068
23192
 
23069
- },{}],211:[function(require,module,exports){
23193
+ },{}],213:[function(require,module,exports){
23070
23194
  module.exports=[
23071
23195
  {
23072
23196
  "description": "minItems validation",
@@ -23096,7 +23220,7 @@ module.exports=[
23096
23220
  }
23097
23221
  ]
23098
23222
 
23099
- },{}],212:[function(require,module,exports){
23223
+ },{}],214:[function(require,module,exports){
23100
23224
  module.exports=[
23101
23225
  {
23102
23226
  "description": "minLength validation",
@@ -23131,7 +23255,7 @@ module.exports=[
23131
23255
  }
23132
23256
  ]
23133
23257
 
23134
- },{}],213:[function(require,module,exports){
23258
+ },{}],215:[function(require,module,exports){
23135
23259
  module.exports=[
23136
23260
  {
23137
23261
  "description": "minProperties validation",
@@ -23161,7 +23285,7 @@ module.exports=[
23161
23285
  }
23162
23286
  ]
23163
23287
 
23164
- },{}],214:[function(require,module,exports){
23288
+ },{}],216:[function(require,module,exports){
23165
23289
  module.exports=[
23166
23290
  {
23167
23291
  "description": "minimum validation",
@@ -23205,7 +23329,7 @@ module.exports=[
23205
23329
  }
23206
23330
  ]
23207
23331
 
23208
- },{}],215:[function(require,module,exports){
23332
+ },{}],217:[function(require,module,exports){
23209
23333
  module.exports=[
23210
23334
  {
23211
23335
  "description": "by int",
@@ -23267,7 +23391,7 @@ module.exports=[
23267
23391
  }
23268
23392
  ]
23269
23393
 
23270
- },{}],216:[function(require,module,exports){
23394
+ },{}],218:[function(require,module,exports){
23271
23395
  module.exports=[
23272
23396
  {
23273
23397
  "description": "not",
@@ -23365,7 +23489,7 @@ module.exports=[
23365
23489
 
23366
23490
  ]
23367
23491
 
23368
- },{}],217:[function(require,module,exports){
23492
+ },{}],219:[function(require,module,exports){
23369
23493
  module.exports=[
23370
23494
  {
23371
23495
  "description": "oneOf",
@@ -23435,7 +23559,7 @@ module.exports=[
23435
23559
  }
23436
23560
  ]
23437
23561
 
23438
- },{}],218:[function(require,module,exports){
23562
+ },{}],220:[function(require,module,exports){
23439
23563
  module.exports=[
23440
23564
  {
23441
23565
  "description": "integer",
@@ -23544,7 +23668,7 @@ module.exports=[
23544
23668
  }
23545
23669
  ]
23546
23670
 
23547
- },{}],219:[function(require,module,exports){
23671
+ },{}],221:[function(require,module,exports){
23548
23672
  module.exports=[
23549
23673
  {
23550
23674
  "description": "validation of date-time strings",
@@ -23689,7 +23813,7 @@ module.exports=[
23689
23813
  }
23690
23814
  ]
23691
23815
 
23692
- },{}],220:[function(require,module,exports){
23816
+ },{}],222:[function(require,module,exports){
23693
23817
  module.exports=[
23694
23818
  {
23695
23819
  "description": "pattern validation",
@@ -23714,7 +23838,7 @@ module.exports=[
23714
23838
  }
23715
23839
  ]
23716
23840
 
23717
- },{}],221:[function(require,module,exports){
23841
+ },{}],223:[function(require,module,exports){
23718
23842
  module.exports=[
23719
23843
  {
23720
23844
  "description":
@@ -23826,7 +23950,7 @@ module.exports=[
23826
23950
  }
23827
23951
  ]
23828
23952
 
23829
- },{}],222:[function(require,module,exports){
23953
+ },{}],224:[function(require,module,exports){
23830
23954
  module.exports=[
23831
23955
  {
23832
23956
  "description": "object properties validation",
@@ -23920,7 +24044,7 @@ module.exports=[
23920
24044
  }
23921
24045
  ]
23922
24046
 
23923
- },{}],223:[function(require,module,exports){
24047
+ },{}],225:[function(require,module,exports){
23924
24048
  module.exports=[
23925
24049
  {
23926
24050
  "description": "root pointer ref",
@@ -24066,7 +24190,7 @@ module.exports=[
24066
24190
  }
24067
24191
  ]
24068
24192
 
24069
- },{}],224:[function(require,module,exports){
24193
+ },{}],226:[function(require,module,exports){
24070
24194
  module.exports=[
24071
24195
  {
24072
24196
  "description": "remote ref",
@@ -24142,7 +24266,7 @@ module.exports=[
24142
24266
  }
24143
24267
  ]
24144
24268
 
24145
- },{}],225:[function(require,module,exports){
24269
+ },{}],227:[function(require,module,exports){
24146
24270
  module.exports=[
24147
24271
  {
24148
24272
  "description": "required validation",
@@ -24183,7 +24307,7 @@ module.exports=[
24183
24307
  }
24184
24308
  ]
24185
24309
 
24186
- },{}],226:[function(require,module,exports){
24310
+ },{}],228:[function(require,module,exports){
24187
24311
  module.exports=[
24188
24312
  {
24189
24313
  "description": "integer type matches integers",
@@ -24515,7 +24639,7 @@ module.exports=[
24515
24639
  }
24516
24640
  ]
24517
24641
 
24518
- },{}],227:[function(require,module,exports){
24642
+ },{}],229:[function(require,module,exports){
24519
24643
  module.exports=[
24520
24644
  {
24521
24645
  "description": "uniqueItems validation",
@@ -24596,7 +24720,7 @@ module.exports=[
24596
24720
  }
24597
24721
  ]
24598
24722
 
24599
- },{}],228:[function(require,module,exports){
24723
+ },{}],230:[function(require,module,exports){
24600
24724
  "use strict";
24601
24725
 
24602
24726
  var isBrowser = typeof window !== "undefined";
@@ -24689,7 +24813,7 @@ describe("Automatic schema loading", function () {
24689
24813
 
24690
24814
  });
24691
24815
 
24692
- },{"../../src/ZSchema":120,"https":7}],229:[function(require,module,exports){
24816
+ },{"../../src/ZSchema":122,"https":7}],231:[function(require,module,exports){
24693
24817
  "use strict";
24694
24818
 
24695
24819
  var ZSchema = require("../../src/ZSchema");
@@ -24761,7 +24885,7 @@ describe("Basic", function () {
24761
24885
 
24762
24886
  });
24763
24887
 
24764
- },{"../../src/ZSchema":120,"../files/draft-04-schema.json":194,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":195,"../jsonSchemaTestSuite/remotes/integer.json":196,"../jsonSchemaTestSuite/remotes/subSchemas.json":197}],230:[function(require,module,exports){
24888
+ },{"../../src/ZSchema":122,"../files/draft-04-schema.json":196,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":197,"../jsonSchemaTestSuite/remotes/integer.json":198,"../jsonSchemaTestSuite/remotes/subSchemas.json":199}],232:[function(require,module,exports){
24765
24889
  "use strict";
24766
24890
 
24767
24891
  var ZSchema = require("../../src/ZSchema");
@@ -24857,7 +24981,7 @@ describe("JsonSchemaTestSuite", function () {
24857
24981
 
24858
24982
  });
24859
24983
 
24860
- },{"../../src/ZSchema":120,"../files/draft-04-schema.json":194,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":195,"../jsonSchemaTestSuite/remotes/integer.json":196,"../jsonSchemaTestSuite/remotes/subSchemas.json":197,"../jsonSchemaTestSuite/tests/draft4/additionalItems.json":198,"../jsonSchemaTestSuite/tests/draft4/additionalProperties.json":199,"../jsonSchemaTestSuite/tests/draft4/allOf.json":200,"../jsonSchemaTestSuite/tests/draft4/anyOf.json":201,"../jsonSchemaTestSuite/tests/draft4/default.json":202,"../jsonSchemaTestSuite/tests/draft4/definitions.json":203,"../jsonSchemaTestSuite/tests/draft4/dependencies.json":204,"../jsonSchemaTestSuite/tests/draft4/enum.json":205,"../jsonSchemaTestSuite/tests/draft4/items.json":206,"../jsonSchemaTestSuite/tests/draft4/maxItems.json":207,"../jsonSchemaTestSuite/tests/draft4/maxLength.json":208,"../jsonSchemaTestSuite/tests/draft4/maxProperties.json":209,"../jsonSchemaTestSuite/tests/draft4/maximum.json":210,"../jsonSchemaTestSuite/tests/draft4/minItems.json":211,"../jsonSchemaTestSuite/tests/draft4/minLength.json":212,"../jsonSchemaTestSuite/tests/draft4/minProperties.json":213,"../jsonSchemaTestSuite/tests/draft4/minimum.json":214,"../jsonSchemaTestSuite/tests/draft4/multipleOf.json":215,"../jsonSchemaTestSuite/tests/draft4/not.json":216,"../jsonSchemaTestSuite/tests/draft4/oneOf.json":217,"../jsonSchemaTestSuite/tests/draft4/optional/bignum.json":218,"../jsonSchemaTestSuite/tests/draft4/optional/format.json":219,"../jsonSchemaTestSuite/tests/draft4/pattern.json":220,"../jsonSchemaTestSuite/tests/draft4/patternProperties.json":221,"../jsonSchemaTestSuite/tests/draft4/properties.json":222,"../jsonSchemaTestSuite/tests/draft4/ref.json":223,"../jsonSchemaTestSuite/tests/draft4/refRemote.json":224,"../jsonSchemaTestSuite/tests/draft4/required.json":225,"../jsonSchemaTestSuite/tests/draft4/type.json":226,"../jsonSchemaTestSuite/tests/draft4/uniqueItems.json":227}],231:[function(require,module,exports){
24984
+ },{"../../src/ZSchema":122,"../files/draft-04-schema.json":196,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":197,"../jsonSchemaTestSuite/remotes/integer.json":198,"../jsonSchemaTestSuite/remotes/subSchemas.json":199,"../jsonSchemaTestSuite/tests/draft4/additionalItems.json":200,"../jsonSchemaTestSuite/tests/draft4/additionalProperties.json":201,"../jsonSchemaTestSuite/tests/draft4/allOf.json":202,"../jsonSchemaTestSuite/tests/draft4/anyOf.json":203,"../jsonSchemaTestSuite/tests/draft4/default.json":204,"../jsonSchemaTestSuite/tests/draft4/definitions.json":205,"../jsonSchemaTestSuite/tests/draft4/dependencies.json":206,"../jsonSchemaTestSuite/tests/draft4/enum.json":207,"../jsonSchemaTestSuite/tests/draft4/items.json":208,"../jsonSchemaTestSuite/tests/draft4/maxItems.json":209,"../jsonSchemaTestSuite/tests/draft4/maxLength.json":210,"../jsonSchemaTestSuite/tests/draft4/maxProperties.json":211,"../jsonSchemaTestSuite/tests/draft4/maximum.json":212,"../jsonSchemaTestSuite/tests/draft4/minItems.json":213,"../jsonSchemaTestSuite/tests/draft4/minLength.json":214,"../jsonSchemaTestSuite/tests/draft4/minProperties.json":215,"../jsonSchemaTestSuite/tests/draft4/minimum.json":216,"../jsonSchemaTestSuite/tests/draft4/multipleOf.json":217,"../jsonSchemaTestSuite/tests/draft4/not.json":218,"../jsonSchemaTestSuite/tests/draft4/oneOf.json":219,"../jsonSchemaTestSuite/tests/draft4/optional/bignum.json":220,"../jsonSchemaTestSuite/tests/draft4/optional/format.json":221,"../jsonSchemaTestSuite/tests/draft4/pattern.json":222,"../jsonSchemaTestSuite/tests/draft4/patternProperties.json":223,"../jsonSchemaTestSuite/tests/draft4/properties.json":224,"../jsonSchemaTestSuite/tests/draft4/ref.json":225,"../jsonSchemaTestSuite/tests/draft4/refRemote.json":226,"../jsonSchemaTestSuite/tests/draft4/required.json":227,"../jsonSchemaTestSuite/tests/draft4/type.json":228,"../jsonSchemaTestSuite/tests/draft4/uniqueItems.json":229}],233:[function(require,module,exports){
24861
24985
  "use strict";
24862
24986
 
24863
24987
  var ZSchema = require("../../src/ZSchema");
@@ -24891,7 +25015,7 @@ describe("Using multiple instances of Z-Schema", function () {
24891
25015
 
24892
25016
  });
24893
25017
 
24894
- },{"../../src/ZSchema":120}],232:[function(require,module,exports){
25018
+ },{"../../src/ZSchema":122}],234:[function(require,module,exports){
24895
25019
  /*jshint -W030 */
24896
25020
 
24897
25021
  "use strict";
@@ -25089,7 +25213,7 @@ describe("ZSchemaTestSuite", function () {
25089
25213
 
25090
25214
  });
25091
25215
 
25092
- },{"../../src/ZSchema":120,"../ZSchemaTestSuite/AssumeAdditional.js":123,"../ZSchemaTestSuite/CustomFormats.js":124,"../ZSchemaTestSuite/CustomFormatsAsync.js":125,"../ZSchemaTestSuite/CustomValidator.js":126,"../ZSchemaTestSuite/ErrorPathAsArray.js":127,"../ZSchemaTestSuite/ErrorPathAsJSONPointer.js":128,"../ZSchemaTestSuite/ForceAdditional.js":129,"../ZSchemaTestSuite/ForceItems.js":130,"../ZSchemaTestSuite/ForceMaxItems.js":131,"../ZSchemaTestSuite/ForceMaxLength.js":132,"../ZSchemaTestSuite/ForceMinItems.js":133,"../ZSchemaTestSuite/ForceMinLength.js":134,"../ZSchemaTestSuite/ForceProperties.js":135,"../ZSchemaTestSuite/IgnoreUnresolvableReferences.js":136,"../ZSchemaTestSuite/InvalidId.js":137,"../ZSchemaTestSuite/Issue101.js":138,"../ZSchemaTestSuite/Issue102.js":139,"../ZSchemaTestSuite/Issue103.js":140,"../ZSchemaTestSuite/Issue106.js":141,"../ZSchemaTestSuite/Issue107.js":142,"../ZSchemaTestSuite/Issue12.js":143,"../ZSchemaTestSuite/Issue121.js":144,"../ZSchemaTestSuite/Issue125.js":145,"../ZSchemaTestSuite/Issue126.js":146,"../ZSchemaTestSuite/Issue13.js":147,"../ZSchemaTestSuite/Issue130.js":148,"../ZSchemaTestSuite/Issue131.js":149,"../ZSchemaTestSuite/Issue137.js":150,"../ZSchemaTestSuite/Issue139.js":151,"../ZSchemaTestSuite/Issue142.js":152,"../ZSchemaTestSuite/Issue146.js":153,"../ZSchemaTestSuite/Issue151.js":154,"../ZSchemaTestSuite/Issue16.js":155,"../ZSchemaTestSuite/Issue22.js":156,"../ZSchemaTestSuite/Issue25.js":157,"../ZSchemaTestSuite/Issue26.js":158,"../ZSchemaTestSuite/Issue37.js":159,"../ZSchemaTestSuite/Issue40.js":160,"../ZSchemaTestSuite/Issue41.js":161,"../ZSchemaTestSuite/Issue43.js":162,"../ZSchemaTestSuite/Issue44.js":163,"../ZSchemaTestSuite/Issue45.js":164,"../ZSchemaTestSuite/Issue47.js":165,"../ZSchemaTestSuite/Issue48.js":166,"../ZSchemaTestSuite/Issue49.js":167,"../ZSchemaTestSuite/Issue53.js":168,"../ZSchemaTestSuite/Issue56.js":169,"../ZSchemaTestSuite/Issue57.js":170,"../ZSchemaTestSuite/Issue58.js":171,"../ZSchemaTestSuite/Issue63.js":172,"../ZSchemaTestSuite/Issue64.js":173,"../ZSchemaTestSuite/Issue67.js":174,"../ZSchemaTestSuite/Issue71.js":175,"../ZSchemaTestSuite/Issue73.js":176,"../ZSchemaTestSuite/Issue76.js":177,"../ZSchemaTestSuite/Issue85.js":178,"../ZSchemaTestSuite/Issue94.js":179,"../ZSchemaTestSuite/Issue96.js":180,"../ZSchemaTestSuite/Issue98.js":181,"../ZSchemaTestSuite/MultipleSchemas.js":182,"../ZSchemaTestSuite/NoEmptyArrays.js":183,"../ZSchemaTestSuite/NoEmptyStrings.js":184,"../ZSchemaTestSuite/NoExtraKeywords.js":185,"../ZSchemaTestSuite/NoTypeless.js":186,"../ZSchemaTestSuite/PedanticCheck.js":187,"../ZSchemaTestSuite/StrictUris.js":188,"../ZSchemaTestSuite/getRegisteredFormats.js":193}],233:[function(require,module,exports){
25216
+ },{"../../src/ZSchema":122,"../ZSchemaTestSuite/AssumeAdditional.js":125,"../ZSchemaTestSuite/CustomFormats.js":126,"../ZSchemaTestSuite/CustomFormatsAsync.js":127,"../ZSchemaTestSuite/CustomValidator.js":128,"../ZSchemaTestSuite/ErrorPathAsArray.js":129,"../ZSchemaTestSuite/ErrorPathAsJSONPointer.js":130,"../ZSchemaTestSuite/ForceAdditional.js":131,"../ZSchemaTestSuite/ForceItems.js":132,"../ZSchemaTestSuite/ForceMaxItems.js":133,"../ZSchemaTestSuite/ForceMaxLength.js":134,"../ZSchemaTestSuite/ForceMinItems.js":135,"../ZSchemaTestSuite/ForceMinLength.js":136,"../ZSchemaTestSuite/ForceProperties.js":137,"../ZSchemaTestSuite/IgnoreUnresolvableReferences.js":138,"../ZSchemaTestSuite/InvalidId.js":139,"../ZSchemaTestSuite/Issue101.js":140,"../ZSchemaTestSuite/Issue102.js":141,"../ZSchemaTestSuite/Issue103.js":142,"../ZSchemaTestSuite/Issue106.js":143,"../ZSchemaTestSuite/Issue107.js":144,"../ZSchemaTestSuite/Issue12.js":145,"../ZSchemaTestSuite/Issue121.js":146,"../ZSchemaTestSuite/Issue125.js":147,"../ZSchemaTestSuite/Issue126.js":148,"../ZSchemaTestSuite/Issue13.js":149,"../ZSchemaTestSuite/Issue130.js":150,"../ZSchemaTestSuite/Issue131.js":151,"../ZSchemaTestSuite/Issue137.js":152,"../ZSchemaTestSuite/Issue139.js":153,"../ZSchemaTestSuite/Issue142.js":154,"../ZSchemaTestSuite/Issue146.js":155,"../ZSchemaTestSuite/Issue151.js":156,"../ZSchemaTestSuite/Issue16.js":157,"../ZSchemaTestSuite/Issue22.js":158,"../ZSchemaTestSuite/Issue25.js":159,"../ZSchemaTestSuite/Issue26.js":160,"../ZSchemaTestSuite/Issue37.js":161,"../ZSchemaTestSuite/Issue40.js":162,"../ZSchemaTestSuite/Issue41.js":163,"../ZSchemaTestSuite/Issue43.js":164,"../ZSchemaTestSuite/Issue44.js":165,"../ZSchemaTestSuite/Issue45.js":166,"../ZSchemaTestSuite/Issue47.js":167,"../ZSchemaTestSuite/Issue48.js":168,"../ZSchemaTestSuite/Issue49.js":169,"../ZSchemaTestSuite/Issue53.js":170,"../ZSchemaTestSuite/Issue56.js":171,"../ZSchemaTestSuite/Issue57.js":172,"../ZSchemaTestSuite/Issue58.js":173,"../ZSchemaTestSuite/Issue63.js":174,"../ZSchemaTestSuite/Issue64.js":175,"../ZSchemaTestSuite/Issue67.js":176,"../ZSchemaTestSuite/Issue71.js":177,"../ZSchemaTestSuite/Issue73.js":178,"../ZSchemaTestSuite/Issue76.js":179,"../ZSchemaTestSuite/Issue85.js":180,"../ZSchemaTestSuite/Issue94.js":181,"../ZSchemaTestSuite/Issue96.js":182,"../ZSchemaTestSuite/Issue98.js":183,"../ZSchemaTestSuite/MultipleSchemas.js":184,"../ZSchemaTestSuite/NoEmptyArrays.js":185,"../ZSchemaTestSuite/NoEmptyStrings.js":186,"../ZSchemaTestSuite/NoExtraKeywords.js":187,"../ZSchemaTestSuite/NoTypeless.js":188,"../ZSchemaTestSuite/PedanticCheck.js":189,"../ZSchemaTestSuite/StrictUris.js":190,"../ZSchemaTestSuite/getRegisteredFormats.js":195}],235:[function(require,module,exports){
25093
25217
  "use strict";
25094
25218
 
25095
25219
  var ZSchema = require("../../src/ZSchema");
@@ -25188,4 +25312,4 @@ describe("Using path to schema as a third argument", function () {
25188
25312
 
25189
25313
  });
25190
25314
 
25191
- },{"../../src/ZSchema":120}]},{},[228,229,230,231,233,232]);
25315
+ },{"../../src/ZSchema":122}]},{},[230,231,232,233,235,234]);