z-schema 3.22.0 → 3.23.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.
@@ -210,26 +210,24 @@ function typedArraySupport () {
210
210
  }
211
211
 
212
212
  Object.defineProperty(Buffer.prototype, 'parent', {
213
+ enumerable: true,
213
214
  get: function () {
214
- if (!(this instanceof Buffer)) {
215
- return undefined
216
- }
215
+ if (!Buffer.isBuffer(this)) return undefined
217
216
  return this.buffer
218
217
  }
219
218
  })
220
219
 
221
220
  Object.defineProperty(Buffer.prototype, 'offset', {
221
+ enumerable: true,
222
222
  get: function () {
223
- if (!(this instanceof Buffer)) {
224
- return undefined
225
- }
223
+ if (!Buffer.isBuffer(this)) return undefined
226
224
  return this.byteOffset
227
225
  }
228
226
  })
229
227
 
230
228
  function createBuffer (length) {
231
229
  if (length > K_MAX_LENGTH) {
232
- throw new RangeError('Invalid typed array length')
230
+ throw new RangeError('The value "' + length + '" is invalid for option "size"')
233
231
  }
234
232
  // Return an augmented `Uint8Array` instance
235
233
  var buf = new Uint8Array(length)
@@ -251,8 +249,8 @@ function Buffer (arg, encodingOrOffset, length) {
251
249
  // Common case.
252
250
  if (typeof arg === 'number') {
253
251
  if (typeof encodingOrOffset === 'string') {
254
- throw new Error(
255
- 'If encoding is specified then the first argument must be a string'
252
+ throw new TypeError(
253
+ 'The "string" argument must be of type string. Received type number'
256
254
  )
257
255
  }
258
256
  return allocUnsafe(arg)
@@ -261,7 +259,7 @@ function Buffer (arg, encodingOrOffset, length) {
261
259
  }
262
260
 
263
261
  // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
264
- if (typeof Symbol !== 'undefined' && Symbol.species &&
262
+ if (typeof Symbol !== 'undefined' && Symbol.species != null &&
265
263
  Buffer[Symbol.species] === Buffer) {
266
264
  Object.defineProperty(Buffer, Symbol.species, {
267
265
  value: null,
@@ -274,19 +272,51 @@ if (typeof Symbol !== 'undefined' && Symbol.species &&
274
272
  Buffer.poolSize = 8192 // not used by this implementation
275
273
 
276
274
  function from (value, encodingOrOffset, length) {
277
- if (typeof value === 'number') {
278
- throw new TypeError('"value" argument must not be a number')
275
+ if (typeof value === 'string') {
276
+ return fromString(value, encodingOrOffset)
277
+ }
278
+
279
+ if (ArrayBuffer.isView(value)) {
280
+ return fromArrayLike(value)
281
+ }
282
+
283
+ if (value == null) {
284
+ throw TypeError(
285
+ 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +
286
+ 'or Array-like Object. Received type ' + (typeof value)
287
+ )
279
288
  }
280
289
 
281
- if (isArrayBuffer(value) || (value && isArrayBuffer(value.buffer))) {
290
+ if (isInstance(value, ArrayBuffer) ||
291
+ (value && isInstance(value.buffer, ArrayBuffer))) {
282
292
  return fromArrayBuffer(value, encodingOrOffset, length)
283
293
  }
284
294
 
285
- if (typeof value === 'string') {
286
- return fromString(value, encodingOrOffset)
295
+ if (typeof value === 'number') {
296
+ throw new TypeError(
297
+ 'The "value" argument must not be of type number. Received type number'
298
+ )
287
299
  }
288
300
 
289
- return fromObject(value)
301
+ var valueOf = value.valueOf && value.valueOf()
302
+ if (valueOf != null && valueOf !== value) {
303
+ return Buffer.from(valueOf, encodingOrOffset, length)
304
+ }
305
+
306
+ var b = fromObject(value)
307
+ if (b) return b
308
+
309
+ if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&
310
+ typeof value[Symbol.toPrimitive] === 'function') {
311
+ return Buffer.from(
312
+ value[Symbol.toPrimitive]('string'), encodingOrOffset, length
313
+ )
314
+ }
315
+
316
+ throw new TypeError(
317
+ 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +
318
+ 'or Array-like Object. Received type ' + (typeof value)
319
+ )
290
320
  }
291
321
 
292
322
  /**
@@ -310,7 +340,7 @@ function assertSize (size) {
310
340
  if (typeof size !== 'number') {
311
341
  throw new TypeError('"size" argument must be of type number')
312
342
  } else if (size < 0) {
313
- throw new RangeError('"size" argument must not be negative')
343
+ throw new RangeError('The value "' + size + '" is invalid for option "size"')
314
344
  }
315
345
  }
316
346
 
@@ -425,20 +455,16 @@ function fromObject (obj) {
425
455
  return buf
426
456
  }
427
457
 
428
- if (obj) {
429
- if (ArrayBuffer.isView(obj) || 'length' in obj) {
430
- if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {
431
- return createBuffer(0)
432
- }
433
- return fromArrayLike(obj)
434
- }
435
-
436
- if (obj.type === 'Buffer' && Array.isArray(obj.data)) {
437
- return fromArrayLike(obj.data)
458
+ if (obj.length !== undefined) {
459
+ if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {
460
+ return createBuffer(0)
438
461
  }
462
+ return fromArrayLike(obj)
439
463
  }
440
464
 
441
- throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object.')
465
+ if (obj.type === 'Buffer' && Array.isArray(obj.data)) {
466
+ return fromArrayLike(obj.data)
467
+ }
442
468
  }
443
469
 
444
470
  function checked (length) {
@@ -459,12 +485,17 @@ function SlowBuffer (length) {
459
485
  }
460
486
 
461
487
  Buffer.isBuffer = function isBuffer (b) {
462
- return b != null && b._isBuffer === true
488
+ return b != null && b._isBuffer === true &&
489
+ b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false
463
490
  }
464
491
 
465
492
  Buffer.compare = function compare (a, b) {
493
+ if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)
494
+ if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)
466
495
  if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
467
- throw new TypeError('Arguments must be Buffers')
496
+ throw new TypeError(
497
+ 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
498
+ )
468
499
  }
469
500
 
470
501
  if (a === b) return 0
@@ -525,7 +556,7 @@ Buffer.concat = function concat (list, length) {
525
556
  var pos = 0
526
557
  for (i = 0; i < list.length; ++i) {
527
558
  var buf = list[i]
528
- if (ArrayBuffer.isView(buf)) {
559
+ if (isInstance(buf, Uint8Array)) {
529
560
  buf = Buffer.from(buf)
530
561
  }
531
562
  if (!Buffer.isBuffer(buf)) {
@@ -541,15 +572,19 @@ function byteLength (string, encoding) {
541
572
  if (Buffer.isBuffer(string)) {
542
573
  return string.length
543
574
  }
544
- if (ArrayBuffer.isView(string) || isArrayBuffer(string)) {
575
+ if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {
545
576
  return string.byteLength
546
577
  }
547
578
  if (typeof string !== 'string') {
548
- string = '' + string
579
+ throw new TypeError(
580
+ 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' +
581
+ 'Received type ' + typeof string
582
+ )
549
583
  }
550
584
 
551
585
  var len = string.length
552
- if (len === 0) return 0
586
+ var mustMatch = (arguments.length > 2 && arguments[2] === true)
587
+ if (!mustMatch && len === 0) return 0
553
588
 
554
589
  // Use a for loop to avoid recursion
555
590
  var loweredCase = false
@@ -561,7 +596,6 @@ function byteLength (string, encoding) {
561
596
  return len
562
597
  case 'utf8':
563
598
  case 'utf-8':
564
- case undefined:
565
599
  return utf8ToBytes(string).length
566
600
  case 'ucs2':
567
601
  case 'ucs-2':
@@ -573,7 +607,9 @@ function byteLength (string, encoding) {
573
607
  case 'base64':
574
608
  return base64ToBytes(string).length
575
609
  default:
576
- if (loweredCase) return utf8ToBytes(string).length // assume utf8
610
+ if (loweredCase) {
611
+ return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8
612
+ }
577
613
  encoding = ('' + encoding).toLowerCase()
578
614
  loweredCase = true
579
615
  }
@@ -720,16 +756,20 @@ Buffer.prototype.equals = function equals (b) {
720
756
  Buffer.prototype.inspect = function inspect () {
721
757
  var str = ''
722
758
  var max = exports.INSPECT_MAX_BYTES
723
- if (this.length > 0) {
724
- str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
725
- if (this.length > max) str += ' ... '
726
- }
759
+ str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()
760
+ if (this.length > max) str += ' ... '
727
761
  return '<Buffer ' + str + '>'
728
762
  }
729
763
 
730
764
  Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
765
+ if (isInstance(target, Uint8Array)) {
766
+ target = Buffer.from(target, target.offset, target.byteLength)
767
+ }
731
768
  if (!Buffer.isBuffer(target)) {
732
- throw new TypeError('Argument must be a Buffer')
769
+ throw new TypeError(
770
+ 'The "target" argument must be one of type Buffer or Uint8Array. ' +
771
+ 'Received type ' + (typeof target)
772
+ )
733
773
  }
734
774
 
735
775
  if (start === undefined) {
@@ -808,7 +848,7 @@ function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
808
848
  } else if (byteOffset < -0x80000000) {
809
849
  byteOffset = -0x80000000
810
850
  }
811
- byteOffset = +byteOffset // Coerce to Number.
851
+ byteOffset = +byteOffset // Coerce to Number.
812
852
  if (numberIsNaN(byteOffset)) {
813
853
  // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
814
854
  byteOffset = dir ? 0 : (buffer.length - 1)
@@ -1060,8 +1100,8 @@ function utf8Slice (buf, start, end) {
1060
1100
  var codePoint = null
1061
1101
  var bytesPerSequence = (firstByte > 0xEF) ? 4
1062
1102
  : (firstByte > 0xDF) ? 3
1063
- : (firstByte > 0xBF) ? 2
1064
- : 1
1103
+ : (firstByte > 0xBF) ? 2
1104
+ : 1
1065
1105
 
1066
1106
  if (i + bytesPerSequence <= end) {
1067
1107
  var secondByte, thirdByte, fourthByte, tempCodePoint
@@ -1724,7 +1764,7 @@ Buffer.prototype.fill = function fill (val, start, end, encoding) {
1724
1764
  } else {
1725
1765
  var bytes = Buffer.isBuffer(val)
1726
1766
  ? val
1727
- : new Buffer(val, encoding)
1767
+ : Buffer.from(val, encoding)
1728
1768
  var len = bytes.length
1729
1769
  if (len === 0) {
1730
1770
  throw new TypeError('The value "' + val +
@@ -1879,15 +1919,16 @@ function blitBuffer (src, dst, offset, length) {
1879
1919
  return i
1880
1920
  }
1881
1921
 
1882
- // ArrayBuffers from another context (i.e. an iframe) do not pass the `instanceof` check
1883
- // but they should be treated as valid. See: https://github.com/feross/buffer/issues/166
1884
- function isArrayBuffer (obj) {
1885
- return obj instanceof ArrayBuffer ||
1886
- (obj != null && obj.constructor != null && obj.constructor.name === 'ArrayBuffer' &&
1887
- typeof obj.byteLength === 'number')
1922
+ // ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass
1923
+ // the `instanceof` check but they should be treated as of that type.
1924
+ // See: https://github.com/feross/buffer/issues/166
1925
+ function isInstance (obj, type) {
1926
+ return obj instanceof type ||
1927
+ (obj != null && obj.constructor != null && obj.constructor.name != null &&
1928
+ obj.constructor.name === type.name)
1888
1929
  }
1889
-
1890
1930
  function numberIsNaN (obj) {
1931
+ // For IE11 support
1891
1932
  return obj !== obj // eslint-disable-line no-self-compare
1892
1933
  }
1893
1934
 
@@ -2499,24 +2540,28 @@ EventEmitter.prototype.removeAllListeners =
2499
2540
  return this;
2500
2541
  };
2501
2542
 
2502
- EventEmitter.prototype.listeners = function listeners(type) {
2503
- var evlistener;
2504
- var ret;
2505
- var events = this._events;
2543
+ function _listeners(target, type, unwrap) {
2544
+ var events = target._events;
2506
2545
 
2507
2546
  if (!events)
2508
- ret = [];
2509
- else {
2510
- evlistener = events[type];
2511
- if (!evlistener)
2512
- ret = [];
2513
- else if (typeof evlistener === 'function')
2514
- ret = [evlistener.listener || evlistener];
2515
- else
2516
- ret = unwrapListeners(evlistener);
2517
- }
2547
+ return [];
2518
2548
 
2519
- return ret;
2549
+ var evlistener = events[type];
2550
+ if (!evlistener)
2551
+ return [];
2552
+
2553
+ if (typeof evlistener === 'function')
2554
+ return unwrap ? [evlistener.listener || evlistener] : [evlistener];
2555
+
2556
+ return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
2557
+ }
2558
+
2559
+ EventEmitter.prototype.listeners = function listeners(type) {
2560
+ return _listeners(this, type, true);
2561
+ };
2562
+
2563
+ EventEmitter.prototype.rawListeners = function rawListeners(type) {
2564
+ return _listeners(this, type, false);
2520
2565
  };
2521
2566
 
2522
2567
  EventEmitter.listenerCount = function(emitter, type) {
@@ -8926,7 +8971,7 @@ http.METHODS = [
8926
8971
  'UNSUBSCRIBE'
8927
8972
  ]
8928
8973
  }).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":37,"xtend":113}],31:[function(require,module,exports){
8974
+ },{"./lib/request":32,"./lib/response":33,"builtin-status-codes":4,"url":37,"xtend":115}],31:[function(require,module,exports){
8930
8975
  (function (global){
8931
8976
  exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableStream)
8932
8977
 
@@ -9330,7 +9375,6 @@ var unsafeHeaders = [
9330
9375
  'trailer',
9331
9376
  'transfer-encoding',
9332
9377
  'upgrade',
9333
- 'user-agent',
9334
9378
  'via'
9335
9379
  ]
9336
9380
 
@@ -10842,6 +10886,10 @@ var _isIP = require('./lib/isIP');
10842
10886
 
10843
10887
  var _isIP2 = _interopRequireDefault(_isIP);
10844
10888
 
10889
+ var _isIPRange = require('./lib/isIPRange');
10890
+
10891
+ var _isIPRange2 = _interopRequireDefault(_isIPRange);
10892
+
10845
10893
  var _isFQDN = require('./lib/isFQDN');
10846
10894
 
10847
10895
  var _isFQDN2 = _interopRequireDefault(_isFQDN);
@@ -11076,7 +11124,7 @@ var _toString2 = _interopRequireDefault(_toString);
11076
11124
 
11077
11125
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11078
11126
 
11079
- var version = '10.2.0';
11127
+ var version = '10.5.0';
11080
11128
 
11081
11129
  var validator = {
11082
11130
  version: version,
@@ -11091,6 +11139,7 @@ var validator = {
11091
11139
  isURL: _isURL2.default,
11092
11140
  isMACAddress: _isMACAddress2.default,
11093
11141
  isIP: _isIP2.default,
11142
+ isIPRange: _isIPRange2.default,
11094
11143
  isFQDN: _isFQDN2.default,
11095
11144
  isBoolean: _isBoolean2.default,
11096
11145
  isAlpha: _isAlpha2.default,
@@ -11154,7 +11203,7 @@ var validator = {
11154
11203
 
11155
11204
  exports.default = validator;
11156
11205
  module.exports = exports['default'];
11157
- },{"./lib/blacklist":42,"./lib/contains":43,"./lib/equals":44,"./lib/escape":45,"./lib/isAfter":46,"./lib/isAlpha":47,"./lib/isAlphanumeric":48,"./lib/isAscii":49,"./lib/isBase64":50,"./lib/isBefore":51,"./lib/isBoolean":52,"./lib/isByteLength":53,"./lib/isCreditCard":54,"./lib/isCurrency":55,"./lib/isDataURI":56,"./lib/isDecimal":57,"./lib/isDivisibleBy":58,"./lib/isEmail":59,"./lib/isEmpty":60,"./lib/isFQDN":61,"./lib/isFloat":62,"./lib/isFullWidth":63,"./lib/isHalfWidth":64,"./lib/isHash":65,"./lib/isHexColor":66,"./lib/isHexadecimal":67,"./lib/isIP":68,"./lib/isISBN":69,"./lib/isISIN":70,"./lib/isISO31661Alpha2":71,"./lib/isISO31661Alpha3":72,"./lib/isISO8601":73,"./lib/isISRC":74,"./lib/isISSN":75,"./lib/isIn":76,"./lib/isInt":77,"./lib/isJSON":78,"./lib/isLatLong":79,"./lib/isLength":80,"./lib/isLowercase":81,"./lib/isMACAddress":82,"./lib/isMD5":83,"./lib/isMimeType":84,"./lib/isMobilePhone":85,"./lib/isMongoId":86,"./lib/isMultibyte":87,"./lib/isNumeric":88,"./lib/isPort":89,"./lib/isPostalCode":90,"./lib/isRFC3339":91,"./lib/isSurrogatePair":92,"./lib/isURL":93,"./lib/isUUID":94,"./lib/isUppercase":95,"./lib/isVariableWidth":96,"./lib/isWhitelisted":97,"./lib/ltrim":98,"./lib/matches":99,"./lib/normalizeEmail":100,"./lib/rtrim":101,"./lib/stripLow":102,"./lib/toBoolean":103,"./lib/toDate":104,"./lib/toFloat":105,"./lib/toInt":106,"./lib/trim":107,"./lib/unescape":108,"./lib/util/toString":111,"./lib/whitelist":112}],41:[function(require,module,exports){
11206
+ },{"./lib/blacklist":42,"./lib/contains":43,"./lib/equals":44,"./lib/escape":45,"./lib/isAfter":46,"./lib/isAlpha":47,"./lib/isAlphanumeric":48,"./lib/isAscii":49,"./lib/isBase64":50,"./lib/isBefore":51,"./lib/isBoolean":52,"./lib/isByteLength":53,"./lib/isCreditCard":54,"./lib/isCurrency":55,"./lib/isDataURI":56,"./lib/isDecimal":57,"./lib/isDivisibleBy":58,"./lib/isEmail":59,"./lib/isEmpty":60,"./lib/isFQDN":61,"./lib/isFloat":62,"./lib/isFullWidth":63,"./lib/isHalfWidth":64,"./lib/isHash":65,"./lib/isHexColor":66,"./lib/isHexadecimal":67,"./lib/isIP":68,"./lib/isIPRange":69,"./lib/isISBN":70,"./lib/isISIN":71,"./lib/isISO31661Alpha2":72,"./lib/isISO31661Alpha3":73,"./lib/isISO8601":74,"./lib/isISRC":75,"./lib/isISSN":76,"./lib/isIn":77,"./lib/isInt":78,"./lib/isJSON":79,"./lib/isLatLong":80,"./lib/isLength":81,"./lib/isLowercase":82,"./lib/isMACAddress":83,"./lib/isMD5":84,"./lib/isMimeType":85,"./lib/isMobilePhone":86,"./lib/isMongoId":87,"./lib/isMultibyte":88,"./lib/isNumeric":89,"./lib/isPort":90,"./lib/isPostalCode":91,"./lib/isRFC3339":92,"./lib/isSurrogatePair":93,"./lib/isURL":94,"./lib/isUUID":95,"./lib/isUppercase":96,"./lib/isVariableWidth":97,"./lib/isWhitelisted":98,"./lib/ltrim":99,"./lib/matches":100,"./lib/normalizeEmail":101,"./lib/rtrim":102,"./lib/stripLow":103,"./lib/toBoolean":104,"./lib/toDate":105,"./lib/toFloat":106,"./lib/toInt":107,"./lib/trim":108,"./lib/unescape":109,"./lib/util/toString":113,"./lib/whitelist":114}],41:[function(require,module,exports){
11158
11207
  'use strict';
11159
11208
 
11160
11209
  Object.defineProperty(exports, "__esModule", {
@@ -11183,6 +11232,7 @@ var alpha = exports.alpha = {
11183
11232
  'sv-SE': /^[A-ZÅÄÖ]+$/i,
11184
11233
  'tr-TR': /^[A-ZÇĞİıÖŞÜ]+$/i,
11185
11234
  'uk-UA': /^[А-ЩЬЮЯЄIЇҐі]+$/i,
11235
+ 'ku-IQ': /^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,
11186
11236
  ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/
11187
11237
  };
11188
11238
 
@@ -11209,6 +11259,7 @@ var alphanumeric = exports.alphanumeric = {
11209
11259
  'sv-SE': /^[0-9A-ZÅÄÖ]+$/i,
11210
11260
  'tr-TR': /^[0-9A-ZÇĞİıÖŞÜ]+$/i,
11211
11261
  'uk-UA': /^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,
11262
+ 'ku-IQ': /^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,
11212
11263
  ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/
11213
11264
  };
11214
11265
 
@@ -11238,7 +11289,7 @@ for (var _locale, _i = 0; _i < arabicLocales.length; _i++) {
11238
11289
 
11239
11290
  // Source: https://en.wikipedia.org/wiki/Decimal_mark
11240
11291
  var dotDecimal = exports.dotDecimal = [];
11241
- var commaDecimal = exports.commaDecimal = ['bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'es-ES', 'fr-FR', 'it-IT', 'hu-HU', 'nb-NO', 'nn-NO', 'nl-NL', 'pl-Pl', 'pt-PT', 'ru-RU', 'sr-RS@latin', 'sr-RS', 'sv-SE', 'tr-TR', 'uk-UA'];
11292
+ var commaDecimal = exports.commaDecimal = ['bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'es-ES', 'fr-FR', 'it-IT', 'ku-IQ', 'hu-HU', 'nb-NO', 'nn-NO', 'nl-NL', 'pl-PL', 'pt-PT', 'ru-RU', 'sr-RS@latin', 'sr-RS', 'sv-SE', 'tr-TR', 'uk-UA'];
11242
11293
 
11243
11294
  for (var _i2 = 0; _i2 < dotDecimal.length; _i2++) {
11244
11295
  decimal[dotDecimal[_i2]] = decimal['en-US'];
@@ -11251,6 +11302,11 @@ for (var _i3 = 0; _i3 < commaDecimal.length; _i3++) {
11251
11302
  alpha['pt-BR'] = alpha['pt-PT'];
11252
11303
  alphanumeric['pt-BR'] = alphanumeric['pt-PT'];
11253
11304
  decimal['pt-BR'] = decimal['pt-PT'];
11305
+
11306
+ // see #862
11307
+ alpha['pl-Pl'] = alpha['pl-PL'];
11308
+ alphanumeric['pl-Pl'] = alphanumeric['pl-PL'];
11309
+ decimal['pl-Pl'] = decimal['pl-PL'];
11254
11310
  },{}],42:[function(require,module,exports){
11255
11311
  'use strict';
11256
11312
 
@@ -11270,7 +11326,7 @@ function blacklist(str, chars) {
11270
11326
  return str.replace(new RegExp('[' + chars + ']+', 'g'), '');
11271
11327
  }
11272
11328
  module.exports = exports['default'];
11273
- },{"./util/assertString":109}],43:[function(require,module,exports){
11329
+ },{"./util/assertString":110}],43:[function(require,module,exports){
11274
11330
  'use strict';
11275
11331
 
11276
11332
  Object.defineProperty(exports, "__esModule", {
@@ -11293,7 +11349,7 @@ function contains(str, elem) {
11293
11349
  return str.indexOf((0, _toString2.default)(elem)) >= 0;
11294
11350
  }
11295
11351
  module.exports = exports['default'];
11296
- },{"./util/assertString":109,"./util/toString":111}],44:[function(require,module,exports){
11352
+ },{"./util/assertString":110,"./util/toString":113}],44:[function(require,module,exports){
11297
11353
  'use strict';
11298
11354
 
11299
11355
  Object.defineProperty(exports, "__esModule", {
@@ -11312,7 +11368,7 @@ function equals(str, comparison) {
11312
11368
  return str === comparison;
11313
11369
  }
11314
11370
  module.exports = exports['default'];
11315
- },{"./util/assertString":109}],45:[function(require,module,exports){
11371
+ },{"./util/assertString":110}],45:[function(require,module,exports){
11316
11372
  'use strict';
11317
11373
 
11318
11374
  Object.defineProperty(exports, "__esModule", {
@@ -11331,7 +11387,7 @@ function escape(str) {
11331
11387
  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;');
11332
11388
  }
11333
11389
  module.exports = exports['default'];
11334
- },{"./util/assertString":109}],46:[function(require,module,exports){
11390
+ },{"./util/assertString":110}],46:[function(require,module,exports){
11335
11391
  'use strict';
11336
11392
 
11337
11393
  Object.defineProperty(exports, "__esModule", {
@@ -11358,7 +11414,7 @@ function isAfter(str) {
11358
11414
  return !!(original && comparison && original > comparison);
11359
11415
  }
11360
11416
  module.exports = exports['default'];
11361
- },{"./toDate":104,"./util/assertString":109}],47:[function(require,module,exports){
11417
+ },{"./toDate":105,"./util/assertString":110}],47:[function(require,module,exports){
11362
11418
  'use strict';
11363
11419
 
11364
11420
  Object.defineProperty(exports, "__esModule", {
@@ -11384,7 +11440,7 @@ function isAlpha(str) {
11384
11440
  throw new Error('Invalid locale \'' + locale + '\'');
11385
11441
  }
11386
11442
  module.exports = exports['default'];
11387
- },{"./alpha":41,"./util/assertString":109}],48:[function(require,module,exports){
11443
+ },{"./alpha":41,"./util/assertString":110}],48:[function(require,module,exports){
11388
11444
  'use strict';
11389
11445
 
11390
11446
  Object.defineProperty(exports, "__esModule", {
@@ -11410,7 +11466,7 @@ function isAlphanumeric(str) {
11410
11466
  throw new Error('Invalid locale \'' + locale + '\'');
11411
11467
  }
11412
11468
  module.exports = exports['default'];
11413
- },{"./alpha":41,"./util/assertString":109}],49:[function(require,module,exports){
11469
+ },{"./alpha":41,"./util/assertString":110}],49:[function(require,module,exports){
11414
11470
  'use strict';
11415
11471
 
11416
11472
  Object.defineProperty(exports, "__esModule", {
@@ -11433,7 +11489,7 @@ function isAscii(str) {
11433
11489
  return ascii.test(str);
11434
11490
  }
11435
11491
  module.exports = exports['default'];
11436
- },{"./util/assertString":109}],50:[function(require,module,exports){
11492
+ },{"./util/assertString":110}],50:[function(require,module,exports){
11437
11493
  'use strict';
11438
11494
 
11439
11495
  Object.defineProperty(exports, "__esModule", {
@@ -11459,7 +11515,7 @@ function isBase64(str) {
11459
11515
  return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && str[len - 1] === '=';
11460
11516
  }
11461
11517
  module.exports = exports['default'];
11462
- },{"./util/assertString":109}],51:[function(require,module,exports){
11518
+ },{"./util/assertString":110}],51:[function(require,module,exports){
11463
11519
  'use strict';
11464
11520
 
11465
11521
  Object.defineProperty(exports, "__esModule", {
@@ -11486,7 +11542,7 @@ function isBefore(str) {
11486
11542
  return !!(original && comparison && original < comparison);
11487
11543
  }
11488
11544
  module.exports = exports['default'];
11489
- },{"./toDate":104,"./util/assertString":109}],52:[function(require,module,exports){
11545
+ },{"./toDate":105,"./util/assertString":110}],52:[function(require,module,exports){
11490
11546
  'use strict';
11491
11547
 
11492
11548
  Object.defineProperty(exports, "__esModule", {
@@ -11505,7 +11561,7 @@ function isBoolean(str) {
11505
11561
  return ['true', 'false', '1', '0'].indexOf(str) >= 0;
11506
11562
  }
11507
11563
  module.exports = exports['default'];
11508
- },{"./util/assertString":109}],53:[function(require,module,exports){
11564
+ },{"./util/assertString":110}],53:[function(require,module,exports){
11509
11565
  'use strict';
11510
11566
 
11511
11567
  Object.defineProperty(exports, "__esModule", {
@@ -11539,7 +11595,7 @@ function isByteLength(str, options) {
11539
11595
  return len >= min && (typeof max === 'undefined' || len <= max);
11540
11596
  }
11541
11597
  module.exports = exports['default'];
11542
- },{"./util/assertString":109}],54:[function(require,module,exports){
11598
+ },{"./util/assertString":110}],54:[function(require,module,exports){
11543
11599
  'use strict';
11544
11600
 
11545
11601
  Object.defineProperty(exports, "__esModule", {
@@ -11585,7 +11641,7 @@ function isCreditCard(str) {
11585
11641
  return !!(sum % 10 === 0 ? sanitized : false);
11586
11642
  }
11587
11643
  module.exports = exports['default'];
11588
- },{"./util/assertString":109}],55:[function(require,module,exports){
11644
+ },{"./util/assertString":110}],55:[function(require,module,exports){
11589
11645
  'use strict';
11590
11646
 
11591
11647
  Object.defineProperty(exports, "__esModule", {
@@ -11678,7 +11734,7 @@ function isCurrency(str, options) {
11678
11734
  return currencyRegex(options).test(str);
11679
11735
  }
11680
11736
  module.exports = exports['default'];
11681
- },{"./util/assertString":109,"./util/merge":110}],56:[function(require,module,exports){
11737
+ },{"./util/assertString":110,"./util/merge":112}],56:[function(require,module,exports){
11682
11738
  'use strict';
11683
11739
 
11684
11740
  Object.defineProperty(exports, "__esModule", {
@@ -11728,7 +11784,7 @@ function isDataURI(str) {
11728
11784
  return true;
11729
11785
  }
11730
11786
  module.exports = exports['default'];
11731
- },{"./util/assertString":109}],57:[function(require,module,exports){
11787
+ },{"./util/assertString":110}],57:[function(require,module,exports){
11732
11788
  'use strict';
11733
11789
 
11734
11790
  Object.defineProperty(exports, "__esModule", {
@@ -11744,6 +11800,10 @@ var _assertString = require('./util/assertString');
11744
11800
 
11745
11801
  var _assertString2 = _interopRequireDefault(_assertString);
11746
11802
 
11803
+ var _includes = require('./util/includes');
11804
+
11805
+ var _includes2 = _interopRequireDefault(_includes);
11806
+
11747
11807
  var _alpha = require('./alpha');
11748
11808
 
11749
11809
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -11765,12 +11825,12 @@ function isDecimal(str, options) {
11765
11825
  (0, _assertString2.default)(str);
11766
11826
  options = (0, _merge2.default)(options, default_decimal_options);
11767
11827
  if (options.locale in _alpha.decimal) {
11768
- return !blacklist.includes(str.replace(/ /g, '')) && decimalRegExp(options).test(str);
11828
+ return !(0, _includes2.default)(blacklist, str.replace(/ /g, '')) && decimalRegExp(options).test(str);
11769
11829
  }
11770
11830
  throw new Error('Invalid locale \'' + options.locale + '\'');
11771
11831
  }
11772
11832
  module.exports = exports['default'];
11773
- },{"./alpha":41,"./util/assertString":109,"./util/merge":110}],58:[function(require,module,exports){
11833
+ },{"./alpha":41,"./util/assertString":110,"./util/includes":111,"./util/merge":112}],58:[function(require,module,exports){
11774
11834
  'use strict';
11775
11835
 
11776
11836
  Object.defineProperty(exports, "__esModule", {
@@ -11793,7 +11853,7 @@ function isDivisibleBy(str, num) {
11793
11853
  return (0, _toFloat2.default)(str) % parseInt(num, 10) === 0;
11794
11854
  }
11795
11855
  module.exports = exports['default'];
11796
- },{"./toFloat":105,"./util/assertString":109}],59:[function(require,module,exports){
11856
+ },{"./toFloat":106,"./util/assertString":110}],59:[function(require,module,exports){
11797
11857
  'use strict';
11798
11858
 
11799
11859
  Object.defineProperty(exports, "__esModule", {
@@ -11817,6 +11877,10 @@ var _isFQDN = require('./isFQDN');
11817
11877
 
11818
11878
  var _isFQDN2 = _interopRequireDefault(_isFQDN);
11819
11879
 
11880
+ var _isIP = require('./isIP');
11881
+
11882
+ var _isIP2 = _interopRequireDefault(_isIP);
11883
+
11820
11884
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11821
11885
 
11822
11886
  var default_email_options = {
@@ -11830,6 +11894,7 @@ var default_email_options = {
11830
11894
  /* eslint-disable no-control-regex */
11831
11895
  var displayName = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\,\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s]*<(.+)>$/i;
11832
11896
  var emailUserPart = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i;
11897
+ var gmailUserPart = /^[a-z\d]+$/;
11833
11898
  var quotedEmailUser = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i;
11834
11899
  var emailUserUtf8Part = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i;
11835
11900
  var quotedEmailUserUtf8 = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;
@@ -11855,7 +11920,7 @@ function isEmail(str, options) {
11855
11920
 
11856
11921
  var lower_domain = domain.toLowerCase();
11857
11922
 
11858
- if (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com') {
11923
+ if (options.domain_specific_validation && (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com')) {
11859
11924
  /*
11860
11925
  Previously we removed dots for gmail addresses before validating.
11861
11926
  This was removed because it allows `multiple..dots@gmail.com`
@@ -11864,6 +11929,21 @@ function isEmail(str, options) {
11864
11929
  should be done in normalizeEmail
11865
11930
  */
11866
11931
  user = user.toLowerCase();
11932
+
11933
+ // Removing sub-address from username before gmail validation
11934
+ var username = user.split('+')[0];
11935
+
11936
+ // Dots are not included in gmail length restriction
11937
+ if (!(0, _isByteLength2.default)(username.replace('.', ''), { min: 6, max: 30 })) {
11938
+ return false;
11939
+ }
11940
+
11941
+ var _user_parts = username.split('.');
11942
+ for (var i = 0; i < _user_parts.length; i++) {
11943
+ if (!gmailUserPart.test(_user_parts[i])) {
11944
+ return false;
11945
+ }
11946
+ }
11867
11947
  }
11868
11948
 
11869
11949
  if (!(0, _isByteLength2.default)(user, { max: 64 }) || !(0, _isByteLength2.default)(domain, { max: 254 })) {
@@ -11871,7 +11951,21 @@ function isEmail(str, options) {
11871
11951
  }
11872
11952
 
11873
11953
  if (!(0, _isFQDN2.default)(domain, { require_tld: options.require_tld })) {
11874
- return false;
11954
+ if (!options.allow_ip_domain) {
11955
+ return false;
11956
+ }
11957
+
11958
+ if (!(0, _isIP2.default)(domain)) {
11959
+ if (!domain.startsWith('[') || !domain.endsWith(']')) {
11960
+ return false;
11961
+ }
11962
+
11963
+ var noBracketdomain = domain.substr(1, domain.length - 2);
11964
+
11965
+ if (noBracketdomain.length === 0 || !(0, _isIP2.default)(noBracketdomain)) {
11966
+ return false;
11967
+ }
11968
+ }
11875
11969
  }
11876
11970
 
11877
11971
  if (user[0] === '"') {
@@ -11882,8 +11976,8 @@ function isEmail(str, options) {
11882
11976
  var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;
11883
11977
 
11884
11978
  var user_parts = user.split('.');
11885
- for (var i = 0; i < user_parts.length; i++) {
11886
- if (!pattern.test(user_parts[i])) {
11979
+ for (var _i = 0; _i < user_parts.length; _i++) {
11980
+ if (!pattern.test(user_parts[_i])) {
11887
11981
  return false;
11888
11982
  }
11889
11983
  }
@@ -11891,7 +11985,7 @@ function isEmail(str, options) {
11891
11985
  return true;
11892
11986
  }
11893
11987
  module.exports = exports['default'];
11894
- },{"./isByteLength":53,"./isFQDN":61,"./util/assertString":109,"./util/merge":110}],60:[function(require,module,exports){
11988
+ },{"./isByteLength":53,"./isFQDN":61,"./isIP":68,"./util/assertString":110,"./util/merge":112}],60:[function(require,module,exports){
11895
11989
  'use strict';
11896
11990
 
11897
11991
  Object.defineProperty(exports, "__esModule", {
@@ -11910,7 +12004,7 @@ function isEmpty(str) {
11910
12004
  return str.length === 0;
11911
12005
  }
11912
12006
  module.exports = exports['default'];
11913
- },{"./util/assertString":109}],61:[function(require,module,exports){
12007
+ },{"./util/assertString":110}],61:[function(require,module,exports){
11914
12008
  'use strict';
11915
12009
 
11916
12010
  Object.defineProperty(exports, "__esModule", {
@@ -11977,7 +12071,7 @@ function isFQDN(str, options) {
11977
12071
  return true;
11978
12072
  }
11979
12073
  module.exports = exports['default'];
11980
- },{"./util/assertString":109,"./util/merge":110}],62:[function(require,module,exports){
12074
+ },{"./util/assertString":110,"./util/merge":112}],62:[function(require,module,exports){
11981
12075
  'use strict';
11982
12076
 
11983
12077
  Object.defineProperty(exports, "__esModule", {
@@ -12004,7 +12098,7 @@ function isFloat(str, options) {
12004
12098
  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);
12005
12099
  }
12006
12100
  module.exports = exports['default'];
12007
- },{"./alpha":41,"./util/assertString":109}],63:[function(require,module,exports){
12101
+ },{"./alpha":41,"./util/assertString":110}],63:[function(require,module,exports){
12008
12102
  'use strict';
12009
12103
 
12010
12104
  Object.defineProperty(exports, "__esModule", {
@@ -12025,7 +12119,7 @@ function isFullWidth(str) {
12025
12119
  (0, _assertString2.default)(str);
12026
12120
  return fullWidth.test(str);
12027
12121
  }
12028
- },{"./util/assertString":109}],64:[function(require,module,exports){
12122
+ },{"./util/assertString":110}],64:[function(require,module,exports){
12029
12123
  'use strict';
12030
12124
 
12031
12125
  Object.defineProperty(exports, "__esModule", {
@@ -12046,7 +12140,7 @@ function isHalfWidth(str) {
12046
12140
  (0, _assertString2.default)(str);
12047
12141
  return halfWidth.test(str);
12048
12142
  }
12049
- },{"./util/assertString":109}],65:[function(require,module,exports){
12143
+ },{"./util/assertString":110}],65:[function(require,module,exports){
12050
12144
  'use strict';
12051
12145
 
12052
12146
  Object.defineProperty(exports, "__esModule", {
@@ -12082,7 +12176,7 @@ function isHash(str, algorithm) {
12082
12176
  return hash.test(str);
12083
12177
  }
12084
12178
  module.exports = exports['default'];
12085
- },{"./util/assertString":109}],66:[function(require,module,exports){
12179
+ },{"./util/assertString":110}],66:[function(require,module,exports){
12086
12180
  'use strict';
12087
12181
 
12088
12182
  Object.defineProperty(exports, "__esModule", {
@@ -12103,7 +12197,7 @@ function isHexColor(str) {
12103
12197
  return hexcolor.test(str);
12104
12198
  }
12105
12199
  module.exports = exports['default'];
12106
- },{"./util/assertString":109}],67:[function(require,module,exports){
12200
+ },{"./util/assertString":110}],67:[function(require,module,exports){
12107
12201
  'use strict';
12108
12202
 
12109
12203
  Object.defineProperty(exports, "__esModule", {
@@ -12124,7 +12218,7 @@ function isHexadecimal(str) {
12124
12218
  return hexadecimal.test(str);
12125
12219
  }
12126
12220
  module.exports = exports['default'];
12127
- },{"./util/assertString":109}],68:[function(require,module,exports){
12221
+ },{"./util/assertString":110}],68:[function(require,module,exports){
12128
12222
  'use strict';
12129
12223
 
12130
12224
  Object.defineProperty(exports, "__esModule", {
@@ -12206,7 +12300,48 @@ function isIP(str) {
12206
12300
  return false;
12207
12301
  }
12208
12302
  module.exports = exports['default'];
12209
- },{"./util/assertString":109}],69:[function(require,module,exports){
12303
+ },{"./util/assertString":110}],69:[function(require,module,exports){
12304
+ 'use strict';
12305
+
12306
+ Object.defineProperty(exports, "__esModule", {
12307
+ value: true
12308
+ });
12309
+ exports.default = isIPRange;
12310
+
12311
+ var _assertString = require('./util/assertString');
12312
+
12313
+ var _assertString2 = _interopRequireDefault(_assertString);
12314
+
12315
+ var _isIP = require('./isIP');
12316
+
12317
+ var _isIP2 = _interopRequireDefault(_isIP);
12318
+
12319
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12320
+
12321
+ var subnetMaybe = /^\d{1,2}$/;
12322
+
12323
+ function isIPRange(str) {
12324
+ (0, _assertString2.default)(str);
12325
+ var parts = str.split('/');
12326
+
12327
+ // parts[0] -> ip, parts[1] -> subnet
12328
+ if (parts.length !== 2) {
12329
+ return false;
12330
+ }
12331
+
12332
+ if (!subnetMaybe.test(parts[1])) {
12333
+ return false;
12334
+ }
12335
+
12336
+ // Disallow preceding 0 i.e. 01, 02, ...
12337
+ if (parts[1].length > 1 && parts[1].startsWith('0')) {
12338
+ return false;
12339
+ }
12340
+
12341
+ return (0, _isIP2.default)(parts[0], 4) && parts[1] <= 32 && parts[1] >= 0;
12342
+ }
12343
+ module.exports = exports['default'];
12344
+ },{"./isIP":68,"./util/assertString":110}],70:[function(require,module,exports){
12210
12345
  'use strict';
12211
12346
 
12212
12347
  Object.defineProperty(exports, "__esModule", {
@@ -12264,7 +12399,7 @@ function isISBN(str) {
12264
12399
  return false;
12265
12400
  }
12266
12401
  module.exports = exports['default'];
12267
- },{"./util/assertString":109}],70:[function(require,module,exports){
12402
+ },{"./util/assertString":110}],71:[function(require,module,exports){
12268
12403
  'use strict';
12269
12404
 
12270
12405
  Object.defineProperty(exports, "__esModule", {
@@ -12313,7 +12448,7 @@ function isISIN(str) {
12313
12448
  return parseInt(str.substr(str.length - 1), 10) === (10000 - sum) % 10;
12314
12449
  }
12315
12450
  module.exports = exports['default'];
12316
- },{"./util/assertString":109}],71:[function(require,module,exports){
12451
+ },{"./util/assertString":110}],72:[function(require,module,exports){
12317
12452
  'use strict';
12318
12453
 
12319
12454
  Object.defineProperty(exports, "__esModule", {
@@ -12325,6 +12460,10 @@ var _assertString = require('./util/assertString');
12325
12460
 
12326
12461
  var _assertString2 = _interopRequireDefault(_assertString);
12327
12462
 
12463
+ var _includes = require('./util/includes');
12464
+
12465
+ var _includes2 = _interopRequireDefault(_includes);
12466
+
12328
12467
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12329
12468
 
12330
12469
  // from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
@@ -12332,10 +12471,10 @@ var validISO31661Alpha2CountriesCodes = ['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM
12332
12471
 
12333
12472
  function isISO31661Alpha2(str) {
12334
12473
  (0, _assertString2.default)(str);
12335
- return validISO31661Alpha2CountriesCodes.includes(str.toUpperCase());
12474
+ return (0, _includes2.default)(validISO31661Alpha2CountriesCodes, str.toUpperCase());
12336
12475
  }
12337
12476
  module.exports = exports['default'];
12338
- },{"./util/assertString":109}],72:[function(require,module,exports){
12477
+ },{"./util/assertString":110,"./util/includes":111}],73:[function(require,module,exports){
12339
12478
  'use strict';
12340
12479
 
12341
12480
  Object.defineProperty(exports, "__esModule", {
@@ -12347,6 +12486,10 @@ var _assertString = require('./util/assertString');
12347
12486
 
12348
12487
  var _assertString2 = _interopRequireDefault(_assertString);
12349
12488
 
12489
+ var _includes = require('./util/includes');
12490
+
12491
+ var _includes2 = _interopRequireDefault(_includes);
12492
+
12350
12493
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12351
12494
 
12352
12495
  // from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
@@ -12354,10 +12497,10 @@ var validISO31661Alpha3CountriesCodes = ['AFG', 'ALA', 'ALB', 'DZA', 'ASM', 'AND
12354
12497
 
12355
12498
  function isISO31661Alpha3(str) {
12356
12499
  (0, _assertString2.default)(str);
12357
- return validISO31661Alpha3CountriesCodes.includes(str.toUpperCase());
12500
+ return (0, _includes2.default)(validISO31661Alpha3CountriesCodes, str.toUpperCase());
12358
12501
  }
12359
12502
  module.exports = exports['default'];
12360
- },{"./util/assertString":109}],73:[function(require,module,exports){
12503
+ },{"./util/assertString":110,"./util/includes":111}],74:[function(require,module,exports){
12361
12504
  'use strict';
12362
12505
 
12363
12506
  Object.defineProperty(exports, "__esModule", {
@@ -12381,7 +12524,7 @@ function isISO8601(str) {
12381
12524
  return iso8601.test(str);
12382
12525
  }
12383
12526
  module.exports = exports['default'];
12384
- },{"./util/assertString":109}],74:[function(require,module,exports){
12527
+ },{"./util/assertString":110}],75:[function(require,module,exports){
12385
12528
  'use strict';
12386
12529
 
12387
12530
  Object.defineProperty(exports, "__esModule", {
@@ -12403,7 +12546,7 @@ function isISRC(str) {
12403
12546
  return isrc.test(str);
12404
12547
  }
12405
12548
  module.exports = exports['default'];
12406
- },{"./util/assertString":109}],75:[function(require,module,exports){
12549
+ },{"./util/assertString":110}],76:[function(require,module,exports){
12407
12550
  'use strict';
12408
12551
 
12409
12552
  Object.defineProperty(exports, "__esModule", {
@@ -12429,40 +12572,16 @@ function isISSN(str) {
12429
12572
  if (!testIssn.test(str)) {
12430
12573
  return false;
12431
12574
  }
12432
- var issnDigits = str.replace('-', '');
12433
- var position = 8;
12575
+ var digits = str.replace('-', '').toUpperCase();
12434
12576
  var checksum = 0;
12435
- var _iteratorNormalCompletion = true;
12436
- var _didIteratorError = false;
12437
- var _iteratorError = undefined;
12438
-
12439
- try {
12440
- for (var _iterator = issnDigits[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12441
- var digit = _step.value;
12442
-
12443
- var digitValue = digit.toUpperCase() === 'X' ? 10 : +digit;
12444
- checksum += digitValue * position;
12445
- --position;
12446
- }
12447
- } catch (err) {
12448
- _didIteratorError = true;
12449
- _iteratorError = err;
12450
- } finally {
12451
- try {
12452
- if (!_iteratorNormalCompletion && _iterator.return) {
12453
- _iterator.return();
12454
- }
12455
- } finally {
12456
- if (_didIteratorError) {
12457
- throw _iteratorError;
12458
- }
12459
- }
12577
+ for (var i = 0; i < digits.length; i++) {
12578
+ var digit = digits[i];
12579
+ checksum += (digit === 'X' ? 10 : +digit) * (8 - i);
12460
12580
  }
12461
-
12462
12581
  return checksum % 11 === 0;
12463
12582
  }
12464
12583
  module.exports = exports['default'];
12465
- },{"./util/assertString":109}],76:[function(require,module,exports){
12584
+ },{"./util/assertString":110}],77:[function(require,module,exports){
12466
12585
  'use strict';
12467
12586
 
12468
12587
  Object.defineProperty(exports, "__esModule", {
@@ -12502,7 +12621,7 @@ function isIn(str, options) {
12502
12621
  return false;
12503
12622
  }
12504
12623
  module.exports = exports['default'];
12505
- },{"./util/assertString":109,"./util/toString":111}],77:[function(require,module,exports){
12624
+ },{"./util/assertString":110,"./util/toString":113}],78:[function(require,module,exports){
12506
12625
  'use strict';
12507
12626
 
12508
12627
  Object.defineProperty(exports, "__esModule", {
@@ -12536,7 +12655,7 @@ function isInt(str, options) {
12536
12655
  return regex.test(str) && minCheckPassed && maxCheckPassed && ltCheckPassed && gtCheckPassed;
12537
12656
  }
12538
12657
  module.exports = exports['default'];
12539
- },{"./util/assertString":109}],78:[function(require,module,exports){
12658
+ },{"./util/assertString":110}],79:[function(require,module,exports){
12540
12659
  'use strict';
12541
12660
 
12542
12661
  Object.defineProperty(exports, "__esModule", {
@@ -12562,7 +12681,7 @@ function isJSON(str) {
12562
12681
  return false;
12563
12682
  }
12564
12683
  module.exports = exports['default'];
12565
- },{"./util/assertString":109}],79:[function(require,module,exports){
12684
+ },{"./util/assertString":110}],80:[function(require,module,exports){
12566
12685
  'use strict';
12567
12686
 
12568
12687
  Object.defineProperty(exports, "__esModule", {
@@ -12586,7 +12705,7 @@ var lat = /^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/;
12586
12705
  var long = /^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/;
12587
12706
 
12588
12707
  module.exports = exports['default'];
12589
- },{"./util/assertString":109}],80:[function(require,module,exports){
12708
+ },{"./util/assertString":110}],81:[function(require,module,exports){
12590
12709
  'use strict';
12591
12710
 
12592
12711
  Object.defineProperty(exports, "__esModule", {
@@ -12621,7 +12740,7 @@ function isLength(str, options) {
12621
12740
  return len >= min && (typeof max === 'undefined' || len <= max);
12622
12741
  }
12623
12742
  module.exports = exports['default'];
12624
- },{"./util/assertString":109}],81:[function(require,module,exports){
12743
+ },{"./util/assertString":110}],82:[function(require,module,exports){
12625
12744
  'use strict';
12626
12745
 
12627
12746
  Object.defineProperty(exports, "__esModule", {
@@ -12640,7 +12759,7 @@ function isLowercase(str) {
12640
12759
  return str === str.toLowerCase();
12641
12760
  }
12642
12761
  module.exports = exports['default'];
12643
- },{"./util/assertString":109}],82:[function(require,module,exports){
12762
+ },{"./util/assertString":110}],83:[function(require,module,exports){
12644
12763
  'use strict';
12645
12764
 
12646
12765
  Object.defineProperty(exports, "__esModule", {
@@ -12655,13 +12774,17 @@ var _assertString2 = _interopRequireDefault(_assertString);
12655
12774
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12656
12775
 
12657
12776
  var macAddress = /^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;
12777
+ var macAddressNoColons = /^([0-9a-fA-F]){12}$/;
12658
12778
 
12659
- function isMACAddress(str) {
12779
+ function isMACAddress(str, options) {
12660
12780
  (0, _assertString2.default)(str);
12781
+ if (options && options.no_colons) {
12782
+ return macAddressNoColons.test(str);
12783
+ }
12661
12784
  return macAddress.test(str);
12662
12785
  }
12663
12786
  module.exports = exports['default'];
12664
- },{"./util/assertString":109}],83:[function(require,module,exports){
12787
+ },{"./util/assertString":110}],84:[function(require,module,exports){
12665
12788
  'use strict';
12666
12789
 
12667
12790
  Object.defineProperty(exports, "__esModule", {
@@ -12682,7 +12805,7 @@ function isMD5(str) {
12682
12805
  return md5.test(str);
12683
12806
  }
12684
12807
  module.exports = exports['default'];
12685
- },{"./util/assertString":109}],84:[function(require,module,exports){
12808
+ },{"./util/assertString":110}],85:[function(require,module,exports){
12686
12809
  'use strict';
12687
12810
 
12688
12811
  Object.defineProperty(exports, "__esModule", {
@@ -12735,7 +12858,7 @@ function isMimeType(str) {
12735
12858
  return mimeTypeSimple.test(str) || mimeTypeText.test(str) || mimeTypeMultipart.test(str);
12736
12859
  }
12737
12860
  module.exports = exports['default'];
12738
- },{"./util/assertString":109}],85:[function(require,module,exports){
12861
+ },{"./util/assertString":110}],86:[function(require,module,exports){
12739
12862
  'use strict';
12740
12863
 
12741
12864
  Object.defineProperty(exports, "__esModule", {
@@ -12754,14 +12877,18 @@ var phones = {
12754
12877
  'ar-AE': /^((\+?971)|0)?5[024568]\d{7}$/,
12755
12878
  'ar-DZ': /^(\+?213|0)(5|6|7)\d{8}$/,
12756
12879
  'ar-EG': /^((\+?20)|0)?1[012]\d{8}$/,
12880
+ 'ar-IQ': /^(\+?964|0)?7[0-9]\d{8}$/,
12757
12881
  'ar-JO': /^(\+?962|0)?7[789]\d{7}$/,
12882
+ 'ar-KW': /^(\+?965)[569]\d{7}$/,
12758
12883
  'ar-SA': /^(!?(\+?966)|0)?5\d{8}$/,
12759
12884
  'ar-SY': /^(!?(\+?963)|0)?9\d{8}$/,
12885
+ 'ar-TN': /^(\+?216)?[2459]\d{7}$/,
12760
12886
  'be-BY': /^(\+?375)?(24|25|29|33|44)\d{7}$/,
12761
12887
  'bg-BG': /^(\+?359|0)?8[789]\d{7}$/,
12888
+ 'bn-BD': /\+?(88)?0?1[156789][0-9]{8}\b/,
12762
12889
  'cs-CZ': /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
12763
12890
  'da-DK': /^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,
12764
- 'de-DE': /^(\+?49[ \.\-])?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
12891
+ 'de-DE': /^(\+?49[ \.\-]?)?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
12765
12892
  'el-GR': /^(\+?30|0)?(69\d{8})$/,
12766
12893
  'en-AU': /^(\+?61|0)4\d{8}$/,
12767
12894
  'en-GB': /^(\+?44|0)7\d{9}$/,
@@ -12769,13 +12896,13 @@ var phones = {
12769
12896
  'en-IN': /^(\+?91|0)?[6789]\d{9}$/,
12770
12897
  'en-KE': /^(\+?254|0)?[7]\d{8}$/,
12771
12898
  'en-NG': /^(\+?234|0)?[789]\d{9}$/,
12772
- 'en-NZ': /^(\+?64|0)2\d{7,9}$/,
12899
+ 'en-NZ': /^(\+?64|0)[28]\d{7,9}$/,
12773
12900
  'en-PK': /^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$/,
12774
12901
  'en-RW': /^(\+?250|0)?[7]\d{8}$/,
12775
12902
  'en-SG': /^(\+65)?[89]\d{7}$/,
12776
12903
  'en-TZ': /^(\+?255|0)?[67]\d{8}$/,
12777
12904
  'en-UG': /^(\+?256|0)?[7]\d{8}$/,
12778
- 'en-US': /^(\+?1)?[2-9]\d{2}[2-9](?!11)\d{6}$/,
12905
+ 'en-US': /^(\+?1?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,
12779
12906
  'en-ZA': /^(\+?27|0)\d{9}$/,
12780
12907
  'en-ZM': /^(\+?26)?09[567]\d{7}$/,
12781
12908
  'es-ES': /^(\+?34)?(6\d{1}|7[1234])\d{7}$/,
@@ -12786,7 +12913,7 @@ var phones = {
12786
12913
  'fr-FR': /^(\+?33|0)[67]\d{8}$/,
12787
12914
  'he-IL': /^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}/,
12788
12915
  'hu-HU': /^(\+?36)(20|30|70)\d{7}$/,
12789
- 'id-ID': /^(\+?62|0[1-9])[\s|\d]+$/,
12916
+ 'id-ID': /^(\+?62|0)(0?8?\d\d\s?\d?)([\s?|\d]{7,12})$/,
12790
12917
  'it-IT': /^(\+?39)?\s?3\d{2} ?\d{6,7}$/,
12791
12918
  'ja-JP': /^(\+?81|0)[789]0[ \-]?[1-9]\d{2}[ \-]?\d{5}$/,
12792
12919
  'kk-KZ': /^(\+?7|8)?7\d{9}$/,
@@ -12804,11 +12931,12 @@ var phones = {
12804
12931
  'ru-RU': /^(\+?7|8)?9\d{9}$/,
12805
12932
  'sk-SK': /^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
12806
12933
  'sr-RS': /^(\+3816|06)[- \d]{5,9}$/,
12934
+ 'sv-SE': /^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,
12807
12935
  'th-TH': /^(\+66|66|0)\d{9}$/,
12808
12936
  'tr-TR': /^(\+?90|0)?5\d{9}$/,
12809
12937
  'uk-UA': /^(\+?38|8)?0\d{9}$/,
12810
12938
  'vi-VN': /^(\+?84|0)?((1(2([0-9])|6([2-9])|88|99))|(9((?!5)[0-9])))([0-9]{7})$/,
12811
- 'zh-CN': /^(\+?0?86\-?)?1[3456789]\d{9}$/,
12939
+ 'zh-CN': /^((\+|00)86)?1([358][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$/,
12812
12940
  'zh-TW': /^(\+?886\-?|0)?9\d{8}$/
12813
12941
  };
12814
12942
  /* eslint-enable max-len */
@@ -12823,9 +12951,20 @@ function isMobilePhone(str, locale, options) {
12823
12951
  if (options && options.strictMode && !str.startsWith('+')) {
12824
12952
  return false;
12825
12953
  }
12826
- if (locale in phones) {
12954
+ if (Array.isArray(locale)) {
12955
+ return locale.some(function (key) {
12956
+ if (phones.hasOwnProperty(key)) {
12957
+ var phone = phones[key];
12958
+ if (phone.test(str)) {
12959
+ return true;
12960
+ }
12961
+ }
12962
+ return false;
12963
+ });
12964
+ } else if (locale in phones) {
12827
12965
  return phones[locale].test(str);
12828
- } else if (locale === 'any') {
12966
+ // alias falsey locale as 'any'
12967
+ } else if (!locale || locale === 'any') {
12829
12968
  for (var key in phones) {
12830
12969
  if (phones.hasOwnProperty(key)) {
12831
12970
  var phone = phones[key];
@@ -12839,7 +12978,7 @@ function isMobilePhone(str, locale, options) {
12839
12978
  throw new Error('Invalid locale \'' + locale + '\'');
12840
12979
  }
12841
12980
  module.exports = exports['default'];
12842
- },{"./util/assertString":109}],86:[function(require,module,exports){
12981
+ },{"./util/assertString":110}],87:[function(require,module,exports){
12843
12982
  'use strict';
12844
12983
 
12845
12984
  Object.defineProperty(exports, "__esModule", {
@@ -12862,7 +13001,7 @@ function isMongoId(str) {
12862
13001
  return (0, _isHexadecimal2.default)(str) && str.length === 24;
12863
13002
  }
12864
13003
  module.exports = exports['default'];
12865
- },{"./isHexadecimal":67,"./util/assertString":109}],87:[function(require,module,exports){
13004
+ },{"./isHexadecimal":67,"./util/assertString":110}],88:[function(require,module,exports){
12866
13005
  'use strict';
12867
13006
 
12868
13007
  Object.defineProperty(exports, "__esModule", {
@@ -12885,7 +13024,7 @@ function isMultibyte(str) {
12885
13024
  return multibyte.test(str);
12886
13025
  }
12887
13026
  module.exports = exports['default'];
12888
- },{"./util/assertString":109}],88:[function(require,module,exports){
13027
+ },{"./util/assertString":110}],89:[function(require,module,exports){
12889
13028
  'use strict';
12890
13029
 
12891
13030
  Object.defineProperty(exports, "__esModule", {
@@ -12900,13 +13039,17 @@ var _assertString2 = _interopRequireDefault(_assertString);
12900
13039
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12901
13040
 
12902
13041
  var numeric = /^[+-]?([0-9]*[.])?[0-9]+$/;
13042
+ var numericNoSymbols = /^[0-9]+$/;
12903
13043
 
12904
- function isNumeric(str) {
13044
+ function isNumeric(str, options) {
12905
13045
  (0, _assertString2.default)(str);
13046
+ if (options && options.no_symbols) {
13047
+ return numericNoSymbols.test(str);
13048
+ }
12906
13049
  return numeric.test(str);
12907
13050
  }
12908
13051
  module.exports = exports['default'];
12909
- },{"./util/assertString":109}],89:[function(require,module,exports){
13052
+ },{"./util/assertString":110}],90:[function(require,module,exports){
12910
13053
  'use strict';
12911
13054
 
12912
13055
  Object.defineProperty(exports, "__esModule", {
@@ -12924,7 +13067,7 @@ function isPort(str) {
12924
13067
  return (0, _isInt2.default)(str, { min: 0, max: 65535 });
12925
13068
  }
12926
13069
  module.exports = exports['default'];
12927
- },{"./isInt":77}],90:[function(require,module,exports){
13070
+ },{"./isInt":78}],91:[function(require,module,exports){
12928
13071
  'use strict';
12929
13072
 
12930
13073
  Object.defineProperty(exports, "__esModule", {
@@ -12963,6 +13106,7 @@ var fiveDigit = /^\d{5}$/;
12963
13106
  var sixDigit = /^\d{6}$/;
12964
13107
 
12965
13108
  var patterns = {
13109
+ AD: /^AD\d{3}$/,
12966
13110
  AT: fourDigit,
12967
13111
  AU: fourDigit,
12968
13112
  BE: fourDigit,
@@ -12973,11 +13117,14 @@ var patterns = {
12973
13117
  DE: fiveDigit,
12974
13118
  DK: fourDigit,
12975
13119
  DZ: fiveDigit,
13120
+ EE: fiveDigit,
12976
13121
  ES: fiveDigit,
12977
13122
  FI: fiveDigit,
12978
13123
  FR: /^\d{2}\s?\d{3}$/,
12979
13124
  GB: /^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,
12980
13125
  GR: /^\d{3}\s?\d{2}$/,
13126
+ HR: /^([1-5]\d{4}$)/,
13127
+ HU: fourDigit,
12981
13128
  IL: fiveDigit,
12982
13129
  IN: sixDigit,
12983
13130
  IS: threeDigit,
@@ -12985,6 +13132,9 @@ var patterns = {
12985
13132
  JP: /^\d{3}\-\d{4}$/,
12986
13133
  KE: fiveDigit,
12987
13134
  LI: /^(948[5-9]|949[0-7])$/,
13135
+ LT: /^LT\-\d{5}$/,
13136
+ LU: fourDigit,
13137
+ LV: /^LV\-\d{4}$/,
12988
13138
  MX: fiveDigit,
12989
13139
  NL: /^\d{4}\s?[a-z]{2}$/i,
12990
13140
  NO: fourDigit,
@@ -12994,7 +13144,9 @@ var patterns = {
12994
13144
  RU: sixDigit,
12995
13145
  SA: fiveDigit,
12996
13146
  SE: /^\d{3}\s?\d{2}$/,
13147
+ SI: fourDigit,
12997
13148
  SK: /^\d{3}\s?\d{2}$/,
13149
+ TN: fourDigit,
12998
13150
  TW: /^\d{3}(\d{2})?$/,
12999
13151
  US: /^\d{5}(-\d{4})?$/,
13000
13152
  ZA: fourDigit,
@@ -13002,7 +13154,7 @@ var patterns = {
13002
13154
  };
13003
13155
 
13004
13156
  var locales = exports.locales = Object.keys(patterns);
13005
- },{"./util/assertString":109}],91:[function(require,module,exports){
13157
+ },{"./util/assertString":110}],92:[function(require,module,exports){
13006
13158
  'use strict';
13007
13159
 
13008
13160
  Object.defineProperty(exports, "__esModule", {
@@ -13042,7 +13194,7 @@ function isRFC3339(str) {
13042
13194
  return rfc3339.test(str);
13043
13195
  }
13044
13196
  module.exports = exports['default'];
13045
- },{"./util/assertString":109}],92:[function(require,module,exports){
13197
+ },{"./util/assertString":110}],93:[function(require,module,exports){
13046
13198
  'use strict';
13047
13199
 
13048
13200
  Object.defineProperty(exports, "__esModule", {
@@ -13063,7 +13215,7 @@ function isSurrogatePair(str) {
13063
13215
  return surrogatePair.test(str);
13064
13216
  }
13065
13217
  module.exports = exports['default'];
13066
- },{"./util/assertString":109}],93:[function(require,module,exports){
13218
+ },{"./util/assertString":110}],94:[function(require,module,exports){
13067
13219
  'use strict';
13068
13220
 
13069
13221
  Object.defineProperty(exports, "__esModule", {
@@ -13148,7 +13300,10 @@ function isURL(url, options) {
13148
13300
  }
13149
13301
  } else if (options.require_protocol) {
13150
13302
  return false;
13151
- } else if (options.allow_protocol_relative_urls && url.substr(0, 2) === '//') {
13303
+ } else if (url.substr(0, 2) === '//') {
13304
+ if (!options.allow_protocol_relative_urls) {
13305
+ return false;
13306
+ }
13152
13307
  split[0] = url.substr(2);
13153
13308
  }
13154
13309
  url = split.join('://');
@@ -13211,7 +13366,7 @@ function isURL(url, options) {
13211
13366
  return true;
13212
13367
  }
13213
13368
  module.exports = exports['default'];
13214
- },{"./isFQDN":61,"./isIP":68,"./util/assertString":109,"./util/merge":110}],94:[function(require,module,exports){
13369
+ },{"./isFQDN":61,"./isIP":68,"./util/assertString":110,"./util/merge":112}],95:[function(require,module,exports){
13215
13370
  'use strict';
13216
13371
 
13217
13372
  Object.defineProperty(exports, "__esModule", {
@@ -13240,7 +13395,7 @@ function isUUID(str) {
13240
13395
  return pattern && pattern.test(str);
13241
13396
  }
13242
13397
  module.exports = exports['default'];
13243
- },{"./util/assertString":109}],95:[function(require,module,exports){
13398
+ },{"./util/assertString":110}],96:[function(require,module,exports){
13244
13399
  'use strict';
13245
13400
 
13246
13401
  Object.defineProperty(exports, "__esModule", {
@@ -13259,7 +13414,7 @@ function isUppercase(str) {
13259
13414
  return str === str.toUpperCase();
13260
13415
  }
13261
13416
  module.exports = exports['default'];
13262
- },{"./util/assertString":109}],96:[function(require,module,exports){
13417
+ },{"./util/assertString":110}],97:[function(require,module,exports){
13263
13418
  'use strict';
13264
13419
 
13265
13420
  Object.defineProperty(exports, "__esModule", {
@@ -13282,7 +13437,7 @@ function isVariableWidth(str) {
13282
13437
  return _isFullWidth.fullWidth.test(str) && _isHalfWidth.halfWidth.test(str);
13283
13438
  }
13284
13439
  module.exports = exports['default'];
13285
- },{"./isFullWidth":63,"./isHalfWidth":64,"./util/assertString":109}],97:[function(require,module,exports){
13440
+ },{"./isFullWidth":63,"./isHalfWidth":64,"./util/assertString":110}],98:[function(require,module,exports){
13286
13441
  'use strict';
13287
13442
 
13288
13443
  Object.defineProperty(exports, "__esModule", {
@@ -13306,7 +13461,7 @@ function isWhitelisted(str, chars) {
13306
13461
  return true;
13307
13462
  }
13308
13463
  module.exports = exports['default'];
13309
- },{"./util/assertString":109}],98:[function(require,module,exports){
13464
+ },{"./util/assertString":110}],99:[function(require,module,exports){
13310
13465
  'use strict';
13311
13466
 
13312
13467
  Object.defineProperty(exports, "__esModule", {
@@ -13326,7 +13481,7 @@ function ltrim(str, chars) {
13326
13481
  return str.replace(pattern, '');
13327
13482
  }
13328
13483
  module.exports = exports['default'];
13329
- },{"./util/assertString":109}],99:[function(require,module,exports){
13484
+ },{"./util/assertString":110}],100:[function(require,module,exports){
13330
13485
  'use strict';
13331
13486
 
13332
13487
  Object.defineProperty(exports, "__esModule", {
@@ -13348,7 +13503,7 @@ function matches(str, pattern, modifiers) {
13348
13503
  return pattern.test(str);
13349
13504
  }
13350
13505
  module.exports = exports['default'];
13351
- },{"./util/assertString":109}],100:[function(require,module,exports){
13506
+ },{"./util/assertString":110}],101:[function(require,module,exports){
13352
13507
  'use strict';
13353
13508
 
13354
13509
  Object.defineProperty(exports, "__esModule", {
@@ -13453,7 +13608,7 @@ function normalizeEmail(email, options) {
13453
13608
  parts[0] = parts[0].toLowerCase();
13454
13609
  }
13455
13610
  parts[1] = options.gmail_convert_googlemaildotcom ? 'gmail.com' : parts[1];
13456
- } else if (~icloud_domains.indexOf(parts[1])) {
13611
+ } else if (icloud_domains.indexOf(parts[1]) >= 0) {
13457
13612
  // Address is iCloud
13458
13613
  if (options.icloud_remove_subaddress) {
13459
13614
  parts[0] = parts[0].split('+')[0];
@@ -13464,7 +13619,7 @@ function normalizeEmail(email, options) {
13464
13619
  if (options.all_lowercase || options.icloud_lowercase) {
13465
13620
  parts[0] = parts[0].toLowerCase();
13466
13621
  }
13467
- } else if (~outlookdotcom_domains.indexOf(parts[1])) {
13622
+ } else if (outlookdotcom_domains.indexOf(parts[1]) >= 0) {
13468
13623
  // Address is Outlook.com
13469
13624
  if (options.outlookdotcom_remove_subaddress) {
13470
13625
  parts[0] = parts[0].split('+')[0];
@@ -13475,7 +13630,7 @@ function normalizeEmail(email, options) {
13475
13630
  if (options.all_lowercase || options.outlookdotcom_lowercase) {
13476
13631
  parts[0] = parts[0].toLowerCase();
13477
13632
  }
13478
- } else if (~yahoo_domains.indexOf(parts[1])) {
13633
+ } else if (yahoo_domains.indexOf(parts[1]) >= 0) {
13479
13634
  // Address is Yahoo
13480
13635
  if (options.yahoo_remove_subaddress) {
13481
13636
  var components = parts[0].split('-');
@@ -13487,7 +13642,7 @@ function normalizeEmail(email, options) {
13487
13642
  if (options.all_lowercase || options.yahoo_lowercase) {
13488
13643
  parts[0] = parts[0].toLowerCase();
13489
13644
  }
13490
- } else if (~yandex_domains.indexOf(parts[1])) {
13645
+ } else if (yandex_domains.indexOf(parts[1]) >= 0) {
13491
13646
  if (options.all_lowercase || options.yandex_lowercase) {
13492
13647
  parts[0] = parts[0].toLowerCase();
13493
13648
  }
@@ -13499,7 +13654,7 @@ function normalizeEmail(email, options) {
13499
13654
  return parts.join('@');
13500
13655
  }
13501
13656
  module.exports = exports['default'];
13502
- },{"./util/merge":110}],101:[function(require,module,exports){
13657
+ },{"./util/merge":112}],102:[function(require,module,exports){
13503
13658
  'use strict';
13504
13659
 
13505
13660
  Object.defineProperty(exports, "__esModule", {
@@ -13518,14 +13673,12 @@ function rtrim(str, chars) {
13518
13673
  var pattern = chars ? new RegExp('[' + chars + ']') : /\s/;
13519
13674
 
13520
13675
  var idx = str.length - 1;
13521
- while (idx >= 0 && pattern.test(str[idx])) {
13522
- idx--;
13523
- }
13676
+ for (; idx >= 0 && pattern.test(str[idx]); idx--) {}
13524
13677
 
13525
13678
  return idx < str.length ? str.substr(0, idx + 1) : str;
13526
13679
  }
13527
13680
  module.exports = exports['default'];
13528
- },{"./util/assertString":109}],102:[function(require,module,exports){
13681
+ },{"./util/assertString":110}],103:[function(require,module,exports){
13529
13682
  'use strict';
13530
13683
 
13531
13684
  Object.defineProperty(exports, "__esModule", {
@@ -13549,7 +13702,7 @@ function stripLow(str, keep_new_lines) {
13549
13702
  return (0, _blacklist2.default)(str, chars);
13550
13703
  }
13551
13704
  module.exports = exports['default'];
13552
- },{"./blacklist":42,"./util/assertString":109}],103:[function(require,module,exports){
13705
+ },{"./blacklist":42,"./util/assertString":110}],104:[function(require,module,exports){
13553
13706
  'use strict';
13554
13707
 
13555
13708
  Object.defineProperty(exports, "__esModule", {
@@ -13571,7 +13724,7 @@ function toBoolean(str, strict) {
13571
13724
  return str !== '0' && str !== 'false' && str !== '';
13572
13725
  }
13573
13726
  module.exports = exports['default'];
13574
- },{"./util/assertString":109}],104:[function(require,module,exports){
13727
+ },{"./util/assertString":110}],105:[function(require,module,exports){
13575
13728
  'use strict';
13576
13729
 
13577
13730
  Object.defineProperty(exports, "__esModule", {
@@ -13591,7 +13744,7 @@ function toDate(date) {
13591
13744
  return !isNaN(date) ? new Date(date) : null;
13592
13745
  }
13593
13746
  module.exports = exports['default'];
13594
- },{"./util/assertString":109}],105:[function(require,module,exports){
13747
+ },{"./util/assertString":110}],106:[function(require,module,exports){
13595
13748
  'use strict';
13596
13749
 
13597
13750
  Object.defineProperty(exports, "__esModule", {
@@ -13610,7 +13763,7 @@ function toFloat(str) {
13610
13763
  return parseFloat(str);
13611
13764
  }
13612
13765
  module.exports = exports['default'];
13613
- },{"./util/assertString":109}],106:[function(require,module,exports){
13766
+ },{"./util/assertString":110}],107:[function(require,module,exports){
13614
13767
  'use strict';
13615
13768
 
13616
13769
  Object.defineProperty(exports, "__esModule", {
@@ -13629,7 +13782,7 @@ function toInt(str, radix) {
13629
13782
  return parseInt(str, radix || 10);
13630
13783
  }
13631
13784
  module.exports = exports['default'];
13632
- },{"./util/assertString":109}],107:[function(require,module,exports){
13785
+ },{"./util/assertString":110}],108:[function(require,module,exports){
13633
13786
  'use strict';
13634
13787
 
13635
13788
  Object.defineProperty(exports, "__esModule", {
@@ -13651,7 +13804,7 @@ function trim(str, chars) {
13651
13804
  return (0, _rtrim2.default)((0, _ltrim2.default)(str, chars), chars);
13652
13805
  }
13653
13806
  module.exports = exports['default'];
13654
- },{"./ltrim":98,"./rtrim":101}],108:[function(require,module,exports){
13807
+ },{"./ltrim":99,"./rtrim":102}],109:[function(require,module,exports){
13655
13808
  'use strict';
13656
13809
 
13657
13810
  Object.defineProperty(exports, "__esModule", {
@@ -13670,7 +13823,7 @@ function unescape(str) {
13670
13823
  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, '`');
13671
13824
  }
13672
13825
  module.exports = exports['default'];
13673
- },{"./util/assertString":109}],109:[function(require,module,exports){
13826
+ },{"./util/assertString":110}],110:[function(require,module,exports){
13674
13827
  'use strict';
13675
13828
 
13676
13829
  Object.defineProperty(exports, "__esModule", {
@@ -13685,7 +13838,21 @@ function assertString(input) {
13685
13838
  }
13686
13839
  }
13687
13840
  module.exports = exports['default'];
13688
- },{}],110:[function(require,module,exports){
13841
+ },{}],111:[function(require,module,exports){
13842
+ "use strict";
13843
+
13844
+ Object.defineProperty(exports, "__esModule", {
13845
+ value: true
13846
+ });
13847
+ var includes = function includes(arr, val) {
13848
+ return arr.some(function (arrVal) {
13849
+ return val === arrVal;
13850
+ });
13851
+ };
13852
+
13853
+ exports.default = includes;
13854
+ module.exports = exports["default"];
13855
+ },{}],112:[function(require,module,exports){
13689
13856
  'use strict';
13690
13857
 
13691
13858
  Object.defineProperty(exports, "__esModule", {
@@ -13704,7 +13871,7 @@ function merge() {
13704
13871
  return obj;
13705
13872
  }
13706
13873
  module.exports = exports['default'];
13707
- },{}],111:[function(require,module,exports){
13874
+ },{}],113:[function(require,module,exports){
13708
13875
  'use strict';
13709
13876
 
13710
13877
  Object.defineProperty(exports, "__esModule", {
@@ -13727,7 +13894,7 @@ function toString(input) {
13727
13894
  return String(input);
13728
13895
  }
13729
13896
  module.exports = exports['default'];
13730
- },{}],112:[function(require,module,exports){
13897
+ },{}],114:[function(require,module,exports){
13731
13898
  'use strict';
13732
13899
 
13733
13900
  Object.defineProperty(exports, "__esModule", {
@@ -13746,7 +13913,7 @@ function whitelist(str, chars) {
13746
13913
  return str.replace(new RegExp('[^' + chars + ']+', 'g'), '');
13747
13914
  }
13748
13915
  module.exports = exports['default'];
13749
- },{"./util/assertString":109}],113:[function(require,module,exports){
13916
+ },{"./util/assertString":110}],115:[function(require,module,exports){
13750
13917
  module.exports = extend
13751
13918
 
13752
13919
  var hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -13767,7 +13934,7 @@ function extend() {
13767
13934
  return target
13768
13935
  }
13769
13936
 
13770
- },{}],114:[function(require,module,exports){
13937
+ },{}],116:[function(require,module,exports){
13771
13938
  "use strict";
13772
13939
 
13773
13940
  module.exports = {
@@ -13829,7 +13996,7 @@ module.exports = {
13829
13996
 
13830
13997
  };
13831
13998
 
13832
- },{}],115:[function(require,module,exports){
13999
+ },{}],117:[function(require,module,exports){
13833
14000
  /*jshint maxlen: false*/
13834
14001
 
13835
14002
  var validator = require("validator");
@@ -13960,12 +14127,12 @@ var FormatValidators = {
13960
14127
 
13961
14128
  module.exports = FormatValidators;
13962
14129
 
13963
- },{"validator":40}],116:[function(require,module,exports){
14130
+ },{"validator":40}],118:[function(require,module,exports){
13964
14131
  "use strict";
13965
14132
 
13966
- var FormatValidators = require("./FormatValidators"),
13967
- Report = require("./Report"),
13968
- Utils = require("./Utils");
14133
+ var FormatValidators = require("./FormatValidators"),
14134
+ Report = require("./Report"),
14135
+ Utils = require("./Utils");
13969
14136
 
13970
14137
  var JsonValidators = {
13971
14138
  multipleOf: function (report, schema, json) {
@@ -13974,7 +14141,7 @@ var JsonValidators = {
13974
14141
  return;
13975
14142
  }
13976
14143
  if (Utils.whatIs(json / schema.multipleOf) !== "integer") {
13977
- report.addError("MULTIPLE_OF", [json, schema.multipleOf], null, schema.description);
14144
+ report.addError("MULTIPLE_OF", [json, schema.multipleOf], null, schema);
13978
14145
  }
13979
14146
  },
13980
14147
  maximum: function (report, schema, json) {
@@ -13984,11 +14151,11 @@ var JsonValidators = {
13984
14151
  }
13985
14152
  if (schema.exclusiveMaximum !== true) {
13986
14153
  if (json > schema.maximum) {
13987
- report.addError("MAXIMUM", [json, schema.maximum], null, schema.description);
14154
+ report.addError("MAXIMUM", [json, schema.maximum], null, schema);
13988
14155
  }
13989
14156
  } else {
13990
14157
  if (json >= schema.maximum) {
13991
- report.addError("MAXIMUM_EXCLUSIVE", [json, schema.maximum], null, schema.description);
14158
+ report.addError("MAXIMUM_EXCLUSIVE", [json, schema.maximum], null, schema);
13992
14159
  }
13993
14160
  }
13994
14161
  },
@@ -14002,11 +14169,11 @@ var JsonValidators = {
14002
14169
  }
14003
14170
  if (schema.exclusiveMinimum !== true) {
14004
14171
  if (json < schema.minimum) {
14005
- report.addError("MINIMUM", [json, schema.minimum], null, schema.description);
14172
+ report.addError("MINIMUM", [json, schema.minimum], null, schema);
14006
14173
  }
14007
14174
  } else {
14008
14175
  if (json <= schema.minimum) {
14009
- report.addError("MINIMUM_EXCLUSIVE", [json, schema.minimum], null, schema.description);
14176
+ report.addError("MINIMUM_EXCLUSIVE", [json, schema.minimum], null, schema);
14010
14177
  }
14011
14178
  }
14012
14179
  },
@@ -14019,7 +14186,7 @@ var JsonValidators = {
14019
14186
  return;
14020
14187
  }
14021
14188
  if (Utils.ucs2decode(json).length > schema.maxLength) {
14022
- report.addError("MAX_LENGTH", [json.length, schema.maxLength], null, schema.description);
14189
+ report.addError("MAX_LENGTH", [json.length, schema.maxLength], null, schema);
14023
14190
  }
14024
14191
  },
14025
14192
  minLength: function (report, schema, json) {
@@ -14028,7 +14195,7 @@ var JsonValidators = {
14028
14195
  return;
14029
14196
  }
14030
14197
  if (Utils.ucs2decode(json).length < schema.minLength) {
14031
- report.addError("MIN_LENGTH", [json.length, schema.minLength], null, schema.description);
14198
+ report.addError("MIN_LENGTH", [json.length, schema.minLength], null, schema);
14032
14199
  }
14033
14200
  },
14034
14201
  pattern: function (report, schema, json) {
@@ -14037,7 +14204,7 @@ var JsonValidators = {
14037
14204
  return;
14038
14205
  }
14039
14206
  if (RegExp(schema.pattern).test(json) === false) {
14040
- report.addError("PATTERN", [schema.pattern, json], null, schema.description);
14207
+ report.addError("PATTERN", [schema.pattern, json], null, schema);
14041
14208
  }
14042
14209
  },
14043
14210
  additionalItems: function (report, schema, json) {
@@ -14049,7 +14216,7 @@ var JsonValidators = {
14049
14216
  // the json is valid if its size is less than, or equal to, the size of "items".
14050
14217
  if (schema.additionalItems === false && Array.isArray(schema.items)) {
14051
14218
  if (json.length > schema.items.length) {
14052
- report.addError("ARRAY_ADDITIONAL_ITEMS", null, null, schema.description);
14219
+ report.addError("ARRAY_ADDITIONAL_ITEMS", null, null, schema);
14053
14220
  }
14054
14221
  }
14055
14222
  },
@@ -14062,7 +14229,7 @@ var JsonValidators = {
14062
14229
  return;
14063
14230
  }
14064
14231
  if (json.length > schema.maxItems) {
14065
- report.addError("ARRAY_LENGTH_LONG", [json.length, schema.maxItems], null, schema.description);
14232
+ report.addError("ARRAY_LENGTH_LONG", [json.length, schema.maxItems], null, schema);
14066
14233
  }
14067
14234
  },
14068
14235
  minItems: function (report, schema, json) {
@@ -14071,7 +14238,7 @@ var JsonValidators = {
14071
14238
  return;
14072
14239
  }
14073
14240
  if (json.length < schema.minItems) {
14074
- report.addError("ARRAY_LENGTH_SHORT", [json.length, schema.minItems], null, schema.description);
14241
+ report.addError("ARRAY_LENGTH_SHORT", [json.length, schema.minItems], null, schema);
14075
14242
  }
14076
14243
  },
14077
14244
  uniqueItems: function (report, schema, json) {
@@ -14082,7 +14249,7 @@ var JsonValidators = {
14082
14249
  if (schema.uniqueItems === true) {
14083
14250
  var matches = [];
14084
14251
  if (Utils.isUniqueArray(json, matches) === false) {
14085
- report.addError("ARRAY_UNIQUE", matches, null, schema.description);
14252
+ report.addError("ARRAY_UNIQUE", matches, null, schema);
14086
14253
  }
14087
14254
  }
14088
14255
  },
@@ -14093,7 +14260,7 @@ var JsonValidators = {
14093
14260
  }
14094
14261
  var keysCount = Object.keys(json).length;
14095
14262
  if (keysCount > schema.maxProperties) {
14096
- report.addError("OBJECT_PROPERTIES_MAXIMUM", [keysCount, schema.maxProperties], null, schema.description);
14263
+ report.addError("OBJECT_PROPERTIES_MAXIMUM", [keysCount, schema.maxProperties], null, schema);
14097
14264
  }
14098
14265
  },
14099
14266
  minProperties: function (report, schema, json) {
@@ -14103,7 +14270,7 @@ var JsonValidators = {
14103
14270
  }
14104
14271
  var keysCount = Object.keys(json).length;
14105
14272
  if (keysCount < schema.minProperties) {
14106
- report.addError("OBJECT_PROPERTIES_MINIMUM", [keysCount, schema.minProperties], null, schema.description);
14273
+ report.addError("OBJECT_PROPERTIES_MINIMUM", [keysCount, schema.minProperties], null, schema);
14107
14274
  }
14108
14275
  },
14109
14276
  required: function (report, schema, json) {
@@ -14115,7 +14282,7 @@ var JsonValidators = {
14115
14282
  while (idx--) {
14116
14283
  var requiredPropertyName = schema.required[idx];
14117
14284
  if (json[requiredPropertyName] === undefined) {
14118
- report.addError("OBJECT_MISSING_REQUIRED_PROPERTY", [requiredPropertyName], null, schema.description);
14285
+ report.addError("OBJECT_MISSING_REQUIRED_PROPERTY", [requiredPropertyName], null, schema);
14119
14286
  }
14120
14287
  }
14121
14288
  },
@@ -14171,7 +14338,7 @@ var JsonValidators = {
14171
14338
  }
14172
14339
  }
14173
14340
  if (s.length > 0) {
14174
- report.addError("OBJECT_ADDITIONAL_PROPERTIES", [s], null, schema.description);
14341
+ report.addError("OBJECT_ADDITIONAL_PROPERTIES", [s], null, schema);
14175
14342
  }
14176
14343
  }
14177
14344
  }
@@ -14199,7 +14366,7 @@ var JsonValidators = {
14199
14366
  while (idx2--) {
14200
14367
  var requiredPropertyName = dependencyDefinition[idx2];
14201
14368
  if (json[requiredPropertyName] === undefined) {
14202
- report.addError("OBJECT_DEPENDENCY_KEY", [requiredPropertyName, dependencyName], null, schema.description);
14369
+ report.addError("OBJECT_DEPENDENCY_KEY", [requiredPropertyName, dependencyName], null, schema);
14203
14370
  }
14204
14371
  }
14205
14372
  }
@@ -14222,7 +14389,7 @@ var JsonValidators = {
14222
14389
 
14223
14390
  if (match === false) {
14224
14391
  var error = caseInsensitiveMatch && this.options.enumCaseInsensitiveComparison ? "ENUM_CASE_MISMATCH" : "ENUM_MISMATCH";
14225
- report.addError(error, [json], null, schema.description);
14392
+ report.addError(error, [json], null, schema);
14226
14393
  }
14227
14394
  },
14228
14395
  type: function (report, schema, json) {
@@ -14230,11 +14397,11 @@ var JsonValidators = {
14230
14397
  var jsonType = Utils.whatIs(json);
14231
14398
  if (typeof schema.type === "string") {
14232
14399
  if (jsonType !== schema.type && (jsonType !== "integer" || schema.type !== "number")) {
14233
- report.addError("INVALID_TYPE", [schema.type, jsonType], null, schema.description);
14400
+ report.addError("INVALID_TYPE", [schema.type, jsonType], null, schema);
14234
14401
  }
14235
14402
  } else {
14236
14403
  if (schema.type.indexOf(jsonType) === -1 && (jsonType !== "integer" || schema.type.indexOf("number") === -1)) {
14237
- report.addError("INVALID_TYPE", [schema.type, jsonType], null, schema.description);
14404
+ report.addError("INVALID_TYPE", [schema.type, jsonType], null, schema);
14238
14405
  }
14239
14406
  }
14240
14407
  },
@@ -14261,7 +14428,7 @@ var JsonValidators = {
14261
14428
  }
14262
14429
 
14263
14430
  if (passed === false) {
14264
- report.addError("ANY_OF_MISSING", undefined, subReports, schema.description);
14431
+ report.addError("ANY_OF_MISSING", undefined, subReports, schema);
14265
14432
  }
14266
14433
  },
14267
14434
  oneOf: function (report, schema, json) {
@@ -14279,16 +14446,16 @@ var JsonValidators = {
14279
14446
  }
14280
14447
 
14281
14448
  if (passes === 0) {
14282
- report.addError("ONE_OF_MISSING", undefined, subReports, schema.description);
14449
+ report.addError("ONE_OF_MISSING", undefined, subReports, schema);
14283
14450
  } else if (passes > 1) {
14284
- report.addError("ONE_OF_MULTIPLE", null, null, schema.description);
14451
+ report.addError("ONE_OF_MULTIPLE", null, null, schema);
14285
14452
  }
14286
14453
  },
14287
14454
  not: function (report, schema, json) {
14288
14455
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.5.6.2
14289
14456
  var subReport = new Report(report);
14290
14457
  if (exports.validate.call(this, subReport, schema.not, json) === true) {
14291
- report.addError("NOT_PASSED", null, null, schema.description);
14458
+ report.addError("NOT_PASSED", null, null, schema);
14292
14459
  }
14293
14460
  },
14294
14461
  definitions: function () { /*report, schema, json*/
@@ -14303,17 +14470,17 @@ var JsonValidators = {
14303
14470
  // async
14304
14471
  report.addAsyncTask(formatValidatorFn, [json], function (result) {
14305
14472
  if (result !== true) {
14306
- report.addError("INVALID_FORMAT", [schema.format, json], null, schema.description);
14473
+ report.addError("INVALID_FORMAT", [schema.format, json], null, schema);
14307
14474
  }
14308
14475
  });
14309
14476
  } else {
14310
14477
  // sync
14311
14478
  if (formatValidatorFn.call(this, json) !== true) {
14312
- report.addError("INVALID_FORMAT", [schema.format, json], null, schema.description);
14479
+ report.addError("INVALID_FORMAT", [schema.format, json], null, schema);
14313
14480
  }
14314
14481
  }
14315
14482
  } else if (this.options.ignoreUnknownFormats !== true) {
14316
- report.addError("UNKNOWN_FORMAT", [schema.format], null, schema.description);
14483
+ report.addError("UNKNOWN_FORMAT", [schema.format], null, schema);
14317
14484
  }
14318
14485
  }
14319
14486
  };
@@ -14425,7 +14592,7 @@ exports.validate = function (report, schema, json) {
14425
14592
  // check if schema is an object
14426
14593
  var to = Utils.whatIs(schema);
14427
14594
  if (to !== "object") {
14428
- report.addError("SCHEMA_NOT_AN_OBJECT", [to], null, schema.description);
14595
+ report.addError("SCHEMA_NOT_AN_OBJECT", [to], null, schema);
14429
14596
  return false;
14430
14597
  }
14431
14598
 
@@ -14448,7 +14615,7 @@ exports.validate = function (report, schema, json) {
14448
14615
  var maxRefs = 99;
14449
14616
  while (schema.$ref && maxRefs > 0) {
14450
14617
  if (!schema.__$refResolved) {
14451
- report.addError("REF_UNRESOLVED", [schema.$ref], null, schema.description);
14618
+ report.addError("REF_UNRESOLVED", [schema.$ref], null, schema);
14452
14619
  break;
14453
14620
  } else if (schema.__$refResolved === schema) {
14454
14621
  break;
@@ -14504,7 +14671,7 @@ exports.validate = function (report, schema, json) {
14504
14671
 
14505
14672
  };
14506
14673
 
14507
- },{"./FormatValidators":115,"./Report":118,"./Utils":122}],117:[function(require,module,exports){
14674
+ },{"./FormatValidators":117,"./Report":120,"./Utils":124}],119:[function(require,module,exports){
14508
14675
  // Number.isFinite polyfill
14509
14676
  // http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite
14510
14677
  if (typeof Number.isFinite !== "function") {
@@ -14522,7 +14689,7 @@ if (typeof Number.isFinite !== "function") {
14522
14689
  };
14523
14690
  }
14524
14691
 
14525
- },{}],118:[function(require,module,exports){
14692
+ },{}],120:[function(require,module,exports){
14526
14693
  (function (process){
14527
14694
  "use strict";
14528
14695
 
@@ -14568,7 +14735,7 @@ Report.prototype.processAsyncTasks = function (timeout, callback) {
14568
14735
  function finish() {
14569
14736
  process.nextTick(function () {
14570
14737
  var valid = self.errors.length === 0,
14571
- err = valid ? undefined : self.errors;
14738
+ err = valid ? undefined : self.errors;
14572
14739
  callback(err, valid);
14573
14740
  });
14574
14741
  }
@@ -14671,13 +14838,13 @@ Report.prototype.hasError = function (errorCode, params) {
14671
14838
  return false;
14672
14839
  };
14673
14840
 
14674
- Report.prototype.addError = function (errorCode, params, subReports, schemaDescription) {
14841
+ Report.prototype.addError = function (errorCode, params, subReports, schema) {
14675
14842
  if (!errorCode) { throw new Error("No errorCode passed into addError()"); }
14676
14843
 
14677
- this.addCustomError(errorCode, Errors[errorCode], params, subReports, schemaDescription);
14844
+ this.addCustomError(errorCode, Errors[errorCode], params, subReports, schema);
14678
14845
  };
14679
14846
 
14680
- Report.prototype.addCustomError = function (errorCode, errorMessage, params, subReports, schemaDescription) {
14847
+ Report.prototype.addCustomError = function (errorCode, errorMessage, params, subReports, schema) {
14681
14848
  if (this.errors.length >= this.reportOptions.maxErrors) {
14682
14849
  return;
14683
14850
  }
@@ -14701,8 +14868,15 @@ Report.prototype.addCustomError = function (errorCode, errorMessage, params, sub
14701
14868
  schemaId: this.getSchemaId()
14702
14869
  };
14703
14870
 
14704
- if (schemaDescription) {
14705
- err.description = schemaDescription;
14871
+ if (schema && typeof schema === "string") {
14872
+ err.description = schema;
14873
+ } else if (schema && typeof schema === "object") {
14874
+ if (schema.title) {
14875
+ err.title = schema.title;
14876
+ }
14877
+ if (schema.description) {
14878
+ err.description = schema.description;
14879
+ }
14706
14880
  }
14707
14881
 
14708
14882
  if (subReports != null) {
@@ -14729,7 +14903,7 @@ Report.prototype.addCustomError = function (errorCode, errorMessage, params, sub
14729
14903
  module.exports = Report;
14730
14904
 
14731
14905
  }).call(this,require('_process'))
14732
- },{"./Errors":114,"./Utils":122,"_process":15,"lodash.get":12}],119:[function(require,module,exports){
14906
+ },{"./Errors":116,"./Utils":124,"_process":15,"lodash.get":12}],121:[function(require,module,exports){
14733
14907
  "use strict";
14734
14908
 
14735
14909
  var isequal = require("lodash.isequal");
@@ -14893,7 +15067,7 @@ exports.getSchemaByUri = function (report, uri, root) {
14893
15067
 
14894
15068
  exports.getRemotePath = getRemotePath;
14895
15069
 
14896
- },{"./Report":118,"./SchemaCompilation":120,"./SchemaValidation":121,"./Utils":122,"lodash.isequal":13}],120:[function(require,module,exports){
15070
+ },{"./Report":120,"./SchemaCompilation":122,"./SchemaValidation":123,"./Utils":124,"lodash.isequal":13}],122:[function(require,module,exports){
14897
15071
  "use strict";
14898
15072
 
14899
15073
  var Report = require("./Report");
@@ -15194,7 +15368,7 @@ exports.compileSchema = function (report, schema) {
15194
15368
 
15195
15369
  };
15196
15370
 
15197
- },{"./Report":118,"./SchemaCache":119,"./Utils":122}],121:[function(require,module,exports){
15371
+ },{"./Report":120,"./SchemaCache":121,"./Utils":124}],123:[function(require,module,exports){
15198
15372
  "use strict";
15199
15373
 
15200
15374
  var FormatValidators = require("./FormatValidators"),
@@ -15803,7 +15977,7 @@ exports.validateSchema = function (report, schema) {
15803
15977
  return isValid;
15804
15978
  };
15805
15979
 
15806
- },{"./FormatValidators":115,"./JsonValidation":116,"./Report":118,"./Utils":122}],122:[function(require,module,exports){
15980
+ },{"./FormatValidators":117,"./JsonValidation":118,"./Report":120,"./Utils":124}],124:[function(require,module,exports){
15807
15981
  "use strict";
15808
15982
 
15809
15983
  exports.isAbsoluteUri = function (uri) {
@@ -16032,7 +16206,7 @@ exports.ucs2decode = function (string) {
16032
16206
  };
16033
16207
  /*jshint +W016*/
16034
16208
 
16035
- },{}],123:[function(require,module,exports){
16209
+ },{}],125:[function(require,module,exports){
16036
16210
  (function (process){
16037
16211
  "use strict";
16038
16212
 
@@ -16408,7 +16582,7 @@ ZSchema.getDefaultOptions = function () {
16408
16582
  module.exports = ZSchema;
16409
16583
 
16410
16584
  }).call(this,require('_process'))
16411
- },{"./FormatValidators":115,"./JsonValidation":116,"./Polyfills":117,"./Report":118,"./SchemaCache":119,"./SchemaCompilation":120,"./SchemaValidation":121,"./Utils":122,"./schemas/hyper-schema.json":124,"./schemas/schema.json":125,"_process":15,"lodash.get":12}],124:[function(require,module,exports){
16585
+ },{"./FormatValidators":117,"./JsonValidation":118,"./Polyfills":119,"./Report":120,"./SchemaCache":121,"./SchemaCompilation":122,"./SchemaValidation":123,"./Utils":124,"./schemas/hyper-schema.json":126,"./schemas/schema.json":127,"_process":15,"lodash.get":12}],126:[function(require,module,exports){
16412
16586
  module.exports={
16413
16587
  "$schema": "http://json-schema.org/draft-04/hyper-schema#",
16414
16588
  "id": "http://json-schema.org/draft-04/hyper-schema#",
@@ -16568,7 +16742,7 @@ module.exports={
16568
16742
  }
16569
16743
 
16570
16744
 
16571
- },{}],125:[function(require,module,exports){
16745
+ },{}],127:[function(require,module,exports){
16572
16746
  module.exports={
16573
16747
  "id": "http://json-schema.org/draft-04/schema#",
16574
16748
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -16721,7 +16895,7 @@ module.exports={
16721
16895
  "default": {}
16722
16896
  }
16723
16897
 
16724
- },{}],126:[function(require,module,exports){
16898
+ },{}],128:[function(require,module,exports){
16725
16899
  "use strict";
16726
16900
 
16727
16901
  module.exports = {
@@ -16799,7 +16973,7 @@ module.exports = {
16799
16973
  ]
16800
16974
  };
16801
16975
 
16802
- },{}],127:[function(require,module,exports){
16976
+ },{}],129:[function(require,module,exports){
16803
16977
  "use strict";
16804
16978
 
16805
16979
  module.exports = {
@@ -16864,7 +17038,7 @@ module.exports = {
16864
17038
  ]
16865
17039
  };
16866
17040
 
16867
- },{}],128:[function(require,module,exports){
17041
+ },{}],130:[function(require,module,exports){
16868
17042
  "use strict";
16869
17043
 
16870
17044
  module.exports = {
@@ -16937,7 +17111,7 @@ module.exports = {
16937
17111
  ]
16938
17112
  };
16939
17113
 
16940
- },{}],129:[function(require,module,exports){
17114
+ },{}],131:[function(require,module,exports){
16941
17115
  "use strict";
16942
17116
 
16943
17117
  //Implement new 'shouldFail' keyword
@@ -17000,7 +17174,7 @@ module.exports = {
17000
17174
  ]
17001
17175
  };
17002
17176
 
17003
- },{}],130:[function(require,module,exports){
17177
+ },{}],132:[function(require,module,exports){
17004
17178
  "use strict";
17005
17179
 
17006
17180
  module.exports = {
@@ -17028,7 +17202,7 @@ module.exports = {
17028
17202
  ]
17029
17203
  };
17030
17204
 
17031
- },{}],131:[function(require,module,exports){
17205
+ },{}],133:[function(require,module,exports){
17032
17206
  "use strict";
17033
17207
 
17034
17208
  module.exports = {
@@ -17053,7 +17227,7 @@ module.exports = {
17053
17227
  ]
17054
17228
  };
17055
17229
 
17056
- },{}],132:[function(require,module,exports){
17230
+ },{}],134:[function(require,module,exports){
17057
17231
  "use strict";
17058
17232
 
17059
17233
  module.exports = {
@@ -17126,7 +17300,7 @@ module.exports = {
17126
17300
  ]
17127
17301
  };
17128
17302
 
17129
- },{}],133:[function(require,module,exports){
17303
+ },{}],135:[function(require,module,exports){
17130
17304
  "use strict";
17131
17305
 
17132
17306
  module.exports = {
@@ -17154,7 +17328,7 @@ module.exports = {
17154
17328
  ]
17155
17329
  };
17156
17330
 
17157
- },{}],134:[function(require,module,exports){
17331
+ },{}],136:[function(require,module,exports){
17158
17332
  "use strict";
17159
17333
 
17160
17334
  module.exports = {
@@ -17182,7 +17356,7 @@ module.exports = {
17182
17356
  ]
17183
17357
  };
17184
17358
 
17185
- },{}],135:[function(require,module,exports){
17359
+ },{}],137:[function(require,module,exports){
17186
17360
  "use strict";
17187
17361
 
17188
17362
  module.exports = {
@@ -17210,7 +17384,7 @@ module.exports = {
17210
17384
  ]
17211
17385
  };
17212
17386
 
17213
- },{}],136:[function(require,module,exports){
17387
+ },{}],138:[function(require,module,exports){
17214
17388
  "use strict";
17215
17389
 
17216
17390
  module.exports = {
@@ -17238,7 +17412,7 @@ module.exports = {
17238
17412
  ]
17239
17413
  };
17240
17414
 
17241
- },{}],137:[function(require,module,exports){
17415
+ },{}],139:[function(require,module,exports){
17242
17416
  "use strict";
17243
17417
 
17244
17418
  module.exports = {
@@ -17266,7 +17440,7 @@ module.exports = {
17266
17440
  ]
17267
17441
  };
17268
17442
 
17269
- },{}],138:[function(require,module,exports){
17443
+ },{}],140:[function(require,module,exports){
17270
17444
  "use strict";
17271
17445
 
17272
17446
  module.exports = {
@@ -17322,7 +17496,7 @@ module.exports = {
17322
17496
  ]
17323
17497
  };
17324
17498
 
17325
- },{}],139:[function(require,module,exports){
17499
+ },{}],141:[function(require,module,exports){
17326
17500
  "use strict";
17327
17501
 
17328
17502
  module.exports = {
@@ -17366,7 +17540,7 @@ module.exports = {
17366
17540
  ]
17367
17541
  };
17368
17542
 
17369
- },{}],140:[function(require,module,exports){
17543
+ },{}],142:[function(require,module,exports){
17370
17544
  "use strict";
17371
17545
 
17372
17546
  module.exports = {
@@ -17383,7 +17557,7 @@ module.exports = {
17383
17557
  ]
17384
17558
  };
17385
17559
 
17386
- },{}],141:[function(require,module,exports){
17560
+ },{}],143:[function(require,module,exports){
17387
17561
  "use strict";
17388
17562
 
17389
17563
  module.exports = {
@@ -17405,7 +17579,7 @@ module.exports = {
17405
17579
  ]
17406
17580
  };
17407
17581
 
17408
- },{}],142:[function(require,module,exports){
17582
+ },{}],144:[function(require,module,exports){
17409
17583
  "use strict";
17410
17584
 
17411
17585
  module.exports = {
@@ -17423,7 +17597,7 @@ module.exports = {
17423
17597
  ]
17424
17598
  };
17425
17599
 
17426
- },{}],143:[function(require,module,exports){
17600
+ },{}],145:[function(require,module,exports){
17427
17601
  "use strict";
17428
17602
 
17429
17603
  module.exports = {
@@ -17492,7 +17666,7 @@ module.exports = {
17492
17666
  ]
17493
17667
  };
17494
17668
 
17495
- },{}],144:[function(require,module,exports){
17669
+ },{}],146:[function(require,module,exports){
17496
17670
  "use strict";
17497
17671
 
17498
17672
  module.exports = {
@@ -17507,7 +17681,7 @@ module.exports = {
17507
17681
  ]
17508
17682
  };
17509
17683
 
17510
- },{}],145:[function(require,module,exports){
17684
+ },{}],147:[function(require,module,exports){
17511
17685
  "use strict";
17512
17686
 
17513
17687
  module.exports = {
@@ -17531,7 +17705,7 @@ module.exports = {
17531
17705
  ]
17532
17706
  };
17533
17707
 
17534
- },{}],146:[function(require,module,exports){
17708
+ },{}],148:[function(require,module,exports){
17535
17709
  "use strict";
17536
17710
 
17537
17711
  module.exports = {
@@ -17606,7 +17780,7 @@ module.exports = {
17606
17780
  ]
17607
17781
  };
17608
17782
 
17609
- },{}],147:[function(require,module,exports){
17783
+ },{}],149:[function(require,module,exports){
17610
17784
  "use strict";
17611
17785
 
17612
17786
  module.exports = {
@@ -17627,7 +17801,7 @@ module.exports = {
17627
17801
  ]
17628
17802
  };
17629
17803
 
17630
- },{}],148:[function(require,module,exports){
17804
+ },{}],150:[function(require,module,exports){
17631
17805
  "use strict";
17632
17806
 
17633
17807
  module.exports = {
@@ -17654,7 +17828,7 @@ module.exports = {
17654
17828
  ]
17655
17829
  };
17656
17830
 
17657
- },{}],149:[function(require,module,exports){
17831
+ },{}],151:[function(require,module,exports){
17658
17832
  "use strict";
17659
17833
 
17660
17834
  var REF_NAME = "int.json";
@@ -17701,7 +17875,7 @@ module.exports = {
17701
17875
  ]
17702
17876
  };
17703
17877
 
17704
- },{}],150:[function(require,module,exports){
17878
+ },{}],152:[function(require,module,exports){
17705
17879
  "use strict";
17706
17880
 
17707
17881
  module.exports = {
@@ -17874,7 +18048,7 @@ module.exports = {
17874
18048
  ]
17875
18049
  };
17876
18050
 
17877
- },{}],151:[function(require,module,exports){
18051
+ },{}],153:[function(require,module,exports){
17878
18052
  "use strict";
17879
18053
 
17880
18054
  module.exports = {
@@ -17919,7 +18093,7 @@ module.exports = {
17919
18093
  ]
17920
18094
  };
17921
18095
 
17922
- },{}],152:[function(require,module,exports){
18096
+ },{}],154:[function(require,module,exports){
17923
18097
  "use strict";
17924
18098
 
17925
18099
  module.exports = {
@@ -17962,7 +18136,7 @@ module.exports = {
17962
18136
  ]
17963
18137
  };
17964
18138
 
17965
- },{}],153:[function(require,module,exports){
18139
+ },{}],155:[function(require,module,exports){
17966
18140
  "use strict";
17967
18141
 
17968
18142
  var schema1 = {
@@ -18046,7 +18220,7 @@ module.exports = {
18046
18220
  ]
18047
18221
  };
18048
18222
 
18049
- },{}],154:[function(require,module,exports){
18223
+ },{}],156:[function(require,module,exports){
18050
18224
  module.exports = {
18051
18225
  description: "Issue #139 - add schema id if present to erro message via addError method",
18052
18226
  tests: [
@@ -18105,7 +18279,7 @@ module.exports = {
18105
18279
  ]
18106
18280
  };
18107
18281
 
18108
- },{}],155:[function(require,module,exports){
18282
+ },{}],157:[function(require,module,exports){
18109
18283
  "use strict";
18110
18284
 
18111
18285
  module.exports = {
@@ -18123,7 +18297,7 @@ module.exports = {
18123
18297
  ]
18124
18298
  };
18125
18299
 
18126
- },{}],156:[function(require,module,exports){
18300
+ },{}],158:[function(require,module,exports){
18127
18301
  "use strict";
18128
18302
 
18129
18303
  module.exports = {
@@ -18153,7 +18327,7 @@ module.exports = {
18153
18327
  ]
18154
18328
  };
18155
18329
 
18156
- },{}],157:[function(require,module,exports){
18330
+ },{}],159:[function(require,module,exports){
18157
18331
  "use strict";
18158
18332
 
18159
18333
  module.exports = {
@@ -18181,7 +18355,7 @@ module.exports = {
18181
18355
  ]
18182
18356
  };
18183
18357
 
18184
- },{}],158:[function(require,module,exports){
18358
+ },{}],160:[function(require,module,exports){
18185
18359
  "use strict";
18186
18360
 
18187
18361
  module.exports = {
@@ -18208,7 +18382,7 @@ module.exports = {
18208
18382
  ]
18209
18383
  };
18210
18384
 
18211
- },{}],159:[function(require,module,exports){
18385
+ },{}],161:[function(require,module,exports){
18212
18386
  "use strict";
18213
18387
 
18214
18388
  module.exports = {
@@ -18284,7 +18458,7 @@ module.exports = {
18284
18458
  ]
18285
18459
  };
18286
18460
 
18287
- },{}],160:[function(require,module,exports){
18461
+ },{}],162:[function(require,module,exports){
18288
18462
  "use strict";
18289
18463
 
18290
18464
  module.exports = {
@@ -18320,7 +18494,7 @@ module.exports = {
18320
18494
  ]
18321
18495
  };
18322
18496
 
18323
- },{}],161:[function(require,module,exports){
18497
+ },{}],163:[function(require,module,exports){
18324
18498
  "use strict";
18325
18499
 
18326
18500
  module.exports = {
@@ -18410,7 +18584,7 @@ module.exports = {
18410
18584
  ]
18411
18585
  };
18412
18586
 
18413
- },{}],162:[function(require,module,exports){
18587
+ },{}],164:[function(require,module,exports){
18414
18588
  "use strict";
18415
18589
 
18416
18590
  module.exports = {
@@ -18435,7 +18609,7 @@ module.exports = {
18435
18609
  ]
18436
18610
  };
18437
18611
 
18438
- },{}],163:[function(require,module,exports){
18612
+ },{}],165:[function(require,module,exports){
18439
18613
  "use strict";
18440
18614
 
18441
18615
  module.exports = {
@@ -18511,7 +18685,7 @@ module.exports = {
18511
18685
  ]
18512
18686
  };
18513
18687
 
18514
- },{}],164:[function(require,module,exports){
18688
+ },{}],166:[function(require,module,exports){
18515
18689
  "use strict";
18516
18690
 
18517
18691
  module.exports = {
@@ -18624,7 +18798,7 @@ module.exports = {
18624
18798
  ]
18625
18799
  };
18626
18800
 
18627
- },{}],165:[function(require,module,exports){
18801
+ },{}],167:[function(require,module,exports){
18628
18802
  "use strict";
18629
18803
 
18630
18804
  module.exports = {
@@ -18804,7 +18978,7 @@ module.exports = {
18804
18978
  ]
18805
18979
  };
18806
18980
 
18807
- },{}],166:[function(require,module,exports){
18981
+ },{}],168:[function(require,module,exports){
18808
18982
  "use strict";
18809
18983
 
18810
18984
  module.exports = {
@@ -18851,7 +19025,7 @@ module.exports = {
18851
19025
  ]
18852
19026
  };
18853
19027
 
18854
- },{}],167:[function(require,module,exports){
19028
+ },{}],169:[function(require,module,exports){
18855
19029
  "use strict";
18856
19030
 
18857
19031
  var resourceObject = {
@@ -19147,7 +19321,7 @@ module.exports = {
19147
19321
  ]
19148
19322
  };
19149
19323
 
19150
- },{}],168:[function(require,module,exports){
19324
+ },{}],170:[function(require,module,exports){
19151
19325
  "use strict";
19152
19326
 
19153
19327
  var draft4 = require("./files/Issue47/draft4.json");
@@ -19176,7 +19350,7 @@ module.exports = {
19176
19350
  ]
19177
19351
  };
19178
19352
 
19179
- },{"./files/Issue47/draft4.json":192,"./files/Issue47/sample.json":193,"./files/Issue47/swagger_draft.json":194,"./files/Issue47/swagger_draft_modified.json":195}],169:[function(require,module,exports){
19353
+ },{"./files/Issue47/draft4.json":194,"./files/Issue47/sample.json":195,"./files/Issue47/swagger_draft.json":196,"./files/Issue47/swagger_draft_modified.json":197}],171:[function(require,module,exports){
19180
19354
  "use strict";
19181
19355
 
19182
19356
  module.exports = {
@@ -19209,7 +19383,7 @@ module.exports = {
19209
19383
  ]
19210
19384
  };
19211
19385
 
19212
- },{}],170:[function(require,module,exports){
19386
+ },{}],172:[function(require,module,exports){
19213
19387
  "use strict";
19214
19388
 
19215
19389
  module.exports = {
@@ -19227,7 +19401,7 @@ module.exports = {
19227
19401
  ]
19228
19402
  };
19229
19403
 
19230
- },{}],171:[function(require,module,exports){
19404
+ },{}],173:[function(require,module,exports){
19231
19405
  "use strict";
19232
19406
 
19233
19407
  module.exports = {
@@ -19249,7 +19423,7 @@ module.exports = {
19249
19423
  ]
19250
19424
  };
19251
19425
 
19252
- },{}],172:[function(require,module,exports){
19426
+ },{}],174:[function(require,module,exports){
19253
19427
  "use strict";
19254
19428
 
19255
19429
  module.exports = {
@@ -19320,7 +19494,7 @@ module.exports = {
19320
19494
  ]
19321
19495
  };
19322
19496
 
19323
- },{}],173:[function(require,module,exports){
19497
+ },{}],175:[function(require,module,exports){
19324
19498
  "use strict";
19325
19499
 
19326
19500
  var dataTypeBaseJson = {
@@ -20005,7 +20179,7 @@ module.exports = {
20005
20179
  ]
20006
20180
  };
20007
20181
 
20008
- },{}],174:[function(require,module,exports){
20182
+ },{}],176:[function(require,module,exports){
20009
20183
  "use strict";
20010
20184
 
20011
20185
  module.exports = {
@@ -20068,7 +20242,7 @@ module.exports = {
20068
20242
  ]
20069
20243
  };
20070
20244
 
20071
- },{}],175:[function(require,module,exports){
20245
+ },{}],177:[function(require,module,exports){
20072
20246
  /*jshint -W101*/
20073
20247
 
20074
20248
  "use strict";
@@ -20645,7 +20819,7 @@ module.exports = {
20645
20819
  ]
20646
20820
  };
20647
20821
 
20648
- },{}],176:[function(require,module,exports){
20822
+ },{}],178:[function(require,module,exports){
20649
20823
  "use strict";
20650
20824
 
20651
20825
  module.exports = {
@@ -20676,7 +20850,7 @@ module.exports = {
20676
20850
  ]
20677
20851
  };
20678
20852
 
20679
- },{}],177:[function(require,module,exports){
20853
+ },{}],179:[function(require,module,exports){
20680
20854
  "use strict";
20681
20855
 
20682
20856
  module.exports = {
@@ -20727,7 +20901,7 @@ module.exports = {
20727
20901
  ]
20728
20902
  };
20729
20903
 
20730
- },{}],178:[function(require,module,exports){
20904
+ },{}],180:[function(require,module,exports){
20731
20905
  "use strict";
20732
20906
 
20733
20907
  module.exports = {
@@ -20847,7 +21021,7 @@ module.exports = {
20847
21021
  ]
20848
21022
  };
20849
21023
 
20850
- },{}],179:[function(require,module,exports){
21024
+ },{}],181:[function(require,module,exports){
20851
21025
  "use strict";
20852
21026
 
20853
21027
  module.exports = {
@@ -20905,7 +21079,7 @@ module.exports = {
20905
21079
  ]
20906
21080
  };
20907
21081
 
20908
- },{}],180:[function(require,module,exports){
21082
+ },{}],182:[function(require,module,exports){
20909
21083
  "use strict";
20910
21084
 
20911
21085
  module.exports = {
@@ -20978,7 +21152,7 @@ module.exports = {
20978
21152
  ]
20979
21153
  };
20980
21154
 
20981
- },{}],181:[function(require,module,exports){
21155
+ },{}],183:[function(require,module,exports){
20982
21156
  "use strict";
20983
21157
 
20984
21158
  var innerSchema = {
@@ -21023,7 +21197,7 @@ module.exports = {
21023
21197
  ]
21024
21198
  };
21025
21199
 
21026
- },{}],182:[function(require,module,exports){
21200
+ },{}],184:[function(require,module,exports){
21027
21201
  "use strict";
21028
21202
 
21029
21203
  var schema1 = {
@@ -21067,7 +21241,7 @@ module.exports = {
21067
21241
  ]
21068
21242
  };
21069
21243
 
21070
- },{}],183:[function(require,module,exports){
21244
+ },{}],185:[function(require,module,exports){
21071
21245
  "use strict";
21072
21246
 
21073
21247
  module.exports = {
@@ -21085,7 +21259,7 @@ module.exports = {
21085
21259
  ]
21086
21260
  };
21087
21261
 
21088
- },{}],184:[function(require,module,exports){
21262
+ },{}],186:[function(require,module,exports){
21089
21263
  "use strict";
21090
21264
 
21091
21265
  module.exports = {
@@ -21117,7 +21291,7 @@ module.exports = {
21117
21291
  ]
21118
21292
  };
21119
21293
 
21120
- },{}],185:[function(require,module,exports){
21294
+ },{}],187:[function(require,module,exports){
21121
21295
  "use strict";
21122
21296
 
21123
21297
  module.exports = {
@@ -21176,7 +21350,7 @@ module.exports = {
21176
21350
  ]
21177
21351
  };
21178
21352
 
21179
- },{}],186:[function(require,module,exports){
21353
+ },{}],188:[function(require,module,exports){
21180
21354
  "use strict";
21181
21355
 
21182
21356
  module.exports = {
@@ -21201,7 +21375,7 @@ module.exports = {
21201
21375
  ]
21202
21376
  };
21203
21377
 
21204
- },{}],187:[function(require,module,exports){
21378
+ },{}],189:[function(require,module,exports){
21205
21379
  "use strict";
21206
21380
 
21207
21381
  module.exports = {
@@ -21226,7 +21400,7 @@ module.exports = {
21226
21400
  ]
21227
21401
  };
21228
21402
 
21229
- },{}],188:[function(require,module,exports){
21403
+ },{}],190:[function(require,module,exports){
21230
21404
  "use strict";
21231
21405
 
21232
21406
  module.exports = {
@@ -21271,7 +21445,7 @@ module.exports = {
21271
21445
  ]
21272
21446
  };
21273
21447
 
21274
- },{}],189:[function(require,module,exports){
21448
+ },{}],191:[function(require,module,exports){
21275
21449
  "use strict";
21276
21450
 
21277
21451
  module.exports = {
@@ -21296,7 +21470,7 @@ module.exports = {
21296
21470
  ]
21297
21471
  };
21298
21472
 
21299
- },{}],190:[function(require,module,exports){
21473
+ },{}],192:[function(require,module,exports){
21300
21474
  "use strict";
21301
21475
 
21302
21476
  module.exports = {
@@ -21335,7 +21509,7 @@ module.exports = {
21335
21509
  ]
21336
21510
  };
21337
21511
 
21338
- },{}],191:[function(require,module,exports){
21512
+ },{}],193:[function(require,module,exports){
21339
21513
  "use strict";
21340
21514
 
21341
21515
  module.exports = {
@@ -21365,7 +21539,7 @@ module.exports = {
21365
21539
  ]
21366
21540
  };
21367
21541
 
21368
- },{}],192:[function(require,module,exports){
21542
+ },{}],194:[function(require,module,exports){
21369
21543
  module.exports={
21370
21544
  "id": "http://json-schema.org/draft-04/schema#",
21371
21545
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -21517,7 +21691,7 @@ module.exports={
21517
21691
  "default": {}
21518
21692
  }
21519
21693
 
21520
- },{}],193:[function(require,module,exports){
21694
+ },{}],195:[function(require,module,exports){
21521
21695
  module.exports={
21522
21696
  "swagger": 2,
21523
21697
  "info": {
@@ -21608,7 +21782,7 @@ module.exports={
21608
21782
  }
21609
21783
  }
21610
21784
 
21611
- },{}],194:[function(require,module,exports){
21785
+ },{}],196:[function(require,module,exports){
21612
21786
  module.exports={
21613
21787
  "title": "A JSON Schema for Swagger 2.0 API.",
21614
21788
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -22006,7 +22180,7 @@ module.exports={
22006
22180
  }
22007
22181
  }
22008
22182
 
22009
- },{}],195:[function(require,module,exports){
22183
+ },{}],197:[function(require,module,exports){
22010
22184
  module.exports={
22011
22185
  "title": "A JSON Schema for Swagger 2.0 API.",
22012
22186
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -22404,7 +22578,7 @@ module.exports={
22404
22578
  }
22405
22579
  }
22406
22580
 
22407
- },{}],196:[function(require,module,exports){
22581
+ },{}],198:[function(require,module,exports){
22408
22582
  'use strict';
22409
22583
 
22410
22584
  module.exports = {
@@ -22429,15 +22603,15 @@ module.exports = {
22429
22603
  ]
22430
22604
  };
22431
22605
 
22432
- },{}],197:[function(require,module,exports){
22433
- arguments[4][192][0].apply(exports,arguments)
22434
- },{"dup":192}],198:[function(require,module,exports){
22606
+ },{}],199:[function(require,module,exports){
22607
+ arguments[4][194][0].apply(exports,arguments)
22608
+ },{"dup":194}],200:[function(require,module,exports){
22435
22609
  module.exports={
22436
22610
  "type": "integer"
22437
22611
  }
22438
- },{}],199:[function(require,module,exports){
22439
- arguments[4][198][0].apply(exports,arguments)
22440
- },{"dup":198}],200:[function(require,module,exports){
22612
+ },{}],201:[function(require,module,exports){
22613
+ arguments[4][200][0].apply(exports,arguments)
22614
+ },{"dup":200}],202:[function(require,module,exports){
22441
22615
  module.exports={
22442
22616
  "integer": {
22443
22617
  "type": "integer"
@@ -22446,7 +22620,7 @@ module.exports={
22446
22620
  "$ref": "#/integer"
22447
22621
  }
22448
22622
  }
22449
- },{}],201:[function(require,module,exports){
22623
+ },{}],203:[function(require,module,exports){
22450
22624
  module.exports=[
22451
22625
  {
22452
22626
  "description": "additionalItems as schema",
@@ -22530,7 +22704,7 @@ module.exports=[
22530
22704
  }
22531
22705
  ]
22532
22706
 
22533
- },{}],202:[function(require,module,exports){
22707
+ },{}],204:[function(require,module,exports){
22534
22708
  module.exports=[
22535
22709
  {
22536
22710
  "description":
@@ -22620,7 +22794,7 @@ module.exports=[
22620
22794
  }
22621
22795
  ]
22622
22796
 
22623
- },{}],203:[function(require,module,exports){
22797
+ },{}],205:[function(require,module,exports){
22624
22798
  module.exports=[
22625
22799
  {
22626
22800
  "description": "allOf",
@@ -22734,7 +22908,7 @@ module.exports=[
22734
22908
  }
22735
22909
  ]
22736
22910
 
22737
- },{}],204:[function(require,module,exports){
22911
+ },{}],206:[function(require,module,exports){
22738
22912
  module.exports=[
22739
22913
  {
22740
22914
  "description": "anyOf",
@@ -22804,7 +22978,7 @@ module.exports=[
22804
22978
  }
22805
22979
  ]
22806
22980
 
22807
- },{}],205:[function(require,module,exports){
22981
+ },{}],207:[function(require,module,exports){
22808
22982
  module.exports=[
22809
22983
  {
22810
22984
  "description": "invalid type for default",
@@ -22855,7 +23029,7 @@ module.exports=[
22855
23029
  }
22856
23030
  ]
22857
23031
 
22858
- },{}],206:[function(require,module,exports){
23032
+ },{}],208:[function(require,module,exports){
22859
23033
  module.exports=[
22860
23034
  {
22861
23035
  "description": "valid definition",
@@ -22889,7 +23063,7 @@ module.exports=[
22889
23063
  }
22890
23064
  ]
22891
23065
 
22892
- },{}],207:[function(require,module,exports){
23066
+ },{}],209:[function(require,module,exports){
22893
23067
  module.exports=[
22894
23068
  {
22895
23069
  "description": "dependencies",
@@ -23004,7 +23178,7 @@ module.exports=[
23004
23178
  }
23005
23179
  ]
23006
23180
 
23007
- },{}],208:[function(require,module,exports){
23181
+ },{}],210:[function(require,module,exports){
23008
23182
  module.exports=[
23009
23183
  {
23010
23184
  "description": "simple enum validation",
@@ -23078,7 +23252,7 @@ module.exports=[
23078
23252
  }
23079
23253
  ]
23080
23254
 
23081
- },{}],209:[function(require,module,exports){
23255
+ },{}],211:[function(require,module,exports){
23082
23256
  module.exports=[
23083
23257
  {
23084
23258
  "description": "a schema given for items",
@@ -23126,7 +23300,7 @@ module.exports=[
23126
23300
  }
23127
23301
  ]
23128
23302
 
23129
- },{}],210:[function(require,module,exports){
23303
+ },{}],212:[function(require,module,exports){
23130
23304
  module.exports=[
23131
23305
  {
23132
23306
  "description": "maxItems validation",
@@ -23156,7 +23330,7 @@ module.exports=[
23156
23330
  }
23157
23331
  ]
23158
23332
 
23159
- },{}],211:[function(require,module,exports){
23333
+ },{}],213:[function(require,module,exports){
23160
23334
  module.exports=[
23161
23335
  {
23162
23336
  "description": "maxLength validation",
@@ -23191,7 +23365,7 @@ module.exports=[
23191
23365
  }
23192
23366
  ]
23193
23367
 
23194
- },{}],212:[function(require,module,exports){
23368
+ },{}],214:[function(require,module,exports){
23195
23369
  module.exports=[
23196
23370
  {
23197
23371
  "description": "maxProperties validation",
@@ -23221,7 +23395,7 @@ module.exports=[
23221
23395
  }
23222
23396
  ]
23223
23397
 
23224
- },{}],213:[function(require,module,exports){
23398
+ },{}],215:[function(require,module,exports){
23225
23399
  module.exports=[
23226
23400
  {
23227
23401
  "description": "maximum validation",
@@ -23265,7 +23439,7 @@ module.exports=[
23265
23439
  }
23266
23440
  ]
23267
23441
 
23268
- },{}],214:[function(require,module,exports){
23442
+ },{}],216:[function(require,module,exports){
23269
23443
  module.exports=[
23270
23444
  {
23271
23445
  "description": "minItems validation",
@@ -23295,7 +23469,7 @@ module.exports=[
23295
23469
  }
23296
23470
  ]
23297
23471
 
23298
- },{}],215:[function(require,module,exports){
23472
+ },{}],217:[function(require,module,exports){
23299
23473
  module.exports=[
23300
23474
  {
23301
23475
  "description": "minLength validation",
@@ -23330,7 +23504,7 @@ module.exports=[
23330
23504
  }
23331
23505
  ]
23332
23506
 
23333
- },{}],216:[function(require,module,exports){
23507
+ },{}],218:[function(require,module,exports){
23334
23508
  module.exports=[
23335
23509
  {
23336
23510
  "description": "minProperties validation",
@@ -23360,7 +23534,7 @@ module.exports=[
23360
23534
  }
23361
23535
  ]
23362
23536
 
23363
- },{}],217:[function(require,module,exports){
23537
+ },{}],219:[function(require,module,exports){
23364
23538
  module.exports=[
23365
23539
  {
23366
23540
  "description": "minimum validation",
@@ -23404,7 +23578,7 @@ module.exports=[
23404
23578
  }
23405
23579
  ]
23406
23580
 
23407
- },{}],218:[function(require,module,exports){
23581
+ },{}],220:[function(require,module,exports){
23408
23582
  module.exports=[
23409
23583
  {
23410
23584
  "description": "by int",
@@ -23466,7 +23640,7 @@ module.exports=[
23466
23640
  }
23467
23641
  ]
23468
23642
 
23469
- },{}],219:[function(require,module,exports){
23643
+ },{}],221:[function(require,module,exports){
23470
23644
  module.exports=[
23471
23645
  {
23472
23646
  "description": "not",
@@ -23564,7 +23738,7 @@ module.exports=[
23564
23738
 
23565
23739
  ]
23566
23740
 
23567
- },{}],220:[function(require,module,exports){
23741
+ },{}],222:[function(require,module,exports){
23568
23742
  module.exports=[
23569
23743
  {
23570
23744
  "description": "oneOf",
@@ -23634,7 +23808,7 @@ module.exports=[
23634
23808
  }
23635
23809
  ]
23636
23810
 
23637
- },{}],221:[function(require,module,exports){
23811
+ },{}],223:[function(require,module,exports){
23638
23812
  module.exports=[
23639
23813
  {
23640
23814
  "description": "integer",
@@ -23743,7 +23917,7 @@ module.exports=[
23743
23917
  }
23744
23918
  ]
23745
23919
 
23746
- },{}],222:[function(require,module,exports){
23920
+ },{}],224:[function(require,module,exports){
23747
23921
  module.exports=[
23748
23922
  {
23749
23923
  "description": "validation of date-time strings",
@@ -23888,7 +24062,7 @@ module.exports=[
23888
24062
  }
23889
24063
  ]
23890
24064
 
23891
- },{}],223:[function(require,module,exports){
24065
+ },{}],225:[function(require,module,exports){
23892
24066
  module.exports=[
23893
24067
  {
23894
24068
  "description": "pattern validation",
@@ -23913,7 +24087,7 @@ module.exports=[
23913
24087
  }
23914
24088
  ]
23915
24089
 
23916
- },{}],224:[function(require,module,exports){
24090
+ },{}],226:[function(require,module,exports){
23917
24091
  module.exports=[
23918
24092
  {
23919
24093
  "description":
@@ -24025,7 +24199,7 @@ module.exports=[
24025
24199
  }
24026
24200
  ]
24027
24201
 
24028
- },{}],225:[function(require,module,exports){
24202
+ },{}],227:[function(require,module,exports){
24029
24203
  module.exports=[
24030
24204
  {
24031
24205
  "description": "object properties validation",
@@ -24119,7 +24293,7 @@ module.exports=[
24119
24293
  }
24120
24294
  ]
24121
24295
 
24122
- },{}],226:[function(require,module,exports){
24296
+ },{}],228:[function(require,module,exports){
24123
24297
  module.exports=[
24124
24298
  {
24125
24299
  "description": "root pointer ref",
@@ -24265,7 +24439,7 @@ module.exports=[
24265
24439
  }
24266
24440
  ]
24267
24441
 
24268
- },{}],227:[function(require,module,exports){
24442
+ },{}],229:[function(require,module,exports){
24269
24443
  module.exports=[
24270
24444
  {
24271
24445
  "description": "remote ref",
@@ -24341,7 +24515,7 @@ module.exports=[
24341
24515
  }
24342
24516
  ]
24343
24517
 
24344
- },{}],228:[function(require,module,exports){
24518
+ },{}],230:[function(require,module,exports){
24345
24519
  module.exports=[
24346
24520
  {
24347
24521
  "description": "required validation",
@@ -24382,7 +24556,7 @@ module.exports=[
24382
24556
  }
24383
24557
  ]
24384
24558
 
24385
- },{}],229:[function(require,module,exports){
24559
+ },{}],231:[function(require,module,exports){
24386
24560
  module.exports=[
24387
24561
  {
24388
24562
  "description": "integer type matches integers",
@@ -24714,7 +24888,7 @@ module.exports=[
24714
24888
  }
24715
24889
  ]
24716
24890
 
24717
- },{}],230:[function(require,module,exports){
24891
+ },{}],232:[function(require,module,exports){
24718
24892
  module.exports=[
24719
24893
  {
24720
24894
  "description": "uniqueItems validation",
@@ -24795,7 +24969,7 @@ module.exports=[
24795
24969
  }
24796
24970
  ]
24797
24971
 
24798
- },{}],231:[function(require,module,exports){
24972
+ },{}],233:[function(require,module,exports){
24799
24973
  "use strict";
24800
24974
 
24801
24975
  var isBrowser = typeof window !== "undefined";
@@ -24888,7 +25062,7 @@ describe("Automatic schema loading", function () {
24888
25062
 
24889
25063
  });
24890
25064
 
24891
- },{"../../src/ZSchema":123,"https":7}],232:[function(require,module,exports){
25065
+ },{"../../src/ZSchema":125,"https":7}],234:[function(require,module,exports){
24892
25066
  "use strict";
24893
25067
 
24894
25068
  var ZSchema = require("../../src/ZSchema");
@@ -24960,7 +25134,7 @@ describe("Basic", function () {
24960
25134
 
24961
25135
  });
24962
25136
 
24963
- },{"../../src/ZSchema":123,"../files/draft-04-schema.json":197,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":198,"../jsonSchemaTestSuite/remotes/integer.json":199,"../jsonSchemaTestSuite/remotes/subSchemas.json":200}],233:[function(require,module,exports){
25137
+ },{"../../src/ZSchema":125,"../files/draft-04-schema.json":199,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":200,"../jsonSchemaTestSuite/remotes/integer.json":201,"../jsonSchemaTestSuite/remotes/subSchemas.json":202}],235:[function(require,module,exports){
24964
25138
  "use strict";
24965
25139
 
24966
25140
  var ZSchema = require("../../src/ZSchema");
@@ -25056,7 +25230,7 @@ describe("JsonSchemaTestSuite", function () {
25056
25230
 
25057
25231
  });
25058
25232
 
25059
- },{"../../src/ZSchema":123,"../files/draft-04-schema.json":197,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":198,"../jsonSchemaTestSuite/remotes/integer.json":199,"../jsonSchemaTestSuite/remotes/subSchemas.json":200,"../jsonSchemaTestSuite/tests/draft4/additionalItems.json":201,"../jsonSchemaTestSuite/tests/draft4/additionalProperties.json":202,"../jsonSchemaTestSuite/tests/draft4/allOf.json":203,"../jsonSchemaTestSuite/tests/draft4/anyOf.json":204,"../jsonSchemaTestSuite/tests/draft4/default.json":205,"../jsonSchemaTestSuite/tests/draft4/definitions.json":206,"../jsonSchemaTestSuite/tests/draft4/dependencies.json":207,"../jsonSchemaTestSuite/tests/draft4/enum.json":208,"../jsonSchemaTestSuite/tests/draft4/items.json":209,"../jsonSchemaTestSuite/tests/draft4/maxItems.json":210,"../jsonSchemaTestSuite/tests/draft4/maxLength.json":211,"../jsonSchemaTestSuite/tests/draft4/maxProperties.json":212,"../jsonSchemaTestSuite/tests/draft4/maximum.json":213,"../jsonSchemaTestSuite/tests/draft4/minItems.json":214,"../jsonSchemaTestSuite/tests/draft4/minLength.json":215,"../jsonSchemaTestSuite/tests/draft4/minProperties.json":216,"../jsonSchemaTestSuite/tests/draft4/minimum.json":217,"../jsonSchemaTestSuite/tests/draft4/multipleOf.json":218,"../jsonSchemaTestSuite/tests/draft4/not.json":219,"../jsonSchemaTestSuite/tests/draft4/oneOf.json":220,"../jsonSchemaTestSuite/tests/draft4/optional/bignum.json":221,"../jsonSchemaTestSuite/tests/draft4/optional/format.json":222,"../jsonSchemaTestSuite/tests/draft4/pattern.json":223,"../jsonSchemaTestSuite/tests/draft4/patternProperties.json":224,"../jsonSchemaTestSuite/tests/draft4/properties.json":225,"../jsonSchemaTestSuite/tests/draft4/ref.json":226,"../jsonSchemaTestSuite/tests/draft4/refRemote.json":227,"../jsonSchemaTestSuite/tests/draft4/required.json":228,"../jsonSchemaTestSuite/tests/draft4/type.json":229,"../jsonSchemaTestSuite/tests/draft4/uniqueItems.json":230}],234:[function(require,module,exports){
25233
+ },{"../../src/ZSchema":125,"../files/draft-04-schema.json":199,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":200,"../jsonSchemaTestSuite/remotes/integer.json":201,"../jsonSchemaTestSuite/remotes/subSchemas.json":202,"../jsonSchemaTestSuite/tests/draft4/additionalItems.json":203,"../jsonSchemaTestSuite/tests/draft4/additionalProperties.json":204,"../jsonSchemaTestSuite/tests/draft4/allOf.json":205,"../jsonSchemaTestSuite/tests/draft4/anyOf.json":206,"../jsonSchemaTestSuite/tests/draft4/default.json":207,"../jsonSchemaTestSuite/tests/draft4/definitions.json":208,"../jsonSchemaTestSuite/tests/draft4/dependencies.json":209,"../jsonSchemaTestSuite/tests/draft4/enum.json":210,"../jsonSchemaTestSuite/tests/draft4/items.json":211,"../jsonSchemaTestSuite/tests/draft4/maxItems.json":212,"../jsonSchemaTestSuite/tests/draft4/maxLength.json":213,"../jsonSchemaTestSuite/tests/draft4/maxProperties.json":214,"../jsonSchemaTestSuite/tests/draft4/maximum.json":215,"../jsonSchemaTestSuite/tests/draft4/minItems.json":216,"../jsonSchemaTestSuite/tests/draft4/minLength.json":217,"../jsonSchemaTestSuite/tests/draft4/minProperties.json":218,"../jsonSchemaTestSuite/tests/draft4/minimum.json":219,"../jsonSchemaTestSuite/tests/draft4/multipleOf.json":220,"../jsonSchemaTestSuite/tests/draft4/not.json":221,"../jsonSchemaTestSuite/tests/draft4/oneOf.json":222,"../jsonSchemaTestSuite/tests/draft4/optional/bignum.json":223,"../jsonSchemaTestSuite/tests/draft4/optional/format.json":224,"../jsonSchemaTestSuite/tests/draft4/pattern.json":225,"../jsonSchemaTestSuite/tests/draft4/patternProperties.json":226,"../jsonSchemaTestSuite/tests/draft4/properties.json":227,"../jsonSchemaTestSuite/tests/draft4/ref.json":228,"../jsonSchemaTestSuite/tests/draft4/refRemote.json":229,"../jsonSchemaTestSuite/tests/draft4/required.json":230,"../jsonSchemaTestSuite/tests/draft4/type.json":231,"../jsonSchemaTestSuite/tests/draft4/uniqueItems.json":232}],236:[function(require,module,exports){
25060
25234
  "use strict";
25061
25235
 
25062
25236
  var ZSchema = require("../../src/ZSchema");
@@ -25090,7 +25264,7 @@ describe("Using multiple instances of Z-Schema", function () {
25090
25264
 
25091
25265
  });
25092
25266
 
25093
- },{"../../src/ZSchema":123}],235:[function(require,module,exports){
25267
+ },{"../../src/ZSchema":125}],237:[function(require,module,exports){
25094
25268
  /*jshint -W030 */
25095
25269
 
25096
25270
  "use strict";
@@ -25288,7 +25462,7 @@ describe("ZSchemaTestSuite", function () {
25288
25462
 
25289
25463
  });
25290
25464
 
25291
- },{"../../src/ZSchema":123,"../ZSchemaTestSuite/AssumeAdditional.js":126,"../ZSchemaTestSuite/CustomFormats.js":127,"../ZSchemaTestSuite/CustomFormatsAsync.js":128,"../ZSchemaTestSuite/CustomValidator.js":129,"../ZSchemaTestSuite/ErrorPathAsArray.js":130,"../ZSchemaTestSuite/ErrorPathAsJSONPointer.js":131,"../ZSchemaTestSuite/ForceAdditional.js":132,"../ZSchemaTestSuite/ForceItems.js":133,"../ZSchemaTestSuite/ForceMaxItems.js":134,"../ZSchemaTestSuite/ForceMaxLength.js":135,"../ZSchemaTestSuite/ForceMinItems.js":136,"../ZSchemaTestSuite/ForceMinLength.js":137,"../ZSchemaTestSuite/ForceProperties.js":138,"../ZSchemaTestSuite/IgnoreUnresolvableReferences.js":139,"../ZSchemaTestSuite/InvalidId.js":140,"../ZSchemaTestSuite/Issue101.js":141,"../ZSchemaTestSuite/Issue102.js":142,"../ZSchemaTestSuite/Issue103.js":143,"../ZSchemaTestSuite/Issue106.js":144,"../ZSchemaTestSuite/Issue107.js":145,"../ZSchemaTestSuite/Issue12.js":146,"../ZSchemaTestSuite/Issue121.js":147,"../ZSchemaTestSuite/Issue125.js":148,"../ZSchemaTestSuite/Issue126.js":149,"../ZSchemaTestSuite/Issue13.js":150,"../ZSchemaTestSuite/Issue130.js":151,"../ZSchemaTestSuite/Issue131.js":152,"../ZSchemaTestSuite/Issue137.js":153,"../ZSchemaTestSuite/Issue139.js":154,"../ZSchemaTestSuite/Issue142.js":155,"../ZSchemaTestSuite/Issue146.js":156,"../ZSchemaTestSuite/Issue151.js":157,"../ZSchemaTestSuite/Issue16.js":158,"../ZSchemaTestSuite/Issue22.js":159,"../ZSchemaTestSuite/Issue25.js":160,"../ZSchemaTestSuite/Issue26.js":161,"../ZSchemaTestSuite/Issue37.js":162,"../ZSchemaTestSuite/Issue40.js":163,"../ZSchemaTestSuite/Issue41.js":164,"../ZSchemaTestSuite/Issue43.js":165,"../ZSchemaTestSuite/Issue44.js":166,"../ZSchemaTestSuite/Issue45.js":167,"../ZSchemaTestSuite/Issue47.js":168,"../ZSchemaTestSuite/Issue48.js":169,"../ZSchemaTestSuite/Issue49.js":170,"../ZSchemaTestSuite/Issue53.js":171,"../ZSchemaTestSuite/Issue56.js":172,"../ZSchemaTestSuite/Issue57.js":173,"../ZSchemaTestSuite/Issue58.js":174,"../ZSchemaTestSuite/Issue63.js":175,"../ZSchemaTestSuite/Issue64.js":176,"../ZSchemaTestSuite/Issue67.js":177,"../ZSchemaTestSuite/Issue71.js":178,"../ZSchemaTestSuite/Issue73.js":179,"../ZSchemaTestSuite/Issue76.js":180,"../ZSchemaTestSuite/Issue85.js":181,"../ZSchemaTestSuite/Issue94.js":182,"../ZSchemaTestSuite/Issue96.js":183,"../ZSchemaTestSuite/Issue98.js":184,"../ZSchemaTestSuite/MultipleSchemas.js":185,"../ZSchemaTestSuite/NoEmptyArrays.js":186,"../ZSchemaTestSuite/NoEmptyStrings.js":187,"../ZSchemaTestSuite/NoExtraKeywords.js":188,"../ZSchemaTestSuite/NoTypeless.js":189,"../ZSchemaTestSuite/PedanticCheck.js":190,"../ZSchemaTestSuite/StrictUris.js":191,"../ZSchemaTestSuite/getRegisteredFormats.js":196}],236:[function(require,module,exports){
25465
+ },{"../../src/ZSchema":125,"../ZSchemaTestSuite/AssumeAdditional.js":128,"../ZSchemaTestSuite/CustomFormats.js":129,"../ZSchemaTestSuite/CustomFormatsAsync.js":130,"../ZSchemaTestSuite/CustomValidator.js":131,"../ZSchemaTestSuite/ErrorPathAsArray.js":132,"../ZSchemaTestSuite/ErrorPathAsJSONPointer.js":133,"../ZSchemaTestSuite/ForceAdditional.js":134,"../ZSchemaTestSuite/ForceItems.js":135,"../ZSchemaTestSuite/ForceMaxItems.js":136,"../ZSchemaTestSuite/ForceMaxLength.js":137,"../ZSchemaTestSuite/ForceMinItems.js":138,"../ZSchemaTestSuite/ForceMinLength.js":139,"../ZSchemaTestSuite/ForceProperties.js":140,"../ZSchemaTestSuite/IgnoreUnresolvableReferences.js":141,"../ZSchemaTestSuite/InvalidId.js":142,"../ZSchemaTestSuite/Issue101.js":143,"../ZSchemaTestSuite/Issue102.js":144,"../ZSchemaTestSuite/Issue103.js":145,"../ZSchemaTestSuite/Issue106.js":146,"../ZSchemaTestSuite/Issue107.js":147,"../ZSchemaTestSuite/Issue12.js":148,"../ZSchemaTestSuite/Issue121.js":149,"../ZSchemaTestSuite/Issue125.js":150,"../ZSchemaTestSuite/Issue126.js":151,"../ZSchemaTestSuite/Issue13.js":152,"../ZSchemaTestSuite/Issue130.js":153,"../ZSchemaTestSuite/Issue131.js":154,"../ZSchemaTestSuite/Issue137.js":155,"../ZSchemaTestSuite/Issue139.js":156,"../ZSchemaTestSuite/Issue142.js":157,"../ZSchemaTestSuite/Issue146.js":158,"../ZSchemaTestSuite/Issue151.js":159,"../ZSchemaTestSuite/Issue16.js":160,"../ZSchemaTestSuite/Issue22.js":161,"../ZSchemaTestSuite/Issue25.js":162,"../ZSchemaTestSuite/Issue26.js":163,"../ZSchemaTestSuite/Issue37.js":164,"../ZSchemaTestSuite/Issue40.js":165,"../ZSchemaTestSuite/Issue41.js":166,"../ZSchemaTestSuite/Issue43.js":167,"../ZSchemaTestSuite/Issue44.js":168,"../ZSchemaTestSuite/Issue45.js":169,"../ZSchemaTestSuite/Issue47.js":170,"../ZSchemaTestSuite/Issue48.js":171,"../ZSchemaTestSuite/Issue49.js":172,"../ZSchemaTestSuite/Issue53.js":173,"../ZSchemaTestSuite/Issue56.js":174,"../ZSchemaTestSuite/Issue57.js":175,"../ZSchemaTestSuite/Issue58.js":176,"../ZSchemaTestSuite/Issue63.js":177,"../ZSchemaTestSuite/Issue64.js":178,"../ZSchemaTestSuite/Issue67.js":179,"../ZSchemaTestSuite/Issue71.js":180,"../ZSchemaTestSuite/Issue73.js":181,"../ZSchemaTestSuite/Issue76.js":182,"../ZSchemaTestSuite/Issue85.js":183,"../ZSchemaTestSuite/Issue94.js":184,"../ZSchemaTestSuite/Issue96.js":185,"../ZSchemaTestSuite/Issue98.js":186,"../ZSchemaTestSuite/MultipleSchemas.js":187,"../ZSchemaTestSuite/NoEmptyArrays.js":188,"../ZSchemaTestSuite/NoEmptyStrings.js":189,"../ZSchemaTestSuite/NoExtraKeywords.js":190,"../ZSchemaTestSuite/NoTypeless.js":191,"../ZSchemaTestSuite/PedanticCheck.js":192,"../ZSchemaTestSuite/StrictUris.js":193,"../ZSchemaTestSuite/getRegisteredFormats.js":198}],238:[function(require,module,exports){
25292
25466
  "use strict";
25293
25467
 
25294
25468
  var ZSchema = require("../../src/ZSchema");
@@ -25387,4 +25561,4 @@ describe("Using path to schema as a third argument", function () {
25387
25561
 
25388
25562
  });
25389
25563
 
25390
- },{"../../src/ZSchema":123}]},{},[231,232,233,234,236,235]);
25564
+ },{"../../src/ZSchema":125}]},{},[233,234,235,236,238,237]);