z-schema 3.18.4 → 3.19.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.
- package/dist/ZSchema-browser-min.js +1 -1
- package/dist/ZSchema-browser-min.js.map +1 -1
- package/dist/ZSchema-browser-test.js +359 -248
- package/dist/ZSchema-browser.js +242 -131
- package/package.json +15 -15
- package/src/SchemaCache.js +9 -1
- package/src/ZSchema.js +36 -21
|
@@ -8594,7 +8594,7 @@ http.METHODS = [
|
|
|
8594
8594
|
'UNSUBSCRIBE'
|
|
8595
8595
|
]
|
|
8596
8596
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
8597
|
-
},{"./lib/request":32,"builtin-status-codes":4,"url":36,"xtend":
|
|
8597
|
+
},{"./lib/request":32,"builtin-status-codes":4,"url":36,"xtend":109}],31:[function(require,module,exports){
|
|
8598
8598
|
(function (global){
|
|
8599
8599
|
exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableStream)
|
|
8600
8600
|
|
|
@@ -10359,6 +10359,10 @@ var _isNumeric = require('./lib/isNumeric');
|
|
|
10359
10359
|
|
|
10360
10360
|
var _isNumeric2 = _interopRequireDefault(_isNumeric);
|
|
10361
10361
|
|
|
10362
|
+
var _isPort = require('./lib/isPort');
|
|
10363
|
+
|
|
10364
|
+
var _isPort2 = _interopRequireDefault(_isPort);
|
|
10365
|
+
|
|
10362
10366
|
var _isLowercase = require('./lib/isLowercase');
|
|
10363
10367
|
|
|
10364
10368
|
var _isLowercase2 = _interopRequireDefault(_isLowercase);
|
|
@@ -10491,6 +10495,10 @@ var _isISO = require('./lib/isISO8601');
|
|
|
10491
10495
|
|
|
10492
10496
|
var _isISO2 = _interopRequireDefault(_isISO);
|
|
10493
10497
|
|
|
10498
|
+
var _isISO31661Alpha = require('./lib/isISO31661Alpha2');
|
|
10499
|
+
|
|
10500
|
+
var _isISO31661Alpha2 = _interopRequireDefault(_isISO31661Alpha);
|
|
10501
|
+
|
|
10494
10502
|
var _isBase = require('./lib/isBase64');
|
|
10495
10503
|
|
|
10496
10504
|
var _isBase2 = _interopRequireDefault(_isBase);
|
|
@@ -10553,7 +10561,7 @@ var _toString2 = _interopRequireDefault(_toString);
|
|
|
10553
10561
|
|
|
10554
10562
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10555
10563
|
|
|
10556
|
-
var version = '
|
|
10564
|
+
var version = '9.1.1';
|
|
10557
10565
|
|
|
10558
10566
|
var validator = {
|
|
10559
10567
|
version: version,
|
|
@@ -10573,6 +10581,7 @@ var validator = {
|
|
|
10573
10581
|
isAlpha: _isAlpha2.default,
|
|
10574
10582
|
isAlphanumeric: _isAlphanumeric2.default,
|
|
10575
10583
|
isNumeric: _isNumeric2.default,
|
|
10584
|
+
isPort: _isPort2.default,
|
|
10576
10585
|
isLowercase: _isLowercase2.default,
|
|
10577
10586
|
isUppercase: _isUppercase2.default,
|
|
10578
10587
|
isAscii: _isAscii2.default,
|
|
@@ -10607,6 +10616,7 @@ var validator = {
|
|
|
10607
10616
|
isPostalCode: _isPostalCode2.default,
|
|
10608
10617
|
isCurrency: _isCurrency2.default,
|
|
10609
10618
|
isISO8601: _isISO2.default,
|
|
10619
|
+
isISO31661Alpha2: _isISO31661Alpha2.default,
|
|
10610
10620
|
isBase64: _isBase2.default,
|
|
10611
10621
|
isDataURI: _isDataURI2.default,
|
|
10612
10622
|
isLatLong: _isLatLong2.default,
|
|
@@ -10625,7 +10635,7 @@ var validator = {
|
|
|
10625
10635
|
|
|
10626
10636
|
exports.default = validator;
|
|
10627
10637
|
module.exports = exports['default'];
|
|
10628
|
-
},{"./lib/blacklist":41,"./lib/contains":42,"./lib/equals":43,"./lib/escape":44,"./lib/isAfter":45,"./lib/isAlpha":46,"./lib/isAlphanumeric":47,"./lib/isAscii":48,"./lib/isBase64":49,"./lib/isBefore":50,"./lib/isBoolean":51,"./lib/isByteLength":52,"./lib/isCreditCard":53,"./lib/isCurrency":54,"./lib/isDataURI":55,"./lib/isDecimal":56,"./lib/isDivisibleBy":57,"./lib/isEmail":58,"./lib/isEmpty":59,"./lib/isFQDN":60,"./lib/isFloat":61,"./lib/isFullWidth":62,"./lib/isHalfWidth":63,"./lib/isHash":64,"./lib/isHexColor":65,"./lib/isHexadecimal":66,"./lib/isIP":67,"./lib/isISBN":68,"./lib/isISIN":69,"./lib/
|
|
10638
|
+
},{"./lib/blacklist":41,"./lib/contains":42,"./lib/equals":43,"./lib/escape":44,"./lib/isAfter":45,"./lib/isAlpha":46,"./lib/isAlphanumeric":47,"./lib/isAscii":48,"./lib/isBase64":49,"./lib/isBefore":50,"./lib/isBoolean":51,"./lib/isByteLength":52,"./lib/isCreditCard":53,"./lib/isCurrency":54,"./lib/isDataURI":55,"./lib/isDecimal":56,"./lib/isDivisibleBy":57,"./lib/isEmail":58,"./lib/isEmpty":59,"./lib/isFQDN":60,"./lib/isFloat":61,"./lib/isFullWidth":62,"./lib/isHalfWidth":63,"./lib/isHash":64,"./lib/isHexColor":65,"./lib/isHexadecimal":66,"./lib/isIP":67,"./lib/isISBN":68,"./lib/isISIN":69,"./lib/isISO31661Alpha2":70,"./lib/isISO8601":71,"./lib/isISRC":72,"./lib/isISSN":73,"./lib/isIn":74,"./lib/isInt":75,"./lib/isJSON":76,"./lib/isLatLong":77,"./lib/isLength":78,"./lib/isLowercase":79,"./lib/isMACAddress":80,"./lib/isMD5":81,"./lib/isMobilePhone":82,"./lib/isMongoId":83,"./lib/isMultibyte":84,"./lib/isNumeric":85,"./lib/isPort":86,"./lib/isPostalCode":87,"./lib/isSurrogatePair":88,"./lib/isURL":89,"./lib/isUUID":90,"./lib/isUppercase":91,"./lib/isVariableWidth":92,"./lib/isWhitelisted":93,"./lib/ltrim":94,"./lib/matches":95,"./lib/normalizeEmail":96,"./lib/rtrim":97,"./lib/stripLow":98,"./lib/toBoolean":99,"./lib/toDate":100,"./lib/toFloat":101,"./lib/toInt":102,"./lib/trim":103,"./lib/unescape":104,"./lib/util/toString":107,"./lib/whitelist":108}],40:[function(require,module,exports){
|
|
10629
10639
|
'use strict';
|
|
10630
10640
|
|
|
10631
10641
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -10650,7 +10660,7 @@ var alpha = exports.alpha = {
|
|
|
10650
10660
|
'sr-RS': /^[А-ЯЂЈЉЊЋЏ]+$/i,
|
|
10651
10661
|
'sv-SE': /^[A-ZÅÄÖ]+$/i,
|
|
10652
10662
|
'tr-TR': /^[A-ZÇĞİıÖŞÜ]+$/i,
|
|
10653
|
-
'uk-UA': /^[А-ЩЬЮЯЄI
|
|
10663
|
+
'uk-UA': /^[А-ЩЬЮЯЄIЇҐі]+$/i,
|
|
10654
10664
|
ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/
|
|
10655
10665
|
};
|
|
10656
10666
|
|
|
@@ -10673,21 +10683,24 @@ var alphanumeric = exports.alphanumeric = {
|
|
|
10673
10683
|
'sr-RS': /^[0-9А-ЯЂЈЉЊЋЏ]+$/i,
|
|
10674
10684
|
'sv-SE': /^[0-9A-ZÅÄÖ]+$/i,
|
|
10675
10685
|
'tr-TR': /^[0-9A-ZÇĞİıÖŞÜ]+$/i,
|
|
10676
|
-
'uk-UA': /^[0-9А-ЩЬЮЯЄI
|
|
10686
|
+
'uk-UA': /^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,
|
|
10677
10687
|
ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/
|
|
10678
10688
|
};
|
|
10679
10689
|
|
|
10690
|
+
var decimal = exports.decimal = {
|
|
10691
|
+
'en-US': '.',
|
|
10692
|
+
ar: '٫'
|
|
10693
|
+
};
|
|
10694
|
+
|
|
10680
10695
|
var englishLocales = exports.englishLocales = ['AU', 'GB', 'HK', 'IN', 'NZ', 'ZA', 'ZM'];
|
|
10681
10696
|
|
|
10682
10697
|
for (var locale, i = 0; i < englishLocales.length; i++) {
|
|
10683
10698
|
locale = 'en-' + englishLocales[i];
|
|
10684
10699
|
alpha[locale] = alpha['en-US'];
|
|
10685
10700
|
alphanumeric[locale] = alphanumeric['en-US'];
|
|
10701
|
+
decimal[locale] = decimal['en-US'];
|
|
10686
10702
|
}
|
|
10687
10703
|
|
|
10688
|
-
alpha['pt-BR'] = alpha['pt-PT'];
|
|
10689
|
-
alphanumeric['pt-BR'] = alphanumeric['pt-PT'];
|
|
10690
|
-
|
|
10691
10704
|
// Source: http://www.localeplanet.com/java/
|
|
10692
10705
|
var arabicLocales = exports.arabicLocales = ['AE', 'BH', 'DZ', 'EG', 'IQ', 'JO', 'KW', 'LB', 'LY', 'MA', 'QM', 'QA', 'SA', 'SD', 'SY', 'TN', 'YE'];
|
|
10693
10706
|
|
|
@@ -10695,7 +10708,24 @@ for (var _locale, _i = 0; _i < arabicLocales.length; _i++) {
|
|
|
10695
10708
|
_locale = 'ar-' + arabicLocales[_i];
|
|
10696
10709
|
alpha[_locale] = alpha.ar;
|
|
10697
10710
|
alphanumeric[_locale] = alphanumeric.ar;
|
|
10711
|
+
decimal[_locale] = decimal.ar;
|
|
10712
|
+
}
|
|
10713
|
+
|
|
10714
|
+
// Source: https://en.wikipedia.org/wiki/Decimal_mark
|
|
10715
|
+
var dotDecimal = exports.dotDecimal = [];
|
|
10716
|
+
var commaDecimal = exports.commaDecimal = ['cs-CZ', 'da-DK', 'de-DE', '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'];
|
|
10717
|
+
|
|
10718
|
+
for (var _i2 = 0; _i2 < dotDecimal.length; _i2++) {
|
|
10719
|
+
decimal[dotDecimal[_i2]] = decimal['en-US'];
|
|
10698
10720
|
}
|
|
10721
|
+
|
|
10722
|
+
for (var _i3 = 0; _i3 < commaDecimal.length; _i3++) {
|
|
10723
|
+
decimal[commaDecimal[_i3]] = ',';
|
|
10724
|
+
}
|
|
10725
|
+
|
|
10726
|
+
alpha['pt-BR'] = alpha['pt-PT'];
|
|
10727
|
+
alphanumeric['pt-BR'] = alphanumeric['pt-PT'];
|
|
10728
|
+
decimal['pt-BR'] = decimal['pt-PT'];
|
|
10699
10729
|
},{}],41:[function(require,module,exports){
|
|
10700
10730
|
'use strict';
|
|
10701
10731
|
|
|
@@ -10715,7 +10745,7 @@ function blacklist(str, chars) {
|
|
|
10715
10745
|
return str.replace(new RegExp('[' + chars + ']+', 'g'), '');
|
|
10716
10746
|
}
|
|
10717
10747
|
module.exports = exports['default'];
|
|
10718
|
-
},{"./util/assertString":
|
|
10748
|
+
},{"./util/assertString":105}],42:[function(require,module,exports){
|
|
10719
10749
|
'use strict';
|
|
10720
10750
|
|
|
10721
10751
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -10738,7 +10768,7 @@ function contains(str, elem) {
|
|
|
10738
10768
|
return str.indexOf((0, _toString2.default)(elem)) >= 0;
|
|
10739
10769
|
}
|
|
10740
10770
|
module.exports = exports['default'];
|
|
10741
|
-
},{"./util/assertString":
|
|
10771
|
+
},{"./util/assertString":105,"./util/toString":107}],43:[function(require,module,exports){
|
|
10742
10772
|
'use strict';
|
|
10743
10773
|
|
|
10744
10774
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -10757,7 +10787,7 @@ function equals(str, comparison) {
|
|
|
10757
10787
|
return str === comparison;
|
|
10758
10788
|
}
|
|
10759
10789
|
module.exports = exports['default'];
|
|
10760
|
-
},{"./util/assertString":
|
|
10790
|
+
},{"./util/assertString":105}],44:[function(require,module,exports){
|
|
10761
10791
|
'use strict';
|
|
10762
10792
|
|
|
10763
10793
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -10776,7 +10806,7 @@ function escape(str) {
|
|
|
10776
10806
|
return str.replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, ''').replace(/</g, '<').replace(/>/g, '>').replace(/\//g, '/').replace(/\\/g, '\').replace(/`/g, '`');
|
|
10777
10807
|
}
|
|
10778
10808
|
module.exports = exports['default'];
|
|
10779
|
-
},{"./util/assertString":
|
|
10809
|
+
},{"./util/assertString":105}],45:[function(require,module,exports){
|
|
10780
10810
|
'use strict';
|
|
10781
10811
|
|
|
10782
10812
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -10803,7 +10833,7 @@ function isAfter(str) {
|
|
|
10803
10833
|
return !!(original && comparison && original > comparison);
|
|
10804
10834
|
}
|
|
10805
10835
|
module.exports = exports['default'];
|
|
10806
|
-
},{"./toDate":
|
|
10836
|
+
},{"./toDate":100,"./util/assertString":105}],46:[function(require,module,exports){
|
|
10807
10837
|
'use strict';
|
|
10808
10838
|
|
|
10809
10839
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -10829,7 +10859,7 @@ function isAlpha(str) {
|
|
|
10829
10859
|
throw new Error('Invalid locale \'' + locale + '\'');
|
|
10830
10860
|
}
|
|
10831
10861
|
module.exports = exports['default'];
|
|
10832
|
-
},{"./alpha":40,"./util/assertString":
|
|
10862
|
+
},{"./alpha":40,"./util/assertString":105}],47:[function(require,module,exports){
|
|
10833
10863
|
'use strict';
|
|
10834
10864
|
|
|
10835
10865
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -10855,7 +10885,7 @@ function isAlphanumeric(str) {
|
|
|
10855
10885
|
throw new Error('Invalid locale \'' + locale + '\'');
|
|
10856
10886
|
}
|
|
10857
10887
|
module.exports = exports['default'];
|
|
10858
|
-
},{"./alpha":40,"./util/assertString":
|
|
10888
|
+
},{"./alpha":40,"./util/assertString":105}],48:[function(require,module,exports){
|
|
10859
10889
|
'use strict';
|
|
10860
10890
|
|
|
10861
10891
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -10878,7 +10908,7 @@ function isAscii(str) {
|
|
|
10878
10908
|
return ascii.test(str);
|
|
10879
10909
|
}
|
|
10880
10910
|
module.exports = exports['default'];
|
|
10881
|
-
},{"./util/assertString":
|
|
10911
|
+
},{"./util/assertString":105}],49:[function(require,module,exports){
|
|
10882
10912
|
'use strict';
|
|
10883
10913
|
|
|
10884
10914
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -10904,7 +10934,7 @@ function isBase64(str) {
|
|
|
10904
10934
|
return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && str[len - 1] === '=';
|
|
10905
10935
|
}
|
|
10906
10936
|
module.exports = exports['default'];
|
|
10907
|
-
},{"./util/assertString":
|
|
10937
|
+
},{"./util/assertString":105}],50:[function(require,module,exports){
|
|
10908
10938
|
'use strict';
|
|
10909
10939
|
|
|
10910
10940
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -10931,7 +10961,7 @@ function isBefore(str) {
|
|
|
10931
10961
|
return !!(original && comparison && original < comparison);
|
|
10932
10962
|
}
|
|
10933
10963
|
module.exports = exports['default'];
|
|
10934
|
-
},{"./toDate":
|
|
10964
|
+
},{"./toDate":100,"./util/assertString":105}],51:[function(require,module,exports){
|
|
10935
10965
|
'use strict';
|
|
10936
10966
|
|
|
10937
10967
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -10950,7 +10980,7 @@ function isBoolean(str) {
|
|
|
10950
10980
|
return ['true', 'false', '1', '0'].indexOf(str) >= 0;
|
|
10951
10981
|
}
|
|
10952
10982
|
module.exports = exports['default'];
|
|
10953
|
-
},{"./util/assertString":
|
|
10983
|
+
},{"./util/assertString":105}],52:[function(require,module,exports){
|
|
10954
10984
|
'use strict';
|
|
10955
10985
|
|
|
10956
10986
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -10984,7 +11014,7 @@ function isByteLength(str, options) {
|
|
|
10984
11014
|
return len >= min && (typeof max === 'undefined' || len <= max);
|
|
10985
11015
|
}
|
|
10986
11016
|
module.exports = exports['default'];
|
|
10987
|
-
},{"./util/assertString":
|
|
11017
|
+
},{"./util/assertString":105}],53:[function(require,module,exports){
|
|
10988
11018
|
'use strict';
|
|
10989
11019
|
|
|
10990
11020
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11030,7 +11060,7 @@ function isCreditCard(str) {
|
|
|
11030
11060
|
return !!(sum % 10 === 0 ? sanitized : false);
|
|
11031
11061
|
}
|
|
11032
11062
|
module.exports = exports['default'];
|
|
11033
|
-
},{"./util/assertString":
|
|
11063
|
+
},{"./util/assertString":105}],54:[function(require,module,exports){
|
|
11034
11064
|
'use strict';
|
|
11035
11065
|
|
|
11036
11066
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11123,7 +11153,7 @@ function isCurrency(str, options) {
|
|
|
11123
11153
|
return currencyRegex(options).test(str);
|
|
11124
11154
|
}
|
|
11125
11155
|
module.exports = exports['default'];
|
|
11126
|
-
},{"./util/assertString":
|
|
11156
|
+
},{"./util/assertString":105,"./util/merge":106}],55:[function(require,module,exports){
|
|
11127
11157
|
'use strict';
|
|
11128
11158
|
|
|
11129
11159
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11144,7 +11174,7 @@ function isDataURI(str) {
|
|
|
11144
11174
|
return dataURI.test(str);
|
|
11145
11175
|
}
|
|
11146
11176
|
module.exports = exports['default'];
|
|
11147
|
-
},{"./util/assertString":
|
|
11177
|
+
},{"./util/assertString":105}],56:[function(require,module,exports){
|
|
11148
11178
|
'use strict';
|
|
11149
11179
|
|
|
11150
11180
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11152,20 +11182,41 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
11152
11182
|
});
|
|
11153
11183
|
exports.default = isDecimal;
|
|
11154
11184
|
|
|
11185
|
+
var _merge = require('./util/merge');
|
|
11186
|
+
|
|
11187
|
+
var _merge2 = _interopRequireDefault(_merge);
|
|
11188
|
+
|
|
11155
11189
|
var _assertString = require('./util/assertString');
|
|
11156
11190
|
|
|
11157
11191
|
var _assertString2 = _interopRequireDefault(_assertString);
|
|
11158
11192
|
|
|
11193
|
+
var _alpha = require('./alpha');
|
|
11194
|
+
|
|
11159
11195
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11160
11196
|
|
|
11161
|
-
|
|
11197
|
+
function decimalRegExp(options) {
|
|
11198
|
+
var regExp = new RegExp('^[-+]?([0-9]+)?(\\' + _alpha.decimal[options.locale] + '[0-9]{' + options.decimal_digits + '})' + (options.force_decimal ? '' : '?') + '$');
|
|
11199
|
+
return regExp;
|
|
11200
|
+
}
|
|
11201
|
+
|
|
11202
|
+
var default_decimal_options = {
|
|
11203
|
+
force_decimal: false,
|
|
11204
|
+
decimal_digits: '1,',
|
|
11205
|
+
locale: 'en-US'
|
|
11206
|
+
};
|
|
11207
|
+
|
|
11208
|
+
var blacklist = ['', '-', '+'];
|
|
11162
11209
|
|
|
11163
|
-
function isDecimal(str) {
|
|
11210
|
+
function isDecimal(str, options) {
|
|
11164
11211
|
(0, _assertString2.default)(str);
|
|
11165
|
-
|
|
11212
|
+
options = (0, _merge2.default)(options, default_decimal_options);
|
|
11213
|
+
if (options.locale in _alpha.decimal) {
|
|
11214
|
+
return !blacklist.includes(str.replace(/ /g, '')) && decimalRegExp(options).test(str);
|
|
11215
|
+
}
|
|
11216
|
+
throw new Error('Invalid locale \'' + options.locale + '\'');
|
|
11166
11217
|
}
|
|
11167
11218
|
module.exports = exports['default'];
|
|
11168
|
-
},{"./util/assertString":
|
|
11219
|
+
},{"./alpha":40,"./util/assertString":105,"./util/merge":106}],57:[function(require,module,exports){
|
|
11169
11220
|
'use strict';
|
|
11170
11221
|
|
|
11171
11222
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11188,7 +11239,7 @@ function isDivisibleBy(str, num) {
|
|
|
11188
11239
|
return (0, _toFloat2.default)(str) % parseInt(num, 10) === 0;
|
|
11189
11240
|
}
|
|
11190
11241
|
module.exports = exports['default'];
|
|
11191
|
-
},{"./toFloat":
|
|
11242
|
+
},{"./toFloat":101,"./util/assertString":105}],58:[function(require,module,exports){
|
|
11192
11243
|
'use strict';
|
|
11193
11244
|
|
|
11194
11245
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11278,7 +11329,7 @@ function isEmail(str, options) {
|
|
|
11278
11329
|
return true;
|
|
11279
11330
|
}
|
|
11280
11331
|
module.exports = exports['default'];
|
|
11281
|
-
},{"./isByteLength":52,"./isFQDN":60,"./util/assertString":
|
|
11332
|
+
},{"./isByteLength":52,"./isFQDN":60,"./util/assertString":105,"./util/merge":106}],59:[function(require,module,exports){
|
|
11282
11333
|
'use strict';
|
|
11283
11334
|
|
|
11284
11335
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11297,7 +11348,7 @@ function isEmpty(str) {
|
|
|
11297
11348
|
return str.length === 0;
|
|
11298
11349
|
}
|
|
11299
11350
|
module.exports = exports['default'];
|
|
11300
|
-
},{"./util/assertString":
|
|
11351
|
+
},{"./util/assertString":105}],60:[function(require,module,exports){
|
|
11301
11352
|
'use strict';
|
|
11302
11353
|
|
|
11303
11354
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11359,7 +11410,7 @@ function isFDQN(str, options) {
|
|
|
11359
11410
|
return true;
|
|
11360
11411
|
}
|
|
11361
11412
|
module.exports = exports['default'];
|
|
11362
|
-
},{"./util/assertString":
|
|
11413
|
+
},{"./util/assertString":105,"./util/merge":106}],61:[function(require,module,exports){
|
|
11363
11414
|
'use strict';
|
|
11364
11415
|
|
|
11365
11416
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11371,20 +11422,21 @@ var _assertString = require('./util/assertString');
|
|
|
11371
11422
|
|
|
11372
11423
|
var _assertString2 = _interopRequireDefault(_assertString);
|
|
11373
11424
|
|
|
11374
|
-
|
|
11425
|
+
var _alpha = require('./alpha');
|
|
11375
11426
|
|
|
11376
|
-
|
|
11427
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11377
11428
|
|
|
11378
11429
|
function isFloat(str, options) {
|
|
11379
11430
|
(0, _assertString2.default)(str);
|
|
11380
11431
|
options = options || {};
|
|
11432
|
+
var float = new RegExp('^(?:[-+])?(?:[0-9]+)?(?:\\' + (options.locale ? _alpha.decimal[options.locale] : '.') + '[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$');
|
|
11381
11433
|
if (str === '' || str === '.') {
|
|
11382
11434
|
return false;
|
|
11383
11435
|
}
|
|
11384
11436
|
return float.test(str) && (!options.hasOwnProperty('min') || str >= options.min) && (!options.hasOwnProperty('max') || str <= options.max) && (!options.hasOwnProperty('lt') || str < options.lt) && (!options.hasOwnProperty('gt') || str > options.gt);
|
|
11385
11437
|
}
|
|
11386
11438
|
module.exports = exports['default'];
|
|
11387
|
-
},{"./util/assertString":
|
|
11439
|
+
},{"./alpha":40,"./util/assertString":105}],62:[function(require,module,exports){
|
|
11388
11440
|
'use strict';
|
|
11389
11441
|
|
|
11390
11442
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11405,7 +11457,7 @@ function isFullWidth(str) {
|
|
|
11405
11457
|
(0, _assertString2.default)(str);
|
|
11406
11458
|
return fullWidth.test(str);
|
|
11407
11459
|
}
|
|
11408
|
-
},{"./util/assertString":
|
|
11460
|
+
},{"./util/assertString":105}],63:[function(require,module,exports){
|
|
11409
11461
|
'use strict';
|
|
11410
11462
|
|
|
11411
11463
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11426,7 +11478,7 @@ function isHalfWidth(str) {
|
|
|
11426
11478
|
(0, _assertString2.default)(str);
|
|
11427
11479
|
return halfWidth.test(str);
|
|
11428
11480
|
}
|
|
11429
|
-
},{"./util/assertString":
|
|
11481
|
+
},{"./util/assertString":105}],64:[function(require,module,exports){
|
|
11430
11482
|
'use strict';
|
|
11431
11483
|
|
|
11432
11484
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11462,7 +11514,7 @@ function isHash(str, algorithm) {
|
|
|
11462
11514
|
return hash.test(str);
|
|
11463
11515
|
}
|
|
11464
11516
|
module.exports = exports['default'];
|
|
11465
|
-
},{"./util/assertString":
|
|
11517
|
+
},{"./util/assertString":105}],65:[function(require,module,exports){
|
|
11466
11518
|
'use strict';
|
|
11467
11519
|
|
|
11468
11520
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11483,7 +11535,7 @@ function isHexColor(str) {
|
|
|
11483
11535
|
return hexcolor.test(str);
|
|
11484
11536
|
}
|
|
11485
11537
|
module.exports = exports['default'];
|
|
11486
|
-
},{"./util/assertString":
|
|
11538
|
+
},{"./util/assertString":105}],66:[function(require,module,exports){
|
|
11487
11539
|
'use strict';
|
|
11488
11540
|
|
|
11489
11541
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11504,7 +11556,7 @@ function isHexadecimal(str) {
|
|
|
11504
11556
|
return hexadecimal.test(str);
|
|
11505
11557
|
}
|
|
11506
11558
|
module.exports = exports['default'];
|
|
11507
|
-
},{"./util/assertString":
|
|
11559
|
+
},{"./util/assertString":105}],67:[function(require,module,exports){
|
|
11508
11560
|
'use strict';
|
|
11509
11561
|
|
|
11510
11562
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11586,7 +11638,7 @@ function isIP(str) {
|
|
|
11586
11638
|
return false;
|
|
11587
11639
|
}
|
|
11588
11640
|
module.exports = exports['default'];
|
|
11589
|
-
},{"./util/assertString":
|
|
11641
|
+
},{"./util/assertString":105}],68:[function(require,module,exports){
|
|
11590
11642
|
'use strict';
|
|
11591
11643
|
|
|
11592
11644
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11644,7 +11696,7 @@ function isISBN(str) {
|
|
|
11644
11696
|
return false;
|
|
11645
11697
|
}
|
|
11646
11698
|
module.exports = exports['default'];
|
|
11647
|
-
},{"./util/assertString":
|
|
11699
|
+
},{"./util/assertString":105}],69:[function(require,module,exports){
|
|
11648
11700
|
'use strict';
|
|
11649
11701
|
|
|
11650
11702
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11693,7 +11745,29 @@ function isISIN(str) {
|
|
|
11693
11745
|
return parseInt(str.substr(str.length - 1), 10) === (10000 - sum) % 10;
|
|
11694
11746
|
}
|
|
11695
11747
|
module.exports = exports['default'];
|
|
11696
|
-
},{"./util/assertString":
|
|
11748
|
+
},{"./util/assertString":105}],70:[function(require,module,exports){
|
|
11749
|
+
'use strict';
|
|
11750
|
+
|
|
11751
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11752
|
+
value: true
|
|
11753
|
+
});
|
|
11754
|
+
exports.default = isISO31661Alpha2;
|
|
11755
|
+
|
|
11756
|
+
var _assertString = require('./util/assertString');
|
|
11757
|
+
|
|
11758
|
+
var _assertString2 = _interopRequireDefault(_assertString);
|
|
11759
|
+
|
|
11760
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11761
|
+
|
|
11762
|
+
// from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
|
11763
|
+
var validISO31661Alpha2CountriesCodes = ['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW'];
|
|
11764
|
+
|
|
11765
|
+
function isISO31661Alpha2(str) {
|
|
11766
|
+
(0, _assertString2.default)(str);
|
|
11767
|
+
return validISO31661Alpha2CountriesCodes.includes(str.toUpperCase());
|
|
11768
|
+
}
|
|
11769
|
+
module.exports = exports['default'];
|
|
11770
|
+
},{"./util/assertString":105}],71:[function(require,module,exports){
|
|
11697
11771
|
'use strict';
|
|
11698
11772
|
|
|
11699
11773
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11717,7 +11791,7 @@ function isISO8601(str) {
|
|
|
11717
11791
|
return iso8601.test(str);
|
|
11718
11792
|
}
|
|
11719
11793
|
module.exports = exports['default'];
|
|
11720
|
-
},{"./util/assertString":
|
|
11794
|
+
},{"./util/assertString":105}],72:[function(require,module,exports){
|
|
11721
11795
|
'use strict';
|
|
11722
11796
|
|
|
11723
11797
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11739,7 +11813,7 @@ function isISRC(str) {
|
|
|
11739
11813
|
return isrc.test(str);
|
|
11740
11814
|
}
|
|
11741
11815
|
module.exports = exports['default'];
|
|
11742
|
-
},{"./util/assertString":
|
|
11816
|
+
},{"./util/assertString":105}],73:[function(require,module,exports){
|
|
11743
11817
|
'use strict';
|
|
11744
11818
|
|
|
11745
11819
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11798,7 +11872,7 @@ function isISSN(str) {
|
|
|
11798
11872
|
return checksum % 11 === 0;
|
|
11799
11873
|
}
|
|
11800
11874
|
module.exports = exports['default'];
|
|
11801
|
-
},{"./util/assertString":
|
|
11875
|
+
},{"./util/assertString":105}],74:[function(require,module,exports){
|
|
11802
11876
|
'use strict';
|
|
11803
11877
|
|
|
11804
11878
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11838,7 +11912,7 @@ function isIn(str, options) {
|
|
|
11838
11912
|
return false;
|
|
11839
11913
|
}
|
|
11840
11914
|
module.exports = exports['default'];
|
|
11841
|
-
},{"./util/assertString":
|
|
11915
|
+
},{"./util/assertString":105,"./util/toString":107}],75:[function(require,module,exports){
|
|
11842
11916
|
'use strict';
|
|
11843
11917
|
|
|
11844
11918
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11872,7 +11946,7 @@ function isInt(str, options) {
|
|
|
11872
11946
|
return regex.test(str) && minCheckPassed && maxCheckPassed && ltCheckPassed && gtCheckPassed;
|
|
11873
11947
|
}
|
|
11874
11948
|
module.exports = exports['default'];
|
|
11875
|
-
},{"./util/assertString":
|
|
11949
|
+
},{"./util/assertString":105}],76:[function(require,module,exports){
|
|
11876
11950
|
'use strict';
|
|
11877
11951
|
|
|
11878
11952
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11898,7 +11972,7 @@ function isJSON(str) {
|
|
|
11898
11972
|
return false;
|
|
11899
11973
|
}
|
|
11900
11974
|
module.exports = exports['default'];
|
|
11901
|
-
},{"./util/assertString":
|
|
11975
|
+
},{"./util/assertString":105}],77:[function(require,module,exports){
|
|
11902
11976
|
'use strict';
|
|
11903
11977
|
|
|
11904
11978
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11922,7 +11996,7 @@ var lat = /^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/;
|
|
|
11922
11996
|
var long = /^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/;
|
|
11923
11997
|
|
|
11924
11998
|
module.exports = exports['default'];
|
|
11925
|
-
},{"./util/assertString":
|
|
11999
|
+
},{"./util/assertString":105}],78:[function(require,module,exports){
|
|
11926
12000
|
'use strict';
|
|
11927
12001
|
|
|
11928
12002
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11957,7 +12031,7 @@ function isLength(str, options) {
|
|
|
11957
12031
|
return len >= min && (typeof max === 'undefined' || len <= max);
|
|
11958
12032
|
}
|
|
11959
12033
|
module.exports = exports['default'];
|
|
11960
|
-
},{"./util/assertString":
|
|
12034
|
+
},{"./util/assertString":105}],79:[function(require,module,exports){
|
|
11961
12035
|
'use strict';
|
|
11962
12036
|
|
|
11963
12037
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11976,7 +12050,7 @@ function isLowercase(str) {
|
|
|
11976
12050
|
return str === str.toLowerCase();
|
|
11977
12051
|
}
|
|
11978
12052
|
module.exports = exports['default'];
|
|
11979
|
-
},{"./util/assertString":
|
|
12053
|
+
},{"./util/assertString":105}],80:[function(require,module,exports){
|
|
11980
12054
|
'use strict';
|
|
11981
12055
|
|
|
11982
12056
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11997,7 +12071,7 @@ function isMACAddress(str) {
|
|
|
11997
12071
|
return macAddress.test(str);
|
|
11998
12072
|
}
|
|
11999
12073
|
module.exports = exports['default'];
|
|
12000
|
-
},{"./util/assertString":
|
|
12074
|
+
},{"./util/assertString":105}],81:[function(require,module,exports){
|
|
12001
12075
|
'use strict';
|
|
12002
12076
|
|
|
12003
12077
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12018,7 +12092,7 @@ function isMD5(str) {
|
|
|
12018
12092
|
return md5.test(str);
|
|
12019
12093
|
}
|
|
12020
12094
|
module.exports = exports['default'];
|
|
12021
|
-
},{"./util/assertString":
|
|
12095
|
+
},{"./util/assertString":105}],82:[function(require,module,exports){
|
|
12022
12096
|
'use strict';
|
|
12023
12097
|
|
|
12024
12098
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12038,37 +12112,40 @@ var phones = {
|
|
|
12038
12112
|
'ar-DZ': /^(\+?213|0)(5|6|7)\d{8}$/,
|
|
12039
12113
|
'ar-EG': /^((\+?20)|0)?1[012]\d{8}$/,
|
|
12040
12114
|
'ar-JO': /^(\+?962|0)?7[789]\d{7}$/,
|
|
12041
|
-
'ar-SY': /^(!?(\+?963)|0)?9\d{8}$/,
|
|
12042
12115
|
'ar-SA': /^(!?(\+?966)|0)?5\d{8}$/,
|
|
12043
|
-
'
|
|
12116
|
+
'ar-SY': /^(!?(\+?963)|0)?9\d{8}$/,
|
|
12044
12117
|
'cs-CZ': /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
|
|
12045
|
-
'
|
|
12118
|
+
'da-DK': /^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,
|
|
12046
12119
|
'de-DE': /^(\+?49[ \.\-])?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
|
|
12047
|
-
'da-DK': /^(\+?45)?(\d{8})$/,
|
|
12048
12120
|
'el-GR': /^(\+?30)?(69\d{8})$/,
|
|
12049
12121
|
'en-AU': /^(\+?61|0)4\d{8}$/,
|
|
12050
12122
|
'en-GB': /^(\+?44|0)7\d{9}$/,
|
|
12051
|
-
'en-HK': /^(\+?852\-?)?[
|
|
12123
|
+
'en-HK': /^(\+?852\-?)?[456789]\d{3}\-?\d{4}$/,
|
|
12052
12124
|
'en-IN': /^(\+?91|0)?[789]\d{9}$/,
|
|
12053
12125
|
'en-KE': /^(\+?254|0)?[7]\d{8}$/,
|
|
12054
12126
|
'en-NG': /^(\+?234|0)?[789]\d{9}$/,
|
|
12055
12127
|
'en-NZ': /^(\+?64|0)2\d{7,9}$/,
|
|
12056
|
-
'en-
|
|
12128
|
+
'en-PK': /^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$/,
|
|
12057
12129
|
'en-RW': /^(\+?250|0)?[7]\d{8}$/,
|
|
12058
12130
|
'en-TZ': /^(\+?255|0)?[67]\d{8}$/,
|
|
12131
|
+
'en-UG': /^(\+?256|0)?[7]\d{8}$/,
|
|
12132
|
+
'en-US': /^(\+?1)?[2-9]\d{2}[2-9](?!11)\d{6}$/,
|
|
12059
12133
|
'en-ZA': /^(\+?27|0)\d{9}$/,
|
|
12060
12134
|
'en-ZM': /^(\+?26)?09[567]\d{7}$/,
|
|
12061
12135
|
'es-ES': /^(\+?34)?(6\d{1}|7[1234])\d{7}$/,
|
|
12062
|
-
'
|
|
12136
|
+
'et-EE': /^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,
|
|
12063
12137
|
'fa-IR': /^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,
|
|
12138
|
+
'fi-FI': /^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/,
|
|
12139
|
+
'fo-FO': /^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,
|
|
12064
12140
|
'fr-FR': /^(\+?33|0)[67]\d{8}$/,
|
|
12065
12141
|
'he-IL': /^(\+972|0)([23489]|5[0248]|77)[1-9]\d{6}/,
|
|
12066
12142
|
'hu-HU': /^(\+?36)(20|30|70)\d{7}$/,
|
|
12067
|
-
'lt-LT': /^(\+370|8)\d{8}$/,
|
|
12068
12143
|
'id-ID': /^(\+?62|0[1-9])[\s|\d]+$/,
|
|
12069
12144
|
'it-IT': /^(\+?39)?\s?3\d{2} ?\d{6,7}$/,
|
|
12145
|
+
'ja-JP': /^(\+?81|0)[789]0[ \-]?[1-9]\d{2}[ \-]?\d{5}$/,
|
|
12146
|
+
'kl-GL': /^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,
|
|
12070
12147
|
'ko-KR': /^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,
|
|
12071
|
-
'
|
|
12148
|
+
'lt-LT': /^(\+370|8)\d{8}$/,
|
|
12072
12149
|
'ms-MY': /^(\+?6?01){1}(([145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,
|
|
12073
12150
|
'nb-NO': /^(\+?47)?[49]\d{7}$/,
|
|
12074
12151
|
'nl-BE': /^(\+?32|0)4?\d{8}$/,
|
|
@@ -12077,10 +12154,11 @@ var phones = {
|
|
|
12077
12154
|
'pt-BR': /^(\+?55|0)\-?[1-9]{2}\-?[2-9]{1}\d{3,4}\-?\d{4}$/,
|
|
12078
12155
|
'pt-PT': /^(\+?351)?9[1236]\d{7}$/,
|
|
12079
12156
|
'ro-RO': /^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,
|
|
12080
|
-
'en-PK': /^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$/,
|
|
12081
12157
|
'ru-RU': /^(\+?7|8)?9\d{9}$/,
|
|
12158
|
+
'sk-SK': /^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
|
|
12082
12159
|
'sr-RS': /^(\+3816|06)[- \d]{5,9}$/,
|
|
12083
12160
|
'tr-TR': /^(\+?90|0)?5\d{9}$/,
|
|
12161
|
+
'uk-UA': /^(\+?38|8)?0\d{9}$/,
|
|
12084
12162
|
'vi-VN': /^(\+?84|0)?((1(2([0-9])|6([2-9])|88|99))|(9((?!5)[0-9])))([0-9]{7})$/,
|
|
12085
12163
|
'zh-CN': /^(\+?0?86\-?)?1[345789]\d{9}$/,
|
|
12086
12164
|
'zh-TW': /^(\+?886\-?|0)?9\d{8}$/
|
|
@@ -12110,7 +12188,7 @@ function isMobilePhone(str, locale) {
|
|
|
12110
12188
|
throw new Error('Invalid locale \'' + locale + '\'');
|
|
12111
12189
|
}
|
|
12112
12190
|
module.exports = exports['default'];
|
|
12113
|
-
},{"./util/assertString":
|
|
12191
|
+
},{"./util/assertString":105}],83:[function(require,module,exports){
|
|
12114
12192
|
'use strict';
|
|
12115
12193
|
|
|
12116
12194
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12133,7 +12211,7 @@ function isMongoId(str) {
|
|
|
12133
12211
|
return (0, _isHexadecimal2.default)(str) && str.length === 24;
|
|
12134
12212
|
}
|
|
12135
12213
|
module.exports = exports['default'];
|
|
12136
|
-
},{"./isHexadecimal":66,"./util/assertString":
|
|
12214
|
+
},{"./isHexadecimal":66,"./util/assertString":105}],84:[function(require,module,exports){
|
|
12137
12215
|
'use strict';
|
|
12138
12216
|
|
|
12139
12217
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12156,7 +12234,7 @@ function isMultibyte(str) {
|
|
|
12156
12234
|
return multibyte.test(str);
|
|
12157
12235
|
}
|
|
12158
12236
|
module.exports = exports['default'];
|
|
12159
|
-
},{"./util/assertString":
|
|
12237
|
+
},{"./util/assertString":105}],85:[function(require,module,exports){
|
|
12160
12238
|
'use strict';
|
|
12161
12239
|
|
|
12162
12240
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12177,7 +12255,25 @@ function isNumeric(str) {
|
|
|
12177
12255
|
return numeric.test(str);
|
|
12178
12256
|
}
|
|
12179
12257
|
module.exports = exports['default'];
|
|
12180
|
-
},{"./util/assertString":
|
|
12258
|
+
},{"./util/assertString":105}],86:[function(require,module,exports){
|
|
12259
|
+
'use strict';
|
|
12260
|
+
|
|
12261
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12262
|
+
value: true
|
|
12263
|
+
});
|
|
12264
|
+
exports.default = isPort;
|
|
12265
|
+
|
|
12266
|
+
var _isInt = require('./isInt');
|
|
12267
|
+
|
|
12268
|
+
var _isInt2 = _interopRequireDefault(_isInt);
|
|
12269
|
+
|
|
12270
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12271
|
+
|
|
12272
|
+
function isPort(str) {
|
|
12273
|
+
return (0, _isInt2.default)(str, { min: 0, max: 65535 });
|
|
12274
|
+
}
|
|
12275
|
+
module.exports = exports['default'];
|
|
12276
|
+
},{"./isInt":75}],87:[function(require,module,exports){
|
|
12181
12277
|
'use strict';
|
|
12182
12278
|
|
|
12183
12279
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12217,7 +12313,7 @@ var sixDigit = /^\d{6}$/;
|
|
|
12217
12313
|
|
|
12218
12314
|
var patterns = {
|
|
12219
12315
|
AT: fourDigit,
|
|
12220
|
-
AU:
|
|
12316
|
+
AU: fourDigit,
|
|
12221
12317
|
BE: fourDigit,
|
|
12222
12318
|
CA: /^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,
|
|
12223
12319
|
CH: fourDigit,
|
|
@@ -12253,7 +12349,7 @@ var patterns = {
|
|
|
12253
12349
|
};
|
|
12254
12350
|
|
|
12255
12351
|
var locales = exports.locales = Object.keys(patterns);
|
|
12256
|
-
},{"./util/assertString":
|
|
12352
|
+
},{"./util/assertString":105}],88:[function(require,module,exports){
|
|
12257
12353
|
'use strict';
|
|
12258
12354
|
|
|
12259
12355
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12274,7 +12370,7 @@ function isSurrogatePair(str) {
|
|
|
12274
12370
|
return surrogatePair.test(str);
|
|
12275
12371
|
}
|
|
12276
12372
|
module.exports = exports['default'];
|
|
12277
|
-
},{"./util/assertString":
|
|
12373
|
+
},{"./util/assertString":105}],89:[function(require,module,exports){
|
|
12278
12374
|
'use strict';
|
|
12279
12375
|
|
|
12280
12376
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12422,7 +12518,7 @@ function isURL(url, options) {
|
|
|
12422
12518
|
return true;
|
|
12423
12519
|
}
|
|
12424
12520
|
module.exports = exports['default'];
|
|
12425
|
-
},{"./isFQDN":60,"./isIP":67,"./util/assertString":
|
|
12521
|
+
},{"./isFQDN":60,"./isIP":67,"./util/assertString":105,"./util/merge":106}],90:[function(require,module,exports){
|
|
12426
12522
|
'use strict';
|
|
12427
12523
|
|
|
12428
12524
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12451,7 +12547,7 @@ function isUUID(str) {
|
|
|
12451
12547
|
return pattern && pattern.test(str);
|
|
12452
12548
|
}
|
|
12453
12549
|
module.exports = exports['default'];
|
|
12454
|
-
},{"./util/assertString":
|
|
12550
|
+
},{"./util/assertString":105}],91:[function(require,module,exports){
|
|
12455
12551
|
'use strict';
|
|
12456
12552
|
|
|
12457
12553
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12470,7 +12566,7 @@ function isUppercase(str) {
|
|
|
12470
12566
|
return str === str.toUpperCase();
|
|
12471
12567
|
}
|
|
12472
12568
|
module.exports = exports['default'];
|
|
12473
|
-
},{"./util/assertString":
|
|
12569
|
+
},{"./util/assertString":105}],92:[function(require,module,exports){
|
|
12474
12570
|
'use strict';
|
|
12475
12571
|
|
|
12476
12572
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12493,7 +12589,7 @@ function isVariableWidth(str) {
|
|
|
12493
12589
|
return _isFullWidth.fullWidth.test(str) && _isHalfWidth.halfWidth.test(str);
|
|
12494
12590
|
}
|
|
12495
12591
|
module.exports = exports['default'];
|
|
12496
|
-
},{"./isFullWidth":62,"./isHalfWidth":63,"./util/assertString":
|
|
12592
|
+
},{"./isFullWidth":62,"./isHalfWidth":63,"./util/assertString":105}],93:[function(require,module,exports){
|
|
12497
12593
|
'use strict';
|
|
12498
12594
|
|
|
12499
12595
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12517,7 +12613,7 @@ function isWhitelisted(str, chars) {
|
|
|
12517
12613
|
return true;
|
|
12518
12614
|
}
|
|
12519
12615
|
module.exports = exports['default'];
|
|
12520
|
-
},{"./util/assertString":
|
|
12616
|
+
},{"./util/assertString":105}],94:[function(require,module,exports){
|
|
12521
12617
|
'use strict';
|
|
12522
12618
|
|
|
12523
12619
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12537,7 +12633,7 @@ function ltrim(str, chars) {
|
|
|
12537
12633
|
return str.replace(pattern, '');
|
|
12538
12634
|
}
|
|
12539
12635
|
module.exports = exports['default'];
|
|
12540
|
-
},{"./util/assertString":
|
|
12636
|
+
},{"./util/assertString":105}],95:[function(require,module,exports){
|
|
12541
12637
|
'use strict';
|
|
12542
12638
|
|
|
12543
12639
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12559,7 +12655,7 @@ function matches(str, pattern, modifiers) {
|
|
|
12559
12655
|
return pattern.test(str);
|
|
12560
12656
|
}
|
|
12561
12657
|
module.exports = exports['default'];
|
|
12562
|
-
},{"./util/assertString":
|
|
12658
|
+
},{"./util/assertString":105}],96:[function(require,module,exports){
|
|
12563
12659
|
'use strict';
|
|
12564
12660
|
|
|
12565
12661
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12567,10 +12663,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
12567
12663
|
});
|
|
12568
12664
|
exports.default = normalizeEmail;
|
|
12569
12665
|
|
|
12570
|
-
var _isEmail = require('./isEmail');
|
|
12571
|
-
|
|
12572
|
-
var _isEmail2 = _interopRequireDefault(_isEmail);
|
|
12573
|
-
|
|
12574
12666
|
var _merge = require('./util/merge');
|
|
12575
12667
|
|
|
12576
12668
|
var _merge2 = _interopRequireDefault(_merge);
|
|
@@ -12629,10 +12721,6 @@ var yahoo_domains = ['rocketmail.com', 'yahoo.ca', 'yahoo.co.uk', 'yahoo.com', '
|
|
|
12629
12721
|
function normalizeEmail(email, options) {
|
|
12630
12722
|
options = (0, _merge2.default)(options, default_normalize_email_options);
|
|
12631
12723
|
|
|
12632
|
-
if (!(0, _isEmail2.default)(email)) {
|
|
12633
|
-
return false;
|
|
12634
|
-
}
|
|
12635
|
-
|
|
12636
12724
|
var raw_parts = email.split('@');
|
|
12637
12725
|
var domain = raw_parts.pop();
|
|
12638
12726
|
var user = raw_parts.join('@');
|
|
@@ -12697,7 +12785,7 @@ function normalizeEmail(email, options) {
|
|
|
12697
12785
|
return parts.join('@');
|
|
12698
12786
|
}
|
|
12699
12787
|
module.exports = exports['default'];
|
|
12700
|
-
},{"./
|
|
12788
|
+
},{"./util/merge":106}],97:[function(require,module,exports){
|
|
12701
12789
|
'use strict';
|
|
12702
12790
|
|
|
12703
12791
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12723,7 +12811,7 @@ function rtrim(str, chars) {
|
|
|
12723
12811
|
return idx < str.length ? str.substr(0, idx + 1) : str;
|
|
12724
12812
|
}
|
|
12725
12813
|
module.exports = exports['default'];
|
|
12726
|
-
},{"./util/assertString":
|
|
12814
|
+
},{"./util/assertString":105}],98:[function(require,module,exports){
|
|
12727
12815
|
'use strict';
|
|
12728
12816
|
|
|
12729
12817
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12747,7 +12835,7 @@ function stripLow(str, keep_new_lines) {
|
|
|
12747
12835
|
return (0, _blacklist2.default)(str, chars);
|
|
12748
12836
|
}
|
|
12749
12837
|
module.exports = exports['default'];
|
|
12750
|
-
},{"./blacklist":41,"./util/assertString":
|
|
12838
|
+
},{"./blacklist":41,"./util/assertString":105}],99:[function(require,module,exports){
|
|
12751
12839
|
'use strict';
|
|
12752
12840
|
|
|
12753
12841
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12769,7 +12857,7 @@ function toBoolean(str, strict) {
|
|
|
12769
12857
|
return str !== '0' && str !== 'false' && str !== '';
|
|
12770
12858
|
}
|
|
12771
12859
|
module.exports = exports['default'];
|
|
12772
|
-
},{"./util/assertString":
|
|
12860
|
+
},{"./util/assertString":105}],100:[function(require,module,exports){
|
|
12773
12861
|
'use strict';
|
|
12774
12862
|
|
|
12775
12863
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12789,7 +12877,7 @@ function toDate(date) {
|
|
|
12789
12877
|
return !isNaN(date) ? new Date(date) : null;
|
|
12790
12878
|
}
|
|
12791
12879
|
module.exports = exports['default'];
|
|
12792
|
-
},{"./util/assertString":
|
|
12880
|
+
},{"./util/assertString":105}],101:[function(require,module,exports){
|
|
12793
12881
|
'use strict';
|
|
12794
12882
|
|
|
12795
12883
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12808,7 +12896,7 @@ function toFloat(str) {
|
|
|
12808
12896
|
return parseFloat(str);
|
|
12809
12897
|
}
|
|
12810
12898
|
module.exports = exports['default'];
|
|
12811
|
-
},{"./util/assertString":
|
|
12899
|
+
},{"./util/assertString":105}],102:[function(require,module,exports){
|
|
12812
12900
|
'use strict';
|
|
12813
12901
|
|
|
12814
12902
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12827,7 +12915,7 @@ function toInt(str, radix) {
|
|
|
12827
12915
|
return parseInt(str, radix || 10);
|
|
12828
12916
|
}
|
|
12829
12917
|
module.exports = exports['default'];
|
|
12830
|
-
},{"./util/assertString":
|
|
12918
|
+
},{"./util/assertString":105}],103:[function(require,module,exports){
|
|
12831
12919
|
'use strict';
|
|
12832
12920
|
|
|
12833
12921
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12849,7 +12937,7 @@ function trim(str, chars) {
|
|
|
12849
12937
|
return (0, _rtrim2.default)((0, _ltrim2.default)(str, chars), chars);
|
|
12850
12938
|
}
|
|
12851
12939
|
module.exports = exports['default'];
|
|
12852
|
-
},{"./ltrim":
|
|
12940
|
+
},{"./ltrim":94,"./rtrim":97}],104:[function(require,module,exports){
|
|
12853
12941
|
'use strict';
|
|
12854
12942
|
|
|
12855
12943
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12868,7 +12956,7 @@ function unescape(str) {
|
|
|
12868
12956
|
return str.replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, "'").replace(/</g, '<').replace(/>/g, '>').replace(///g, '/').replace(/\/g, '\\').replace(/`/g, '`');
|
|
12869
12957
|
}
|
|
12870
12958
|
module.exports = exports['default'];
|
|
12871
|
-
},{"./util/assertString":
|
|
12959
|
+
},{"./util/assertString":105}],105:[function(require,module,exports){
|
|
12872
12960
|
'use strict';
|
|
12873
12961
|
|
|
12874
12962
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12883,7 +12971,7 @@ function assertString(input) {
|
|
|
12883
12971
|
}
|
|
12884
12972
|
}
|
|
12885
12973
|
module.exports = exports['default'];
|
|
12886
|
-
},{}],
|
|
12974
|
+
},{}],106:[function(require,module,exports){
|
|
12887
12975
|
'use strict';
|
|
12888
12976
|
|
|
12889
12977
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12902,7 +12990,7 @@ function merge() {
|
|
|
12902
12990
|
return obj;
|
|
12903
12991
|
}
|
|
12904
12992
|
module.exports = exports['default'];
|
|
12905
|
-
},{}],
|
|
12993
|
+
},{}],107:[function(require,module,exports){
|
|
12906
12994
|
'use strict';
|
|
12907
12995
|
|
|
12908
12996
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12925,7 +13013,7 @@ function toString(input) {
|
|
|
12925
13013
|
return String(input);
|
|
12926
13014
|
}
|
|
12927
13015
|
module.exports = exports['default'];
|
|
12928
|
-
},{}],
|
|
13016
|
+
},{}],108:[function(require,module,exports){
|
|
12929
13017
|
'use strict';
|
|
12930
13018
|
|
|
12931
13019
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12944,7 +13032,7 @@ function whitelist(str, chars) {
|
|
|
12944
13032
|
return str.replace(new RegExp('[^' + chars + ']+', 'g'), '');
|
|
12945
13033
|
}
|
|
12946
13034
|
module.exports = exports['default'];
|
|
12947
|
-
},{"./util/assertString":
|
|
13035
|
+
},{"./util/assertString":105}],109:[function(require,module,exports){
|
|
12948
13036
|
module.exports = extend
|
|
12949
13037
|
|
|
12950
13038
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -12965,7 +13053,7 @@ function extend() {
|
|
|
12965
13053
|
return target
|
|
12966
13054
|
}
|
|
12967
13055
|
|
|
12968
|
-
},{}],
|
|
13056
|
+
},{}],110:[function(require,module,exports){
|
|
12969
13057
|
"use strict";
|
|
12970
13058
|
|
|
12971
13059
|
module.exports = {
|
|
@@ -13026,7 +13114,7 @@ module.exports = {
|
|
|
13026
13114
|
|
|
13027
13115
|
};
|
|
13028
13116
|
|
|
13029
|
-
},{}],
|
|
13117
|
+
},{}],111:[function(require,module,exports){
|
|
13030
13118
|
/*jshint maxlen: false*/
|
|
13031
13119
|
|
|
13032
13120
|
var validator = require("validator");
|
|
@@ -13157,7 +13245,7 @@ var FormatValidators = {
|
|
|
13157
13245
|
|
|
13158
13246
|
module.exports = FormatValidators;
|
|
13159
13247
|
|
|
13160
|
-
},{"validator":39}],
|
|
13248
|
+
},{"validator":39}],112:[function(require,module,exports){
|
|
13161
13249
|
"use strict";
|
|
13162
13250
|
|
|
13163
13251
|
var FormatValidators = require("./FormatValidators"),
|
|
@@ -13700,7 +13788,7 @@ exports.validate = function (report, schema, json) {
|
|
|
13700
13788
|
|
|
13701
13789
|
};
|
|
13702
13790
|
|
|
13703
|
-
},{"./FormatValidators":
|
|
13791
|
+
},{"./FormatValidators":111,"./Report":114,"./Utils":118}],113:[function(require,module,exports){
|
|
13704
13792
|
// Number.isFinite polyfill
|
|
13705
13793
|
// http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite
|
|
13706
13794
|
if (typeof Number.isFinite !== "function") {
|
|
@@ -13718,7 +13806,7 @@ if (typeof Number.isFinite !== "function") {
|
|
|
13718
13806
|
};
|
|
13719
13807
|
}
|
|
13720
13808
|
|
|
13721
|
-
},{}],
|
|
13809
|
+
},{}],114:[function(require,module,exports){
|
|
13722
13810
|
(function (process){
|
|
13723
13811
|
"use strict";
|
|
13724
13812
|
|
|
@@ -13924,7 +14012,7 @@ Report.prototype.addCustomError = function (errorCode, errorMessage, params, sub
|
|
|
13924
14012
|
module.exports = Report;
|
|
13925
14013
|
|
|
13926
14014
|
}).call(this,require('_process'))
|
|
13927
|
-
},{"./Errors":
|
|
14015
|
+
},{"./Errors":110,"./Utils":118,"_process":15,"lodash.get":12}],115:[function(require,module,exports){
|
|
13928
14016
|
"use strict";
|
|
13929
14017
|
|
|
13930
14018
|
var isequal = require("lodash.isequal");
|
|
@@ -14048,7 +14136,15 @@ exports.getSchemaByUri = function (report, uri, root) {
|
|
|
14048
14136
|
|
|
14049
14137
|
var remoteReport = new Report(report);
|
|
14050
14138
|
if (SchemaCompilation.compileSchema.call(this, remoteReport, result)) {
|
|
14051
|
-
|
|
14139
|
+
var savedOptions = this.options;
|
|
14140
|
+
try {
|
|
14141
|
+
// If custom validationOptions were provided to setRemoteReference(),
|
|
14142
|
+
// use them instead of the default options
|
|
14143
|
+
this.options = result.__$validationOptions || this.options;
|
|
14144
|
+
SchemaValidation.validateSchema.call(this, remoteReport, result);
|
|
14145
|
+
} finally {
|
|
14146
|
+
this.options = savedOptions;
|
|
14147
|
+
}
|
|
14052
14148
|
}
|
|
14053
14149
|
var remoteReportIsValid = remoteReport.isValid();
|
|
14054
14150
|
if (!remoteReportIsValid) {
|
|
@@ -14080,7 +14176,7 @@ exports.getSchemaByUri = function (report, uri, root) {
|
|
|
14080
14176
|
|
|
14081
14177
|
exports.getRemotePath = getRemotePath;
|
|
14082
14178
|
|
|
14083
|
-
},{"./Report":
|
|
14179
|
+
},{"./Report":114,"./SchemaCompilation":116,"./SchemaValidation":117,"./Utils":118,"lodash.isequal":13}],116:[function(require,module,exports){
|
|
14084
14180
|
"use strict";
|
|
14085
14181
|
|
|
14086
14182
|
var Report = require("./Report");
|
|
@@ -14381,7 +14477,7 @@ exports.compileSchema = function (report, schema) {
|
|
|
14381
14477
|
|
|
14382
14478
|
};
|
|
14383
14479
|
|
|
14384
|
-
},{"./Report":
|
|
14480
|
+
},{"./Report":114,"./SchemaCache":115,"./Utils":118}],117:[function(require,module,exports){
|
|
14385
14481
|
"use strict";
|
|
14386
14482
|
|
|
14387
14483
|
var FormatValidators = require("./FormatValidators"),
|
|
@@ -14990,7 +15086,7 @@ exports.validateSchema = function (report, schema) {
|
|
|
14990
15086
|
return isValid;
|
|
14991
15087
|
};
|
|
14992
15088
|
|
|
14993
|
-
},{"./FormatValidators":
|
|
15089
|
+
},{"./FormatValidators":111,"./JsonValidation":112,"./Report":114,"./Utils":118}],118:[function(require,module,exports){
|
|
14994
15090
|
"use strict";
|
|
14995
15091
|
|
|
14996
15092
|
exports.isAbsoluteUri = function (uri) {
|
|
@@ -15209,7 +15305,7 @@ exports.ucs2decode = function (string) {
|
|
|
15209
15305
|
};
|
|
15210
15306
|
/*jshint +W016*/
|
|
15211
15307
|
|
|
15212
|
-
},{}],
|
|
15308
|
+
},{}],119:[function(require,module,exports){
|
|
15213
15309
|
(function (process){
|
|
15214
15310
|
"use strict";
|
|
15215
15311
|
|
|
@@ -15273,15 +15369,8 @@ var defaultOptions = {
|
|
|
15273
15369
|
customValidator: null
|
|
15274
15370
|
};
|
|
15275
15371
|
|
|
15276
|
-
|
|
15277
|
-
|
|
15278
|
-
*/
|
|
15279
|
-
function ZSchema(options) {
|
|
15280
|
-
this.cache = {};
|
|
15281
|
-
this.referenceCache = [];
|
|
15282
|
-
|
|
15283
|
-
this.setRemoteReference("http://json-schema.org/draft-04/schema", Draft4Schema);
|
|
15284
|
-
this.setRemoteReference("http://json-schema.org/draft-04/hyper-schema", Draft4HyperSchema);
|
|
15372
|
+
function normalizeOptions(options) {
|
|
15373
|
+
var normalized;
|
|
15285
15374
|
|
|
15286
15375
|
// options
|
|
15287
15376
|
if (typeof options === "object") {
|
|
@@ -15307,22 +15396,39 @@ function ZSchema(options) {
|
|
|
15307
15396
|
}
|
|
15308
15397
|
}
|
|
15309
15398
|
|
|
15310
|
-
|
|
15399
|
+
normalized = options;
|
|
15311
15400
|
} else {
|
|
15312
|
-
|
|
15401
|
+
normalized = Utils.clone(defaultOptions);
|
|
15313
15402
|
}
|
|
15314
15403
|
|
|
15315
|
-
if (
|
|
15316
|
-
|
|
15317
|
-
|
|
15318
|
-
|
|
15319
|
-
|
|
15320
|
-
|
|
15321
|
-
|
|
15322
|
-
|
|
15323
|
-
|
|
15404
|
+
if (normalized.strictMode === true) {
|
|
15405
|
+
normalized.forceAdditional = true;
|
|
15406
|
+
normalized.forceItems = true;
|
|
15407
|
+
normalized.forceMaxLength = true;
|
|
15408
|
+
normalized.forceProperties = true;
|
|
15409
|
+
normalized.noExtraKeywords = true;
|
|
15410
|
+
normalized.noTypeless = true;
|
|
15411
|
+
normalized.noEmptyStrings = true;
|
|
15412
|
+
normalized.noEmptyArrays = true;
|
|
15324
15413
|
}
|
|
15325
15414
|
|
|
15415
|
+
return normalized;
|
|
15416
|
+
}
|
|
15417
|
+
|
|
15418
|
+
/*
|
|
15419
|
+
constructor
|
|
15420
|
+
*/
|
|
15421
|
+
function ZSchema(options) {
|
|
15422
|
+
this.cache = {};
|
|
15423
|
+
this.referenceCache = [];
|
|
15424
|
+
|
|
15425
|
+
this.options = normalizeOptions(options);
|
|
15426
|
+
|
|
15427
|
+
// Disable strict validation for the built-in schemas
|
|
15428
|
+
var metaschemaOptions = normalizeOptions({ });
|
|
15429
|
+
|
|
15430
|
+
this.setRemoteReference("http://json-schema.org/draft-04/schema", Draft4Schema, metaschemaOptions);
|
|
15431
|
+
this.setRemoteReference("http://json-schema.org/draft-04/hyper-schema", Draft4HyperSchema, metaschemaOptions);
|
|
15326
15432
|
}
|
|
15327
15433
|
|
|
15328
15434
|
/*
|
|
@@ -15470,12 +15576,17 @@ ZSchema.prototype.getMissingRemoteReferences = function () {
|
|
|
15470
15576
|
}
|
|
15471
15577
|
return missingRemoteReferences;
|
|
15472
15578
|
};
|
|
15473
|
-
ZSchema.prototype.setRemoteReference = function (uri, schema) {
|
|
15579
|
+
ZSchema.prototype.setRemoteReference = function (uri, schema, validationOptions) {
|
|
15474
15580
|
if (typeof schema === "string") {
|
|
15475
15581
|
schema = JSON.parse(schema);
|
|
15476
15582
|
} else {
|
|
15477
15583
|
schema = Utils.cloneDeep(schema);
|
|
15478
15584
|
}
|
|
15585
|
+
|
|
15586
|
+
if (validationOptions) {
|
|
15587
|
+
schema.__$validationOptions = normalizeOptions(validationOptions);
|
|
15588
|
+
}
|
|
15589
|
+
|
|
15479
15590
|
SchemaCache.cacheSchemaByUri.call(this, uri, schema);
|
|
15480
15591
|
};
|
|
15481
15592
|
ZSchema.prototype.getResolvedSchema = function (schema) {
|
|
@@ -15565,7 +15676,7 @@ ZSchema.getDefaultOptions = function () {
|
|
|
15565
15676
|
module.exports = ZSchema;
|
|
15566
15677
|
|
|
15567
15678
|
}).call(this,require('_process'))
|
|
15568
|
-
},{"./FormatValidators":
|
|
15679
|
+
},{"./FormatValidators":111,"./JsonValidation":112,"./Polyfills":113,"./Report":114,"./SchemaCache":115,"./SchemaCompilation":116,"./SchemaValidation":117,"./Utils":118,"./schemas/hyper-schema.json":120,"./schemas/schema.json":121,"_process":15,"lodash.get":12}],120:[function(require,module,exports){
|
|
15569
15680
|
module.exports={
|
|
15570
15681
|
"$schema": "http://json-schema.org/draft-04/hyper-schema#",
|
|
15571
15682
|
"id": "http://json-schema.org/draft-04/hyper-schema#",
|
|
@@ -15725,7 +15836,7 @@ module.exports={
|
|
|
15725
15836
|
}
|
|
15726
15837
|
|
|
15727
15838
|
|
|
15728
|
-
},{}],
|
|
15839
|
+
},{}],121:[function(require,module,exports){
|
|
15729
15840
|
module.exports={
|
|
15730
15841
|
"id": "http://json-schema.org/draft-04/schema#",
|
|
15731
15842
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
@@ -15878,7 +15989,7 @@ module.exports={
|
|
|
15878
15989
|
"default": {}
|
|
15879
15990
|
}
|
|
15880
15991
|
|
|
15881
|
-
},{}],
|
|
15992
|
+
},{}],122:[function(require,module,exports){
|
|
15882
15993
|
"use strict";
|
|
15883
15994
|
|
|
15884
15995
|
module.exports = {
|
|
@@ -15956,7 +16067,7 @@ module.exports = {
|
|
|
15956
16067
|
]
|
|
15957
16068
|
};
|
|
15958
16069
|
|
|
15959
|
-
},{}],
|
|
16070
|
+
},{}],123:[function(require,module,exports){
|
|
15960
16071
|
"use strict";
|
|
15961
16072
|
|
|
15962
16073
|
module.exports = {
|
|
@@ -16021,7 +16132,7 @@ module.exports = {
|
|
|
16021
16132
|
]
|
|
16022
16133
|
};
|
|
16023
16134
|
|
|
16024
|
-
},{}],
|
|
16135
|
+
},{}],124:[function(require,module,exports){
|
|
16025
16136
|
"use strict";
|
|
16026
16137
|
|
|
16027
16138
|
module.exports = {
|
|
@@ -16094,7 +16205,7 @@ module.exports = {
|
|
|
16094
16205
|
]
|
|
16095
16206
|
};
|
|
16096
16207
|
|
|
16097
|
-
},{}],
|
|
16208
|
+
},{}],125:[function(require,module,exports){
|
|
16098
16209
|
"use strict";
|
|
16099
16210
|
|
|
16100
16211
|
//Implement new 'shouldFail' keyword
|
|
@@ -16157,7 +16268,7 @@ module.exports = {
|
|
|
16157
16268
|
]
|
|
16158
16269
|
};
|
|
16159
16270
|
|
|
16160
|
-
},{}],
|
|
16271
|
+
},{}],126:[function(require,module,exports){
|
|
16161
16272
|
"use strict";
|
|
16162
16273
|
|
|
16163
16274
|
module.exports = {
|
|
@@ -16185,7 +16296,7 @@ module.exports = {
|
|
|
16185
16296
|
]
|
|
16186
16297
|
};
|
|
16187
16298
|
|
|
16188
|
-
},{}],
|
|
16299
|
+
},{}],127:[function(require,module,exports){
|
|
16189
16300
|
"use strict";
|
|
16190
16301
|
|
|
16191
16302
|
module.exports = {
|
|
@@ -16210,7 +16321,7 @@ module.exports = {
|
|
|
16210
16321
|
]
|
|
16211
16322
|
};
|
|
16212
16323
|
|
|
16213
|
-
},{}],
|
|
16324
|
+
},{}],128:[function(require,module,exports){
|
|
16214
16325
|
"use strict";
|
|
16215
16326
|
|
|
16216
16327
|
module.exports = {
|
|
@@ -16283,7 +16394,7 @@ module.exports = {
|
|
|
16283
16394
|
]
|
|
16284
16395
|
};
|
|
16285
16396
|
|
|
16286
|
-
},{}],
|
|
16397
|
+
},{}],129:[function(require,module,exports){
|
|
16287
16398
|
"use strict";
|
|
16288
16399
|
|
|
16289
16400
|
module.exports = {
|
|
@@ -16311,7 +16422,7 @@ module.exports = {
|
|
|
16311
16422
|
]
|
|
16312
16423
|
};
|
|
16313
16424
|
|
|
16314
|
-
},{}],
|
|
16425
|
+
},{}],130:[function(require,module,exports){
|
|
16315
16426
|
"use strict";
|
|
16316
16427
|
|
|
16317
16428
|
module.exports = {
|
|
@@ -16339,7 +16450,7 @@ module.exports = {
|
|
|
16339
16450
|
]
|
|
16340
16451
|
};
|
|
16341
16452
|
|
|
16342
|
-
},{}],
|
|
16453
|
+
},{}],131:[function(require,module,exports){
|
|
16343
16454
|
"use strict";
|
|
16344
16455
|
|
|
16345
16456
|
module.exports = {
|
|
@@ -16367,7 +16478,7 @@ module.exports = {
|
|
|
16367
16478
|
]
|
|
16368
16479
|
};
|
|
16369
16480
|
|
|
16370
|
-
},{}],
|
|
16481
|
+
},{}],132:[function(require,module,exports){
|
|
16371
16482
|
"use strict";
|
|
16372
16483
|
|
|
16373
16484
|
module.exports = {
|
|
@@ -16395,7 +16506,7 @@ module.exports = {
|
|
|
16395
16506
|
]
|
|
16396
16507
|
};
|
|
16397
16508
|
|
|
16398
|
-
},{}],
|
|
16509
|
+
},{}],133:[function(require,module,exports){
|
|
16399
16510
|
"use strict";
|
|
16400
16511
|
|
|
16401
16512
|
module.exports = {
|
|
@@ -16423,7 +16534,7 @@ module.exports = {
|
|
|
16423
16534
|
]
|
|
16424
16535
|
};
|
|
16425
16536
|
|
|
16426
|
-
},{}],
|
|
16537
|
+
},{}],134:[function(require,module,exports){
|
|
16427
16538
|
"use strict";
|
|
16428
16539
|
|
|
16429
16540
|
module.exports = {
|
|
@@ -16479,7 +16590,7 @@ module.exports = {
|
|
|
16479
16590
|
]
|
|
16480
16591
|
};
|
|
16481
16592
|
|
|
16482
|
-
},{}],
|
|
16593
|
+
},{}],135:[function(require,module,exports){
|
|
16483
16594
|
"use strict";
|
|
16484
16595
|
|
|
16485
16596
|
module.exports = {
|
|
@@ -16523,7 +16634,7 @@ module.exports = {
|
|
|
16523
16634
|
]
|
|
16524
16635
|
};
|
|
16525
16636
|
|
|
16526
|
-
},{}],
|
|
16637
|
+
},{}],136:[function(require,module,exports){
|
|
16527
16638
|
"use strict";
|
|
16528
16639
|
|
|
16529
16640
|
module.exports = {
|
|
@@ -16540,7 +16651,7 @@ module.exports = {
|
|
|
16540
16651
|
]
|
|
16541
16652
|
};
|
|
16542
16653
|
|
|
16543
|
-
},{}],
|
|
16654
|
+
},{}],137:[function(require,module,exports){
|
|
16544
16655
|
"use strict";
|
|
16545
16656
|
|
|
16546
16657
|
module.exports = {
|
|
@@ -16562,7 +16673,7 @@ module.exports = {
|
|
|
16562
16673
|
]
|
|
16563
16674
|
};
|
|
16564
16675
|
|
|
16565
|
-
},{}],
|
|
16676
|
+
},{}],138:[function(require,module,exports){
|
|
16566
16677
|
"use strict";
|
|
16567
16678
|
|
|
16568
16679
|
module.exports = {
|
|
@@ -16580,7 +16691,7 @@ module.exports = {
|
|
|
16580
16691
|
]
|
|
16581
16692
|
};
|
|
16582
16693
|
|
|
16583
|
-
},{}],
|
|
16694
|
+
},{}],139:[function(require,module,exports){
|
|
16584
16695
|
"use strict";
|
|
16585
16696
|
|
|
16586
16697
|
module.exports = {
|
|
@@ -16649,7 +16760,7 @@ module.exports = {
|
|
|
16649
16760
|
]
|
|
16650
16761
|
};
|
|
16651
16762
|
|
|
16652
|
-
},{}],
|
|
16763
|
+
},{}],140:[function(require,module,exports){
|
|
16653
16764
|
"use strict";
|
|
16654
16765
|
|
|
16655
16766
|
module.exports = {
|
|
@@ -16664,7 +16775,7 @@ module.exports = {
|
|
|
16664
16775
|
]
|
|
16665
16776
|
};
|
|
16666
16777
|
|
|
16667
|
-
},{}],
|
|
16778
|
+
},{}],141:[function(require,module,exports){
|
|
16668
16779
|
"use strict";
|
|
16669
16780
|
|
|
16670
16781
|
module.exports = {
|
|
@@ -16688,7 +16799,7 @@ module.exports = {
|
|
|
16688
16799
|
]
|
|
16689
16800
|
};
|
|
16690
16801
|
|
|
16691
|
-
},{}],
|
|
16802
|
+
},{}],142:[function(require,module,exports){
|
|
16692
16803
|
"use strict";
|
|
16693
16804
|
|
|
16694
16805
|
module.exports = {
|
|
@@ -16763,7 +16874,7 @@ module.exports = {
|
|
|
16763
16874
|
]
|
|
16764
16875
|
};
|
|
16765
16876
|
|
|
16766
|
-
},{}],
|
|
16877
|
+
},{}],143:[function(require,module,exports){
|
|
16767
16878
|
"use strict";
|
|
16768
16879
|
|
|
16769
16880
|
module.exports = {
|
|
@@ -16784,7 +16895,7 @@ module.exports = {
|
|
|
16784
16895
|
]
|
|
16785
16896
|
};
|
|
16786
16897
|
|
|
16787
|
-
},{}],
|
|
16898
|
+
},{}],144:[function(require,module,exports){
|
|
16788
16899
|
"use strict";
|
|
16789
16900
|
|
|
16790
16901
|
module.exports = {
|
|
@@ -16811,7 +16922,7 @@ module.exports = {
|
|
|
16811
16922
|
]
|
|
16812
16923
|
};
|
|
16813
16924
|
|
|
16814
|
-
},{}],
|
|
16925
|
+
},{}],145:[function(require,module,exports){
|
|
16815
16926
|
"use strict";
|
|
16816
16927
|
|
|
16817
16928
|
var REF_NAME = "int.json";
|
|
@@ -16858,7 +16969,7 @@ module.exports = {
|
|
|
16858
16969
|
]
|
|
16859
16970
|
};
|
|
16860
16971
|
|
|
16861
|
-
},{}],
|
|
16972
|
+
},{}],146:[function(require,module,exports){
|
|
16862
16973
|
"use strict";
|
|
16863
16974
|
|
|
16864
16975
|
module.exports = {
|
|
@@ -17031,7 +17142,7 @@ module.exports = {
|
|
|
17031
17142
|
]
|
|
17032
17143
|
};
|
|
17033
17144
|
|
|
17034
|
-
},{}],
|
|
17145
|
+
},{}],147:[function(require,module,exports){
|
|
17035
17146
|
"use strict";
|
|
17036
17147
|
|
|
17037
17148
|
module.exports = {
|
|
@@ -17076,7 +17187,7 @@ module.exports = {
|
|
|
17076
17187
|
]
|
|
17077
17188
|
};
|
|
17078
17189
|
|
|
17079
|
-
},{}],
|
|
17190
|
+
},{}],148:[function(require,module,exports){
|
|
17080
17191
|
"use strict";
|
|
17081
17192
|
|
|
17082
17193
|
module.exports = {
|
|
@@ -17119,7 +17230,7 @@ module.exports = {
|
|
|
17119
17230
|
]
|
|
17120
17231
|
};
|
|
17121
17232
|
|
|
17122
|
-
},{}],
|
|
17233
|
+
},{}],149:[function(require,module,exports){
|
|
17123
17234
|
"use strict";
|
|
17124
17235
|
|
|
17125
17236
|
var schema1 = {
|
|
@@ -17203,7 +17314,7 @@ module.exports = {
|
|
|
17203
17314
|
]
|
|
17204
17315
|
};
|
|
17205
17316
|
|
|
17206
|
-
},{}],
|
|
17317
|
+
},{}],150:[function(require,module,exports){
|
|
17207
17318
|
module.exports = {
|
|
17208
17319
|
description: "Issue #139 - add schema id if present to erro message via addError method",
|
|
17209
17320
|
tests: [
|
|
@@ -17262,7 +17373,7 @@ module.exports = {
|
|
|
17262
17373
|
]
|
|
17263
17374
|
};
|
|
17264
17375
|
|
|
17265
|
-
},{}],
|
|
17376
|
+
},{}],151:[function(require,module,exports){
|
|
17266
17377
|
"use strict";
|
|
17267
17378
|
|
|
17268
17379
|
module.exports = {
|
|
@@ -17280,7 +17391,7 @@ module.exports = {
|
|
|
17280
17391
|
]
|
|
17281
17392
|
};
|
|
17282
17393
|
|
|
17283
|
-
},{}],
|
|
17394
|
+
},{}],152:[function(require,module,exports){
|
|
17284
17395
|
"use strict";
|
|
17285
17396
|
|
|
17286
17397
|
module.exports = {
|
|
@@ -17310,7 +17421,7 @@ module.exports = {
|
|
|
17310
17421
|
]
|
|
17311
17422
|
};
|
|
17312
17423
|
|
|
17313
|
-
},{}],
|
|
17424
|
+
},{}],153:[function(require,module,exports){
|
|
17314
17425
|
"use strict";
|
|
17315
17426
|
|
|
17316
17427
|
module.exports = {
|
|
@@ -17338,7 +17449,7 @@ module.exports = {
|
|
|
17338
17449
|
]
|
|
17339
17450
|
};
|
|
17340
17451
|
|
|
17341
|
-
},{}],
|
|
17452
|
+
},{}],154:[function(require,module,exports){
|
|
17342
17453
|
"use strict";
|
|
17343
17454
|
|
|
17344
17455
|
module.exports = {
|
|
@@ -17365,7 +17476,7 @@ module.exports = {
|
|
|
17365
17476
|
]
|
|
17366
17477
|
};
|
|
17367
17478
|
|
|
17368
|
-
},{}],
|
|
17479
|
+
},{}],155:[function(require,module,exports){
|
|
17369
17480
|
"use strict";
|
|
17370
17481
|
|
|
17371
17482
|
module.exports = {
|
|
@@ -17441,7 +17552,7 @@ module.exports = {
|
|
|
17441
17552
|
]
|
|
17442
17553
|
};
|
|
17443
17554
|
|
|
17444
|
-
},{}],
|
|
17555
|
+
},{}],156:[function(require,module,exports){
|
|
17445
17556
|
"use strict";
|
|
17446
17557
|
|
|
17447
17558
|
module.exports = {
|
|
@@ -17477,7 +17588,7 @@ module.exports = {
|
|
|
17477
17588
|
]
|
|
17478
17589
|
};
|
|
17479
17590
|
|
|
17480
|
-
},{}],
|
|
17591
|
+
},{}],157:[function(require,module,exports){
|
|
17481
17592
|
"use strict";
|
|
17482
17593
|
|
|
17483
17594
|
module.exports = {
|
|
@@ -17567,7 +17678,7 @@ module.exports = {
|
|
|
17567
17678
|
]
|
|
17568
17679
|
};
|
|
17569
17680
|
|
|
17570
|
-
},{}],
|
|
17681
|
+
},{}],158:[function(require,module,exports){
|
|
17571
17682
|
"use strict";
|
|
17572
17683
|
|
|
17573
17684
|
module.exports = {
|
|
@@ -17592,7 +17703,7 @@ module.exports = {
|
|
|
17592
17703
|
]
|
|
17593
17704
|
};
|
|
17594
17705
|
|
|
17595
|
-
},{}],
|
|
17706
|
+
},{}],159:[function(require,module,exports){
|
|
17596
17707
|
"use strict";
|
|
17597
17708
|
|
|
17598
17709
|
module.exports = {
|
|
@@ -17668,7 +17779,7 @@ module.exports = {
|
|
|
17668
17779
|
]
|
|
17669
17780
|
};
|
|
17670
17781
|
|
|
17671
|
-
},{}],
|
|
17782
|
+
},{}],160:[function(require,module,exports){
|
|
17672
17783
|
"use strict";
|
|
17673
17784
|
|
|
17674
17785
|
module.exports = {
|
|
@@ -17781,7 +17892,7 @@ module.exports = {
|
|
|
17781
17892
|
]
|
|
17782
17893
|
};
|
|
17783
17894
|
|
|
17784
|
-
},{}],
|
|
17895
|
+
},{}],161:[function(require,module,exports){
|
|
17785
17896
|
"use strict";
|
|
17786
17897
|
|
|
17787
17898
|
module.exports = {
|
|
@@ -17961,7 +18072,7 @@ module.exports = {
|
|
|
17961
18072
|
]
|
|
17962
18073
|
};
|
|
17963
18074
|
|
|
17964
|
-
},{}],
|
|
18075
|
+
},{}],162:[function(require,module,exports){
|
|
17965
18076
|
"use strict";
|
|
17966
18077
|
|
|
17967
18078
|
module.exports = {
|
|
@@ -18008,7 +18119,7 @@ module.exports = {
|
|
|
18008
18119
|
]
|
|
18009
18120
|
};
|
|
18010
18121
|
|
|
18011
|
-
},{}],
|
|
18122
|
+
},{}],163:[function(require,module,exports){
|
|
18012
18123
|
"use strict";
|
|
18013
18124
|
|
|
18014
18125
|
var resourceObject = {
|
|
@@ -18304,7 +18415,7 @@ module.exports = {
|
|
|
18304
18415
|
]
|
|
18305
18416
|
};
|
|
18306
18417
|
|
|
18307
|
-
},{}],
|
|
18418
|
+
},{}],164:[function(require,module,exports){
|
|
18308
18419
|
"use strict";
|
|
18309
18420
|
|
|
18310
18421
|
var draft4 = require("./files/Issue47/draft4.json");
|
|
@@ -18333,7 +18444,7 @@ module.exports = {
|
|
|
18333
18444
|
]
|
|
18334
18445
|
};
|
|
18335
18446
|
|
|
18336
|
-
},{"./files/Issue47/draft4.json":
|
|
18447
|
+
},{"./files/Issue47/draft4.json":188,"./files/Issue47/sample.json":189,"./files/Issue47/swagger_draft.json":190,"./files/Issue47/swagger_draft_modified.json":191}],165:[function(require,module,exports){
|
|
18337
18448
|
"use strict";
|
|
18338
18449
|
|
|
18339
18450
|
module.exports = {
|
|
@@ -18366,7 +18477,7 @@ module.exports = {
|
|
|
18366
18477
|
]
|
|
18367
18478
|
};
|
|
18368
18479
|
|
|
18369
|
-
},{}],
|
|
18480
|
+
},{}],166:[function(require,module,exports){
|
|
18370
18481
|
"use strict";
|
|
18371
18482
|
|
|
18372
18483
|
module.exports = {
|
|
@@ -18384,7 +18495,7 @@ module.exports = {
|
|
|
18384
18495
|
]
|
|
18385
18496
|
};
|
|
18386
18497
|
|
|
18387
|
-
},{}],
|
|
18498
|
+
},{}],167:[function(require,module,exports){
|
|
18388
18499
|
"use strict";
|
|
18389
18500
|
|
|
18390
18501
|
module.exports = {
|
|
@@ -18406,7 +18517,7 @@ module.exports = {
|
|
|
18406
18517
|
]
|
|
18407
18518
|
};
|
|
18408
18519
|
|
|
18409
|
-
},{}],
|
|
18520
|
+
},{}],168:[function(require,module,exports){
|
|
18410
18521
|
"use strict";
|
|
18411
18522
|
|
|
18412
18523
|
module.exports = {
|
|
@@ -18477,7 +18588,7 @@ module.exports = {
|
|
|
18477
18588
|
]
|
|
18478
18589
|
};
|
|
18479
18590
|
|
|
18480
|
-
},{}],
|
|
18591
|
+
},{}],169:[function(require,module,exports){
|
|
18481
18592
|
"use strict";
|
|
18482
18593
|
|
|
18483
18594
|
var dataTypeBaseJson = {
|
|
@@ -19162,7 +19273,7 @@ module.exports = {
|
|
|
19162
19273
|
]
|
|
19163
19274
|
};
|
|
19164
19275
|
|
|
19165
|
-
},{}],
|
|
19276
|
+
},{}],170:[function(require,module,exports){
|
|
19166
19277
|
"use strict";
|
|
19167
19278
|
|
|
19168
19279
|
module.exports = {
|
|
@@ -19225,7 +19336,7 @@ module.exports = {
|
|
|
19225
19336
|
]
|
|
19226
19337
|
};
|
|
19227
19338
|
|
|
19228
|
-
},{}],
|
|
19339
|
+
},{}],171:[function(require,module,exports){
|
|
19229
19340
|
/*jshint -W101*/
|
|
19230
19341
|
|
|
19231
19342
|
"use strict";
|
|
@@ -19802,7 +19913,7 @@ module.exports = {
|
|
|
19802
19913
|
]
|
|
19803
19914
|
};
|
|
19804
19915
|
|
|
19805
|
-
},{}],
|
|
19916
|
+
},{}],172:[function(require,module,exports){
|
|
19806
19917
|
"use strict";
|
|
19807
19918
|
|
|
19808
19919
|
module.exports = {
|
|
@@ -19833,7 +19944,7 @@ module.exports = {
|
|
|
19833
19944
|
]
|
|
19834
19945
|
};
|
|
19835
19946
|
|
|
19836
|
-
},{}],
|
|
19947
|
+
},{}],173:[function(require,module,exports){
|
|
19837
19948
|
"use strict";
|
|
19838
19949
|
|
|
19839
19950
|
module.exports = {
|
|
@@ -19884,7 +19995,7 @@ module.exports = {
|
|
|
19884
19995
|
]
|
|
19885
19996
|
};
|
|
19886
19997
|
|
|
19887
|
-
},{}],
|
|
19998
|
+
},{}],174:[function(require,module,exports){
|
|
19888
19999
|
"use strict";
|
|
19889
20000
|
|
|
19890
20001
|
module.exports = {
|
|
@@ -20004,7 +20115,7 @@ module.exports = {
|
|
|
20004
20115
|
]
|
|
20005
20116
|
};
|
|
20006
20117
|
|
|
20007
|
-
},{}],
|
|
20118
|
+
},{}],175:[function(require,module,exports){
|
|
20008
20119
|
"use strict";
|
|
20009
20120
|
|
|
20010
20121
|
module.exports = {
|
|
@@ -20062,7 +20173,7 @@ module.exports = {
|
|
|
20062
20173
|
]
|
|
20063
20174
|
};
|
|
20064
20175
|
|
|
20065
|
-
},{}],
|
|
20176
|
+
},{}],176:[function(require,module,exports){
|
|
20066
20177
|
"use strict";
|
|
20067
20178
|
|
|
20068
20179
|
module.exports = {
|
|
@@ -20135,7 +20246,7 @@ module.exports = {
|
|
|
20135
20246
|
]
|
|
20136
20247
|
};
|
|
20137
20248
|
|
|
20138
|
-
},{}],
|
|
20249
|
+
},{}],177:[function(require,module,exports){
|
|
20139
20250
|
"use strict";
|
|
20140
20251
|
|
|
20141
20252
|
var innerSchema = {
|
|
@@ -20180,7 +20291,7 @@ module.exports = {
|
|
|
20180
20291
|
]
|
|
20181
20292
|
};
|
|
20182
20293
|
|
|
20183
|
-
},{}],
|
|
20294
|
+
},{}],178:[function(require,module,exports){
|
|
20184
20295
|
"use strict";
|
|
20185
20296
|
|
|
20186
20297
|
var schema1 = {
|
|
@@ -20224,7 +20335,7 @@ module.exports = {
|
|
|
20224
20335
|
]
|
|
20225
20336
|
};
|
|
20226
20337
|
|
|
20227
|
-
},{}],
|
|
20338
|
+
},{}],179:[function(require,module,exports){
|
|
20228
20339
|
"use strict";
|
|
20229
20340
|
|
|
20230
20341
|
module.exports = {
|
|
@@ -20242,7 +20353,7 @@ module.exports = {
|
|
|
20242
20353
|
]
|
|
20243
20354
|
};
|
|
20244
20355
|
|
|
20245
|
-
},{}],
|
|
20356
|
+
},{}],180:[function(require,module,exports){
|
|
20246
20357
|
"use strict";
|
|
20247
20358
|
|
|
20248
20359
|
module.exports = {
|
|
@@ -20274,7 +20385,7 @@ module.exports = {
|
|
|
20274
20385
|
]
|
|
20275
20386
|
};
|
|
20276
20387
|
|
|
20277
|
-
},{}],
|
|
20388
|
+
},{}],181:[function(require,module,exports){
|
|
20278
20389
|
"use strict";
|
|
20279
20390
|
|
|
20280
20391
|
module.exports = {
|
|
@@ -20333,7 +20444,7 @@ module.exports = {
|
|
|
20333
20444
|
]
|
|
20334
20445
|
};
|
|
20335
20446
|
|
|
20336
|
-
},{}],
|
|
20447
|
+
},{}],182:[function(require,module,exports){
|
|
20337
20448
|
"use strict";
|
|
20338
20449
|
|
|
20339
20450
|
module.exports = {
|
|
@@ -20358,7 +20469,7 @@ module.exports = {
|
|
|
20358
20469
|
]
|
|
20359
20470
|
};
|
|
20360
20471
|
|
|
20361
|
-
},{}],
|
|
20472
|
+
},{}],183:[function(require,module,exports){
|
|
20362
20473
|
"use strict";
|
|
20363
20474
|
|
|
20364
20475
|
module.exports = {
|
|
@@ -20383,7 +20494,7 @@ module.exports = {
|
|
|
20383
20494
|
]
|
|
20384
20495
|
};
|
|
20385
20496
|
|
|
20386
|
-
},{}],
|
|
20497
|
+
},{}],184:[function(require,module,exports){
|
|
20387
20498
|
"use strict";
|
|
20388
20499
|
|
|
20389
20500
|
module.exports = {
|
|
@@ -20428,7 +20539,7 @@ module.exports = {
|
|
|
20428
20539
|
]
|
|
20429
20540
|
};
|
|
20430
20541
|
|
|
20431
|
-
},{}],
|
|
20542
|
+
},{}],185:[function(require,module,exports){
|
|
20432
20543
|
"use strict";
|
|
20433
20544
|
|
|
20434
20545
|
module.exports = {
|
|
@@ -20453,7 +20564,7 @@ module.exports = {
|
|
|
20453
20564
|
]
|
|
20454
20565
|
};
|
|
20455
20566
|
|
|
20456
|
-
},{}],
|
|
20567
|
+
},{}],186:[function(require,module,exports){
|
|
20457
20568
|
"use strict";
|
|
20458
20569
|
|
|
20459
20570
|
module.exports = {
|
|
@@ -20492,7 +20603,7 @@ module.exports = {
|
|
|
20492
20603
|
]
|
|
20493
20604
|
};
|
|
20494
20605
|
|
|
20495
|
-
},{}],
|
|
20606
|
+
},{}],187:[function(require,module,exports){
|
|
20496
20607
|
"use strict";
|
|
20497
20608
|
|
|
20498
20609
|
module.exports = {
|
|
@@ -20522,7 +20633,7 @@ module.exports = {
|
|
|
20522
20633
|
]
|
|
20523
20634
|
};
|
|
20524
20635
|
|
|
20525
|
-
},{}],
|
|
20636
|
+
},{}],188:[function(require,module,exports){
|
|
20526
20637
|
module.exports={
|
|
20527
20638
|
"id": "http://json-schema.org/draft-04/schema#",
|
|
20528
20639
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
@@ -20674,7 +20785,7 @@ module.exports={
|
|
|
20674
20785
|
"default": {}
|
|
20675
20786
|
}
|
|
20676
20787
|
|
|
20677
|
-
},{}],
|
|
20788
|
+
},{}],189:[function(require,module,exports){
|
|
20678
20789
|
module.exports={
|
|
20679
20790
|
"swagger": 2,
|
|
20680
20791
|
"info": {
|
|
@@ -20765,7 +20876,7 @@ module.exports={
|
|
|
20765
20876
|
}
|
|
20766
20877
|
}
|
|
20767
20878
|
|
|
20768
|
-
},{}],
|
|
20879
|
+
},{}],190:[function(require,module,exports){
|
|
20769
20880
|
module.exports={
|
|
20770
20881
|
"title": "A JSON Schema for Swagger 2.0 API.",
|
|
20771
20882
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
@@ -21163,7 +21274,7 @@ module.exports={
|
|
|
21163
21274
|
}
|
|
21164
21275
|
}
|
|
21165
21276
|
|
|
21166
|
-
},{}],
|
|
21277
|
+
},{}],191:[function(require,module,exports){
|
|
21167
21278
|
module.exports={
|
|
21168
21279
|
"title": "A JSON Schema for Swagger 2.0 API.",
|
|
21169
21280
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
@@ -21561,7 +21672,7 @@ module.exports={
|
|
|
21561
21672
|
}
|
|
21562
21673
|
}
|
|
21563
21674
|
|
|
21564
|
-
},{}],
|
|
21675
|
+
},{}],192:[function(require,module,exports){
|
|
21565
21676
|
'use strict';
|
|
21566
21677
|
|
|
21567
21678
|
module.exports = {
|
|
@@ -21586,15 +21697,15 @@ module.exports = {
|
|
|
21586
21697
|
]
|
|
21587
21698
|
};
|
|
21588
21699
|
|
|
21589
|
-
},{}],
|
|
21590
|
-
arguments[4][
|
|
21591
|
-
},{"dup":
|
|
21700
|
+
},{}],193:[function(require,module,exports){
|
|
21701
|
+
arguments[4][188][0].apply(exports,arguments)
|
|
21702
|
+
},{"dup":188}],194:[function(require,module,exports){
|
|
21592
21703
|
module.exports={
|
|
21593
21704
|
"type": "integer"
|
|
21594
21705
|
}
|
|
21595
|
-
},{}],
|
|
21596
|
-
arguments[4][
|
|
21597
|
-
},{"dup":
|
|
21706
|
+
},{}],195:[function(require,module,exports){
|
|
21707
|
+
arguments[4][194][0].apply(exports,arguments)
|
|
21708
|
+
},{"dup":194}],196:[function(require,module,exports){
|
|
21598
21709
|
module.exports={
|
|
21599
21710
|
"integer": {
|
|
21600
21711
|
"type": "integer"
|
|
@@ -21603,7 +21714,7 @@ module.exports={
|
|
|
21603
21714
|
"$ref": "#/integer"
|
|
21604
21715
|
}
|
|
21605
21716
|
}
|
|
21606
|
-
},{}],
|
|
21717
|
+
},{}],197:[function(require,module,exports){
|
|
21607
21718
|
module.exports=[
|
|
21608
21719
|
{
|
|
21609
21720
|
"description": "additionalItems as schema",
|
|
@@ -21687,7 +21798,7 @@ module.exports=[
|
|
|
21687
21798
|
}
|
|
21688
21799
|
]
|
|
21689
21800
|
|
|
21690
|
-
},{}],
|
|
21801
|
+
},{}],198:[function(require,module,exports){
|
|
21691
21802
|
module.exports=[
|
|
21692
21803
|
{
|
|
21693
21804
|
"description":
|
|
@@ -21777,7 +21888,7 @@ module.exports=[
|
|
|
21777
21888
|
}
|
|
21778
21889
|
]
|
|
21779
21890
|
|
|
21780
|
-
},{}],
|
|
21891
|
+
},{}],199:[function(require,module,exports){
|
|
21781
21892
|
module.exports=[
|
|
21782
21893
|
{
|
|
21783
21894
|
"description": "allOf",
|
|
@@ -21891,7 +22002,7 @@ module.exports=[
|
|
|
21891
22002
|
}
|
|
21892
22003
|
]
|
|
21893
22004
|
|
|
21894
|
-
},{}],
|
|
22005
|
+
},{}],200:[function(require,module,exports){
|
|
21895
22006
|
module.exports=[
|
|
21896
22007
|
{
|
|
21897
22008
|
"description": "anyOf",
|
|
@@ -21961,7 +22072,7 @@ module.exports=[
|
|
|
21961
22072
|
}
|
|
21962
22073
|
]
|
|
21963
22074
|
|
|
21964
|
-
},{}],
|
|
22075
|
+
},{}],201:[function(require,module,exports){
|
|
21965
22076
|
module.exports=[
|
|
21966
22077
|
{
|
|
21967
22078
|
"description": "invalid type for default",
|
|
@@ -22012,7 +22123,7 @@ module.exports=[
|
|
|
22012
22123
|
}
|
|
22013
22124
|
]
|
|
22014
22125
|
|
|
22015
|
-
},{}],
|
|
22126
|
+
},{}],202:[function(require,module,exports){
|
|
22016
22127
|
module.exports=[
|
|
22017
22128
|
{
|
|
22018
22129
|
"description": "valid definition",
|
|
@@ -22046,7 +22157,7 @@ module.exports=[
|
|
|
22046
22157
|
}
|
|
22047
22158
|
]
|
|
22048
22159
|
|
|
22049
|
-
},{}],
|
|
22160
|
+
},{}],203:[function(require,module,exports){
|
|
22050
22161
|
module.exports=[
|
|
22051
22162
|
{
|
|
22052
22163
|
"description": "dependencies",
|
|
@@ -22161,7 +22272,7 @@ module.exports=[
|
|
|
22161
22272
|
}
|
|
22162
22273
|
]
|
|
22163
22274
|
|
|
22164
|
-
},{}],
|
|
22275
|
+
},{}],204:[function(require,module,exports){
|
|
22165
22276
|
module.exports=[
|
|
22166
22277
|
{
|
|
22167
22278
|
"description": "simple enum validation",
|
|
@@ -22235,7 +22346,7 @@ module.exports=[
|
|
|
22235
22346
|
}
|
|
22236
22347
|
]
|
|
22237
22348
|
|
|
22238
|
-
},{}],
|
|
22349
|
+
},{}],205:[function(require,module,exports){
|
|
22239
22350
|
module.exports=[
|
|
22240
22351
|
{
|
|
22241
22352
|
"description": "a schema given for items",
|
|
@@ -22283,7 +22394,7 @@ module.exports=[
|
|
|
22283
22394
|
}
|
|
22284
22395
|
]
|
|
22285
22396
|
|
|
22286
|
-
},{}],
|
|
22397
|
+
},{}],206:[function(require,module,exports){
|
|
22287
22398
|
module.exports=[
|
|
22288
22399
|
{
|
|
22289
22400
|
"description": "maxItems validation",
|
|
@@ -22313,7 +22424,7 @@ module.exports=[
|
|
|
22313
22424
|
}
|
|
22314
22425
|
]
|
|
22315
22426
|
|
|
22316
|
-
},{}],
|
|
22427
|
+
},{}],207:[function(require,module,exports){
|
|
22317
22428
|
module.exports=[
|
|
22318
22429
|
{
|
|
22319
22430
|
"description": "maxLength validation",
|
|
@@ -22348,7 +22459,7 @@ module.exports=[
|
|
|
22348
22459
|
}
|
|
22349
22460
|
]
|
|
22350
22461
|
|
|
22351
|
-
},{}],
|
|
22462
|
+
},{}],208:[function(require,module,exports){
|
|
22352
22463
|
module.exports=[
|
|
22353
22464
|
{
|
|
22354
22465
|
"description": "maxProperties validation",
|
|
@@ -22378,7 +22489,7 @@ module.exports=[
|
|
|
22378
22489
|
}
|
|
22379
22490
|
]
|
|
22380
22491
|
|
|
22381
|
-
},{}],
|
|
22492
|
+
},{}],209:[function(require,module,exports){
|
|
22382
22493
|
module.exports=[
|
|
22383
22494
|
{
|
|
22384
22495
|
"description": "maximum validation",
|
|
@@ -22422,7 +22533,7 @@ module.exports=[
|
|
|
22422
22533
|
}
|
|
22423
22534
|
]
|
|
22424
22535
|
|
|
22425
|
-
},{}],
|
|
22536
|
+
},{}],210:[function(require,module,exports){
|
|
22426
22537
|
module.exports=[
|
|
22427
22538
|
{
|
|
22428
22539
|
"description": "minItems validation",
|
|
@@ -22452,7 +22563,7 @@ module.exports=[
|
|
|
22452
22563
|
}
|
|
22453
22564
|
]
|
|
22454
22565
|
|
|
22455
|
-
},{}],
|
|
22566
|
+
},{}],211:[function(require,module,exports){
|
|
22456
22567
|
module.exports=[
|
|
22457
22568
|
{
|
|
22458
22569
|
"description": "minLength validation",
|
|
@@ -22487,7 +22598,7 @@ module.exports=[
|
|
|
22487
22598
|
}
|
|
22488
22599
|
]
|
|
22489
22600
|
|
|
22490
|
-
},{}],
|
|
22601
|
+
},{}],212:[function(require,module,exports){
|
|
22491
22602
|
module.exports=[
|
|
22492
22603
|
{
|
|
22493
22604
|
"description": "minProperties validation",
|
|
@@ -22517,7 +22628,7 @@ module.exports=[
|
|
|
22517
22628
|
}
|
|
22518
22629
|
]
|
|
22519
22630
|
|
|
22520
|
-
},{}],
|
|
22631
|
+
},{}],213:[function(require,module,exports){
|
|
22521
22632
|
module.exports=[
|
|
22522
22633
|
{
|
|
22523
22634
|
"description": "minimum validation",
|
|
@@ -22561,7 +22672,7 @@ module.exports=[
|
|
|
22561
22672
|
}
|
|
22562
22673
|
]
|
|
22563
22674
|
|
|
22564
|
-
},{}],
|
|
22675
|
+
},{}],214:[function(require,module,exports){
|
|
22565
22676
|
module.exports=[
|
|
22566
22677
|
{
|
|
22567
22678
|
"description": "by int",
|
|
@@ -22623,7 +22734,7 @@ module.exports=[
|
|
|
22623
22734
|
}
|
|
22624
22735
|
]
|
|
22625
22736
|
|
|
22626
|
-
},{}],
|
|
22737
|
+
},{}],215:[function(require,module,exports){
|
|
22627
22738
|
module.exports=[
|
|
22628
22739
|
{
|
|
22629
22740
|
"description": "not",
|
|
@@ -22721,7 +22832,7 @@ module.exports=[
|
|
|
22721
22832
|
|
|
22722
22833
|
]
|
|
22723
22834
|
|
|
22724
|
-
},{}],
|
|
22835
|
+
},{}],216:[function(require,module,exports){
|
|
22725
22836
|
module.exports=[
|
|
22726
22837
|
{
|
|
22727
22838
|
"description": "oneOf",
|
|
@@ -22791,7 +22902,7 @@ module.exports=[
|
|
|
22791
22902
|
}
|
|
22792
22903
|
]
|
|
22793
22904
|
|
|
22794
|
-
},{}],
|
|
22905
|
+
},{}],217:[function(require,module,exports){
|
|
22795
22906
|
module.exports=[
|
|
22796
22907
|
{
|
|
22797
22908
|
"description": "integer",
|
|
@@ -22900,7 +23011,7 @@ module.exports=[
|
|
|
22900
23011
|
}
|
|
22901
23012
|
]
|
|
22902
23013
|
|
|
22903
|
-
},{}],
|
|
23014
|
+
},{}],218:[function(require,module,exports){
|
|
22904
23015
|
module.exports=[
|
|
22905
23016
|
{
|
|
22906
23017
|
"description": "validation of date-time strings",
|
|
@@ -23045,7 +23156,7 @@ module.exports=[
|
|
|
23045
23156
|
}
|
|
23046
23157
|
]
|
|
23047
23158
|
|
|
23048
|
-
},{}],
|
|
23159
|
+
},{}],219:[function(require,module,exports){
|
|
23049
23160
|
module.exports=[
|
|
23050
23161
|
{
|
|
23051
23162
|
"description": "pattern validation",
|
|
@@ -23070,7 +23181,7 @@ module.exports=[
|
|
|
23070
23181
|
}
|
|
23071
23182
|
]
|
|
23072
23183
|
|
|
23073
|
-
},{}],
|
|
23184
|
+
},{}],220:[function(require,module,exports){
|
|
23074
23185
|
module.exports=[
|
|
23075
23186
|
{
|
|
23076
23187
|
"description":
|
|
@@ -23182,7 +23293,7 @@ module.exports=[
|
|
|
23182
23293
|
}
|
|
23183
23294
|
]
|
|
23184
23295
|
|
|
23185
|
-
},{}],
|
|
23296
|
+
},{}],221:[function(require,module,exports){
|
|
23186
23297
|
module.exports=[
|
|
23187
23298
|
{
|
|
23188
23299
|
"description": "object properties validation",
|
|
@@ -23276,7 +23387,7 @@ module.exports=[
|
|
|
23276
23387
|
}
|
|
23277
23388
|
]
|
|
23278
23389
|
|
|
23279
|
-
},{}],
|
|
23390
|
+
},{}],222:[function(require,module,exports){
|
|
23280
23391
|
module.exports=[
|
|
23281
23392
|
{
|
|
23282
23393
|
"description": "root pointer ref",
|
|
@@ -23422,7 +23533,7 @@ module.exports=[
|
|
|
23422
23533
|
}
|
|
23423
23534
|
]
|
|
23424
23535
|
|
|
23425
|
-
},{}],
|
|
23536
|
+
},{}],223:[function(require,module,exports){
|
|
23426
23537
|
module.exports=[
|
|
23427
23538
|
{
|
|
23428
23539
|
"description": "remote ref",
|
|
@@ -23498,7 +23609,7 @@ module.exports=[
|
|
|
23498
23609
|
}
|
|
23499
23610
|
]
|
|
23500
23611
|
|
|
23501
|
-
},{}],
|
|
23612
|
+
},{}],224:[function(require,module,exports){
|
|
23502
23613
|
module.exports=[
|
|
23503
23614
|
{
|
|
23504
23615
|
"description": "required validation",
|
|
@@ -23539,7 +23650,7 @@ module.exports=[
|
|
|
23539
23650
|
}
|
|
23540
23651
|
]
|
|
23541
23652
|
|
|
23542
|
-
},{}],
|
|
23653
|
+
},{}],225:[function(require,module,exports){
|
|
23543
23654
|
module.exports=[
|
|
23544
23655
|
{
|
|
23545
23656
|
"description": "integer type matches integers",
|
|
@@ -23871,7 +23982,7 @@ module.exports=[
|
|
|
23871
23982
|
}
|
|
23872
23983
|
]
|
|
23873
23984
|
|
|
23874
|
-
},{}],
|
|
23985
|
+
},{}],226:[function(require,module,exports){
|
|
23875
23986
|
module.exports=[
|
|
23876
23987
|
{
|
|
23877
23988
|
"description": "uniqueItems validation",
|
|
@@ -23952,7 +24063,7 @@ module.exports=[
|
|
|
23952
24063
|
}
|
|
23953
24064
|
]
|
|
23954
24065
|
|
|
23955
|
-
},{}],
|
|
24066
|
+
},{}],227:[function(require,module,exports){
|
|
23956
24067
|
"use strict";
|
|
23957
24068
|
|
|
23958
24069
|
var isBrowser = typeof window !== "undefined";
|
|
@@ -24045,7 +24156,7 @@ describe("Automatic schema loading", function () {
|
|
|
24045
24156
|
|
|
24046
24157
|
});
|
|
24047
24158
|
|
|
24048
|
-
},{"../../src/ZSchema":
|
|
24159
|
+
},{"../../src/ZSchema":119,"https":7}],228:[function(require,module,exports){
|
|
24049
24160
|
"use strict";
|
|
24050
24161
|
|
|
24051
24162
|
var ZSchema = require("../../src/ZSchema");
|
|
@@ -24117,7 +24228,7 @@ describe("Basic", function () {
|
|
|
24117
24228
|
|
|
24118
24229
|
});
|
|
24119
24230
|
|
|
24120
|
-
},{"../../src/ZSchema":
|
|
24231
|
+
},{"../../src/ZSchema":119,"../files/draft-04-schema.json":193,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":194,"../jsonSchemaTestSuite/remotes/integer.json":195,"../jsonSchemaTestSuite/remotes/subSchemas.json":196}],229:[function(require,module,exports){
|
|
24121
24232
|
"use strict";
|
|
24122
24233
|
|
|
24123
24234
|
var ZSchema = require("../../src/ZSchema");
|
|
@@ -24213,7 +24324,7 @@ describe("JsonSchemaTestSuite", function () {
|
|
|
24213
24324
|
|
|
24214
24325
|
});
|
|
24215
24326
|
|
|
24216
|
-
},{"../../src/ZSchema":
|
|
24327
|
+
},{"../../src/ZSchema":119,"../files/draft-04-schema.json":193,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":194,"../jsonSchemaTestSuite/remotes/integer.json":195,"../jsonSchemaTestSuite/remotes/subSchemas.json":196,"../jsonSchemaTestSuite/tests/draft4/additionalItems.json":197,"../jsonSchemaTestSuite/tests/draft4/additionalProperties.json":198,"../jsonSchemaTestSuite/tests/draft4/allOf.json":199,"../jsonSchemaTestSuite/tests/draft4/anyOf.json":200,"../jsonSchemaTestSuite/tests/draft4/default.json":201,"../jsonSchemaTestSuite/tests/draft4/definitions.json":202,"../jsonSchemaTestSuite/tests/draft4/dependencies.json":203,"../jsonSchemaTestSuite/tests/draft4/enum.json":204,"../jsonSchemaTestSuite/tests/draft4/items.json":205,"../jsonSchemaTestSuite/tests/draft4/maxItems.json":206,"../jsonSchemaTestSuite/tests/draft4/maxLength.json":207,"../jsonSchemaTestSuite/tests/draft4/maxProperties.json":208,"../jsonSchemaTestSuite/tests/draft4/maximum.json":209,"../jsonSchemaTestSuite/tests/draft4/minItems.json":210,"../jsonSchemaTestSuite/tests/draft4/minLength.json":211,"../jsonSchemaTestSuite/tests/draft4/minProperties.json":212,"../jsonSchemaTestSuite/tests/draft4/minimum.json":213,"../jsonSchemaTestSuite/tests/draft4/multipleOf.json":214,"../jsonSchemaTestSuite/tests/draft4/not.json":215,"../jsonSchemaTestSuite/tests/draft4/oneOf.json":216,"../jsonSchemaTestSuite/tests/draft4/optional/bignum.json":217,"../jsonSchemaTestSuite/tests/draft4/optional/format.json":218,"../jsonSchemaTestSuite/tests/draft4/pattern.json":219,"../jsonSchemaTestSuite/tests/draft4/patternProperties.json":220,"../jsonSchemaTestSuite/tests/draft4/properties.json":221,"../jsonSchemaTestSuite/tests/draft4/ref.json":222,"../jsonSchemaTestSuite/tests/draft4/refRemote.json":223,"../jsonSchemaTestSuite/tests/draft4/required.json":224,"../jsonSchemaTestSuite/tests/draft4/type.json":225,"../jsonSchemaTestSuite/tests/draft4/uniqueItems.json":226}],230:[function(require,module,exports){
|
|
24217
24328
|
"use strict";
|
|
24218
24329
|
|
|
24219
24330
|
var ZSchema = require("../../src/ZSchema");
|
|
@@ -24229,12 +24340,12 @@ describe("Using multiple instances of Z-Schema", function () {
|
|
|
24229
24340
|
"options": {
|
|
24230
24341
|
"enum": ["a", "b", "c"]
|
|
24231
24342
|
}
|
|
24232
|
-
}
|
|
24233
|
-
"additionalProperties": false
|
|
24343
|
+
}
|
|
24234
24344
|
};
|
|
24235
24345
|
|
|
24236
24346
|
var v;
|
|
24237
24347
|
v = new ZSchema({ strictMode: true });
|
|
24348
|
+
// Should fail because "additionalProperties" is missing
|
|
24238
24349
|
expect(v.validateSchema(schema)).toBe(false, "1st");
|
|
24239
24350
|
|
|
24240
24351
|
v = new ZSchema();
|
|
@@ -24247,7 +24358,7 @@ describe("Using multiple instances of Z-Schema", function () {
|
|
|
24247
24358
|
|
|
24248
24359
|
});
|
|
24249
24360
|
|
|
24250
|
-
},{"../../src/ZSchema":
|
|
24361
|
+
},{"../../src/ZSchema":119}],231:[function(require,module,exports){
|
|
24251
24362
|
/*jshint -W030 */
|
|
24252
24363
|
|
|
24253
24364
|
"use strict";
|
|
@@ -24445,7 +24556,7 @@ describe("ZSchemaTestSuite", function () {
|
|
|
24445
24556
|
|
|
24446
24557
|
});
|
|
24447
24558
|
|
|
24448
|
-
},{"../../src/ZSchema":
|
|
24559
|
+
},{"../../src/ZSchema":119,"../ZSchemaTestSuite/AssumeAdditional.js":122,"../ZSchemaTestSuite/CustomFormats.js":123,"../ZSchemaTestSuite/CustomFormatsAsync.js":124,"../ZSchemaTestSuite/CustomValidator.js":125,"../ZSchemaTestSuite/ErrorPathAsArray.js":126,"../ZSchemaTestSuite/ErrorPathAsJSONPointer.js":127,"../ZSchemaTestSuite/ForceAdditional.js":128,"../ZSchemaTestSuite/ForceItems.js":129,"../ZSchemaTestSuite/ForceMaxItems.js":130,"../ZSchemaTestSuite/ForceMaxLength.js":131,"../ZSchemaTestSuite/ForceMinItems.js":132,"../ZSchemaTestSuite/ForceMinLength.js":133,"../ZSchemaTestSuite/ForceProperties.js":134,"../ZSchemaTestSuite/IgnoreUnresolvableReferences.js":135,"../ZSchemaTestSuite/InvalidId.js":136,"../ZSchemaTestSuite/Issue101.js":137,"../ZSchemaTestSuite/Issue102.js":138,"../ZSchemaTestSuite/Issue103.js":139,"../ZSchemaTestSuite/Issue106.js":140,"../ZSchemaTestSuite/Issue107.js":141,"../ZSchemaTestSuite/Issue12.js":142,"../ZSchemaTestSuite/Issue121.js":143,"../ZSchemaTestSuite/Issue125.js":144,"../ZSchemaTestSuite/Issue126.js":145,"../ZSchemaTestSuite/Issue13.js":146,"../ZSchemaTestSuite/Issue130.js":147,"../ZSchemaTestSuite/Issue131.js":148,"../ZSchemaTestSuite/Issue137.js":149,"../ZSchemaTestSuite/Issue139.js":150,"../ZSchemaTestSuite/Issue142.js":151,"../ZSchemaTestSuite/Issue146.js":152,"../ZSchemaTestSuite/Issue151.js":153,"../ZSchemaTestSuite/Issue16.js":154,"../ZSchemaTestSuite/Issue22.js":155,"../ZSchemaTestSuite/Issue25.js":156,"../ZSchemaTestSuite/Issue26.js":157,"../ZSchemaTestSuite/Issue37.js":158,"../ZSchemaTestSuite/Issue40.js":159,"../ZSchemaTestSuite/Issue41.js":160,"../ZSchemaTestSuite/Issue43.js":161,"../ZSchemaTestSuite/Issue44.js":162,"../ZSchemaTestSuite/Issue45.js":163,"../ZSchemaTestSuite/Issue47.js":164,"../ZSchemaTestSuite/Issue48.js":165,"../ZSchemaTestSuite/Issue49.js":166,"../ZSchemaTestSuite/Issue53.js":167,"../ZSchemaTestSuite/Issue56.js":168,"../ZSchemaTestSuite/Issue57.js":169,"../ZSchemaTestSuite/Issue58.js":170,"../ZSchemaTestSuite/Issue63.js":171,"../ZSchemaTestSuite/Issue64.js":172,"../ZSchemaTestSuite/Issue67.js":173,"../ZSchemaTestSuite/Issue71.js":174,"../ZSchemaTestSuite/Issue73.js":175,"../ZSchemaTestSuite/Issue76.js":176,"../ZSchemaTestSuite/Issue85.js":177,"../ZSchemaTestSuite/Issue94.js":178,"../ZSchemaTestSuite/Issue96.js":179,"../ZSchemaTestSuite/Issue98.js":180,"../ZSchemaTestSuite/MultipleSchemas.js":181,"../ZSchemaTestSuite/NoEmptyArrays.js":182,"../ZSchemaTestSuite/NoEmptyStrings.js":183,"../ZSchemaTestSuite/NoExtraKeywords.js":184,"../ZSchemaTestSuite/NoTypeless.js":185,"../ZSchemaTestSuite/PedanticCheck.js":186,"../ZSchemaTestSuite/StrictUris.js":187,"../ZSchemaTestSuite/getRegisteredFormats.js":192}],232:[function(require,module,exports){
|
|
24449
24560
|
"use strict";
|
|
24450
24561
|
|
|
24451
24562
|
var ZSchema = require("../../src/ZSchema");
|
|
@@ -24544,4 +24655,4 @@ describe("Using path to schema as a third argument", function () {
|
|
|
24544
24655
|
|
|
24545
24656
|
});
|
|
24546
24657
|
|
|
24547
|
-
},{"../../src/ZSchema":
|
|
24658
|
+
},{"../../src/ZSchema":119}]},{},[227,228,229,230,232,231]);
|