z-schema 3.24.0 → 3.24.1
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 +183 -83
- package/dist/ZSchema-browser.js +11 -2
- package/package.json +1 -1
- package/src/Utils.js +11 -2
|
@@ -17035,6 +17035,15 @@ exports.jsonSymbol = Symbol.for("z-schema/json");
|
|
|
17035
17035
|
|
|
17036
17036
|
exports.schemaSymbol = Symbol.for("z-schema/schema");
|
|
17037
17037
|
|
|
17038
|
+
/**
|
|
17039
|
+
* @param {object} obj
|
|
17040
|
+
*
|
|
17041
|
+
* @returns {string[]}
|
|
17042
|
+
*/
|
|
17043
|
+
var sortedKeys = exports.sortedKeys = function (obj) {
|
|
17044
|
+
return Object.keys(obj).sort();
|
|
17045
|
+
};
|
|
17046
|
+
|
|
17038
17047
|
/**
|
|
17039
17048
|
*
|
|
17040
17049
|
* @param {string} uri
|
|
@@ -17139,8 +17148,8 @@ exports.areEqual = function areEqual(json1, json2, options) {
|
|
|
17139
17148
|
// both are objects, and:
|
|
17140
17149
|
if (exports.whatIs(json1) === "object" && exports.whatIs(json2) === "object") {
|
|
17141
17150
|
// have the same set of property names; and
|
|
17142
|
-
var keys1 =
|
|
17143
|
-
var keys2 =
|
|
17151
|
+
var keys1 = sortedKeys(json1);
|
|
17152
|
+
var keys2 = sortedKeys(json2);
|
|
17144
17153
|
if (!areEqual(keys1, keys2, { caseInsensitiveComparison: caseInsensitiveComparison })) {
|
|
17145
17154
|
return false;
|
|
17146
17155
|
}
|
|
@@ -19587,6 +19596,96 @@ module.exports = {
|
|
|
19587
19596
|
},{}],215:[function(require,module,exports){
|
|
19588
19597
|
"use strict";
|
|
19589
19598
|
|
|
19599
|
+
module.exports = {
|
|
19600
|
+
description: "Issue #222 - Object.keys() does not guarantee order",
|
|
19601
|
+
tests: [
|
|
19602
|
+
{
|
|
19603
|
+
description: "should pass",
|
|
19604
|
+
schema: {
|
|
19605
|
+
"type":"object",
|
|
19606
|
+
"oneOf": [
|
|
19607
|
+
{
|
|
19608
|
+
"type": "object",
|
|
19609
|
+
"properties": {
|
|
19610
|
+
"code": {
|
|
19611
|
+
"type": "string"
|
|
19612
|
+
},
|
|
19613
|
+
"libelle": {
|
|
19614
|
+
"type": "string"
|
|
19615
|
+
}
|
|
19616
|
+
},
|
|
19617
|
+
"enum": [
|
|
19618
|
+
{
|
|
19619
|
+
"code": "null",
|
|
19620
|
+
"libelle": "null"
|
|
19621
|
+
}
|
|
19622
|
+
]
|
|
19623
|
+
},
|
|
19624
|
+
{
|
|
19625
|
+
"type": "object",
|
|
19626
|
+
"properties": {
|
|
19627
|
+
"code": {
|
|
19628
|
+
"type": "string"
|
|
19629
|
+
},
|
|
19630
|
+
"libelle": {
|
|
19631
|
+
"type": "string"
|
|
19632
|
+
}
|
|
19633
|
+
},
|
|
19634
|
+
"enum": [
|
|
19635
|
+
{
|
|
19636
|
+
"code": "0",
|
|
19637
|
+
"libelle": "Choice 1"
|
|
19638
|
+
}
|
|
19639
|
+
]
|
|
19640
|
+
},
|
|
19641
|
+
{
|
|
19642
|
+
"type": "object",
|
|
19643
|
+
"properties": {
|
|
19644
|
+
"code": {
|
|
19645
|
+
"type": "string"
|
|
19646
|
+
},
|
|
19647
|
+
"libelle": {
|
|
19648
|
+
"type": "string"
|
|
19649
|
+
}
|
|
19650
|
+
},
|
|
19651
|
+
"enum": [
|
|
19652
|
+
{
|
|
19653
|
+
"code": "1",
|
|
19654
|
+
"libelle": "Choice 2"
|
|
19655
|
+
}
|
|
19656
|
+
]
|
|
19657
|
+
},
|
|
19658
|
+
{
|
|
19659
|
+
"type": "object",
|
|
19660
|
+
"properties": {
|
|
19661
|
+
"code": {
|
|
19662
|
+
"type": "string"
|
|
19663
|
+
},
|
|
19664
|
+
"libelle": {
|
|
19665
|
+
"type": "string"
|
|
19666
|
+
}
|
|
19667
|
+
},
|
|
19668
|
+
"enum": [
|
|
19669
|
+
{
|
|
19670
|
+
"code": "2",
|
|
19671
|
+
"libelle": "Choice 3"
|
|
19672
|
+
}
|
|
19673
|
+
]
|
|
19674
|
+
}
|
|
19675
|
+
]
|
|
19676
|
+
},
|
|
19677
|
+
data: {
|
|
19678
|
+
"code": "2",
|
|
19679
|
+
"libelle": "Choice 3"
|
|
19680
|
+
},
|
|
19681
|
+
valid: true
|
|
19682
|
+
}
|
|
19683
|
+
]
|
|
19684
|
+
};
|
|
19685
|
+
|
|
19686
|
+
},{}],216:[function(require,module,exports){
|
|
19687
|
+
"use strict";
|
|
19688
|
+
|
|
19590
19689
|
module.exports = {
|
|
19591
19690
|
description: "Issue #25 - hostname format behaviour",
|
|
19592
19691
|
tests: [
|
|
@@ -19620,7 +19719,7 @@ module.exports = {
|
|
|
19620
19719
|
]
|
|
19621
19720
|
};
|
|
19622
19721
|
|
|
19623
|
-
},{}],
|
|
19722
|
+
},{}],217:[function(require,module,exports){
|
|
19624
19723
|
"use strict";
|
|
19625
19724
|
|
|
19626
19725
|
module.exports = {
|
|
@@ -19710,7 +19809,7 @@ module.exports = {
|
|
|
19710
19809
|
]
|
|
19711
19810
|
};
|
|
19712
19811
|
|
|
19713
|
-
},{}],
|
|
19812
|
+
},{}],218:[function(require,module,exports){
|
|
19714
19813
|
"use strict";
|
|
19715
19814
|
|
|
19716
19815
|
module.exports = {
|
|
@@ -19735,7 +19834,7 @@ module.exports = {
|
|
|
19735
19834
|
]
|
|
19736
19835
|
};
|
|
19737
19836
|
|
|
19738
|
-
},{}],
|
|
19837
|
+
},{}],219:[function(require,module,exports){
|
|
19739
19838
|
"use strict";
|
|
19740
19839
|
|
|
19741
19840
|
module.exports = {
|
|
@@ -19811,7 +19910,7 @@ module.exports = {
|
|
|
19811
19910
|
]
|
|
19812
19911
|
};
|
|
19813
19912
|
|
|
19814
|
-
},{}],
|
|
19913
|
+
},{}],220:[function(require,module,exports){
|
|
19815
19914
|
"use strict";
|
|
19816
19915
|
|
|
19817
19916
|
module.exports = {
|
|
@@ -19924,7 +20023,7 @@ module.exports = {
|
|
|
19924
20023
|
]
|
|
19925
20024
|
};
|
|
19926
20025
|
|
|
19927
|
-
},{}],
|
|
20026
|
+
},{}],221:[function(require,module,exports){
|
|
19928
20027
|
"use strict";
|
|
19929
20028
|
|
|
19930
20029
|
module.exports = {
|
|
@@ -20104,7 +20203,7 @@ module.exports = {
|
|
|
20104
20203
|
]
|
|
20105
20204
|
};
|
|
20106
20205
|
|
|
20107
|
-
},{}],
|
|
20206
|
+
},{}],222:[function(require,module,exports){
|
|
20108
20207
|
"use strict";
|
|
20109
20208
|
|
|
20110
20209
|
module.exports = {
|
|
@@ -20151,7 +20250,7 @@ module.exports = {
|
|
|
20151
20250
|
]
|
|
20152
20251
|
};
|
|
20153
20252
|
|
|
20154
|
-
},{}],
|
|
20253
|
+
},{}],223:[function(require,module,exports){
|
|
20155
20254
|
"use strict";
|
|
20156
20255
|
|
|
20157
20256
|
var resourceObject = {
|
|
@@ -20447,7 +20546,7 @@ module.exports = {
|
|
|
20447
20546
|
]
|
|
20448
20547
|
};
|
|
20449
20548
|
|
|
20450
|
-
},{}],
|
|
20549
|
+
},{}],224:[function(require,module,exports){
|
|
20451
20550
|
"use strict";
|
|
20452
20551
|
|
|
20453
20552
|
var draft4 = require("./files/Issue47/draft4.json");
|
|
@@ -20476,7 +20575,7 @@ module.exports = {
|
|
|
20476
20575
|
]
|
|
20477
20576
|
};
|
|
20478
20577
|
|
|
20479
|
-
},{"./files/Issue47/draft4.json":
|
|
20578
|
+
},{"./files/Issue47/draft4.json":248,"./files/Issue47/sample.json":249,"./files/Issue47/swagger_draft.json":250,"./files/Issue47/swagger_draft_modified.json":251}],225:[function(require,module,exports){
|
|
20480
20579
|
"use strict";
|
|
20481
20580
|
|
|
20482
20581
|
module.exports = {
|
|
@@ -20509,7 +20608,7 @@ module.exports = {
|
|
|
20509
20608
|
]
|
|
20510
20609
|
};
|
|
20511
20610
|
|
|
20512
|
-
},{}],
|
|
20611
|
+
},{}],226:[function(require,module,exports){
|
|
20513
20612
|
"use strict";
|
|
20514
20613
|
|
|
20515
20614
|
module.exports = {
|
|
@@ -20527,7 +20626,7 @@ module.exports = {
|
|
|
20527
20626
|
]
|
|
20528
20627
|
};
|
|
20529
20628
|
|
|
20530
|
-
},{}],
|
|
20629
|
+
},{}],227:[function(require,module,exports){
|
|
20531
20630
|
"use strict";
|
|
20532
20631
|
|
|
20533
20632
|
module.exports = {
|
|
@@ -20549,7 +20648,7 @@ module.exports = {
|
|
|
20549
20648
|
]
|
|
20550
20649
|
};
|
|
20551
20650
|
|
|
20552
|
-
},{}],
|
|
20651
|
+
},{}],228:[function(require,module,exports){
|
|
20553
20652
|
"use strict";
|
|
20554
20653
|
|
|
20555
20654
|
module.exports = {
|
|
@@ -20620,7 +20719,7 @@ module.exports = {
|
|
|
20620
20719
|
]
|
|
20621
20720
|
};
|
|
20622
20721
|
|
|
20623
|
-
},{}],
|
|
20722
|
+
},{}],229:[function(require,module,exports){
|
|
20624
20723
|
"use strict";
|
|
20625
20724
|
|
|
20626
20725
|
var dataTypeBaseJson = {
|
|
@@ -21305,7 +21404,7 @@ module.exports = {
|
|
|
21305
21404
|
]
|
|
21306
21405
|
};
|
|
21307
21406
|
|
|
21308
|
-
},{}],
|
|
21407
|
+
},{}],230:[function(require,module,exports){
|
|
21309
21408
|
"use strict";
|
|
21310
21409
|
|
|
21311
21410
|
module.exports = {
|
|
@@ -21368,7 +21467,7 @@ module.exports = {
|
|
|
21368
21467
|
]
|
|
21369
21468
|
};
|
|
21370
21469
|
|
|
21371
|
-
},{}],
|
|
21470
|
+
},{}],231:[function(require,module,exports){
|
|
21372
21471
|
/*jshint -W101*/
|
|
21373
21472
|
|
|
21374
21473
|
"use strict";
|
|
@@ -21945,7 +22044,7 @@ module.exports = {
|
|
|
21945
22044
|
]
|
|
21946
22045
|
};
|
|
21947
22046
|
|
|
21948
|
-
},{}],
|
|
22047
|
+
},{}],232:[function(require,module,exports){
|
|
21949
22048
|
"use strict";
|
|
21950
22049
|
|
|
21951
22050
|
module.exports = {
|
|
@@ -21976,7 +22075,7 @@ module.exports = {
|
|
|
21976
22075
|
]
|
|
21977
22076
|
};
|
|
21978
22077
|
|
|
21979
|
-
},{}],
|
|
22078
|
+
},{}],233:[function(require,module,exports){
|
|
21980
22079
|
"use strict";
|
|
21981
22080
|
|
|
21982
22081
|
module.exports = {
|
|
@@ -22027,7 +22126,7 @@ module.exports = {
|
|
|
22027
22126
|
]
|
|
22028
22127
|
};
|
|
22029
22128
|
|
|
22030
|
-
},{}],
|
|
22129
|
+
},{}],234:[function(require,module,exports){
|
|
22031
22130
|
"use strict";
|
|
22032
22131
|
|
|
22033
22132
|
module.exports = {
|
|
@@ -22147,7 +22246,7 @@ module.exports = {
|
|
|
22147
22246
|
]
|
|
22148
22247
|
};
|
|
22149
22248
|
|
|
22150
|
-
},{}],
|
|
22249
|
+
},{}],235:[function(require,module,exports){
|
|
22151
22250
|
"use strict";
|
|
22152
22251
|
|
|
22153
22252
|
module.exports = {
|
|
@@ -22205,7 +22304,7 @@ module.exports = {
|
|
|
22205
22304
|
]
|
|
22206
22305
|
};
|
|
22207
22306
|
|
|
22208
|
-
},{}],
|
|
22307
|
+
},{}],236:[function(require,module,exports){
|
|
22209
22308
|
"use strict";
|
|
22210
22309
|
|
|
22211
22310
|
module.exports = {
|
|
@@ -22278,7 +22377,7 @@ module.exports = {
|
|
|
22278
22377
|
]
|
|
22279
22378
|
};
|
|
22280
22379
|
|
|
22281
|
-
},{}],
|
|
22380
|
+
},{}],237:[function(require,module,exports){
|
|
22282
22381
|
"use strict";
|
|
22283
22382
|
|
|
22284
22383
|
var innerSchema = {
|
|
@@ -22323,7 +22422,7 @@ module.exports = {
|
|
|
22323
22422
|
]
|
|
22324
22423
|
};
|
|
22325
22424
|
|
|
22326
|
-
},{}],
|
|
22425
|
+
},{}],238:[function(require,module,exports){
|
|
22327
22426
|
"use strict";
|
|
22328
22427
|
|
|
22329
22428
|
var schema1 = {
|
|
@@ -22367,7 +22466,7 @@ module.exports = {
|
|
|
22367
22466
|
]
|
|
22368
22467
|
};
|
|
22369
22468
|
|
|
22370
|
-
},{}],
|
|
22469
|
+
},{}],239:[function(require,module,exports){
|
|
22371
22470
|
"use strict";
|
|
22372
22471
|
|
|
22373
22472
|
module.exports = {
|
|
@@ -22385,7 +22484,7 @@ module.exports = {
|
|
|
22385
22484
|
]
|
|
22386
22485
|
};
|
|
22387
22486
|
|
|
22388
|
-
},{}],
|
|
22487
|
+
},{}],240:[function(require,module,exports){
|
|
22389
22488
|
"use strict";
|
|
22390
22489
|
|
|
22391
22490
|
module.exports = {
|
|
@@ -22417,7 +22516,7 @@ module.exports = {
|
|
|
22417
22516
|
]
|
|
22418
22517
|
};
|
|
22419
22518
|
|
|
22420
|
-
},{}],
|
|
22519
|
+
},{}],241:[function(require,module,exports){
|
|
22421
22520
|
"use strict";
|
|
22422
22521
|
|
|
22423
22522
|
module.exports = {
|
|
@@ -22476,7 +22575,7 @@ module.exports = {
|
|
|
22476
22575
|
]
|
|
22477
22576
|
};
|
|
22478
22577
|
|
|
22479
|
-
},{}],
|
|
22578
|
+
},{}],242:[function(require,module,exports){
|
|
22480
22579
|
"use strict";
|
|
22481
22580
|
|
|
22482
22581
|
module.exports = {
|
|
@@ -22501,7 +22600,7 @@ module.exports = {
|
|
|
22501
22600
|
]
|
|
22502
22601
|
};
|
|
22503
22602
|
|
|
22504
|
-
},{}],
|
|
22603
|
+
},{}],243:[function(require,module,exports){
|
|
22505
22604
|
"use strict";
|
|
22506
22605
|
|
|
22507
22606
|
module.exports = {
|
|
@@ -22526,7 +22625,7 @@ module.exports = {
|
|
|
22526
22625
|
]
|
|
22527
22626
|
};
|
|
22528
22627
|
|
|
22529
|
-
},{}],
|
|
22628
|
+
},{}],244:[function(require,module,exports){
|
|
22530
22629
|
"use strict";
|
|
22531
22630
|
|
|
22532
22631
|
module.exports = {
|
|
@@ -22571,7 +22670,7 @@ module.exports = {
|
|
|
22571
22670
|
]
|
|
22572
22671
|
};
|
|
22573
22672
|
|
|
22574
|
-
},{}],
|
|
22673
|
+
},{}],245:[function(require,module,exports){
|
|
22575
22674
|
"use strict";
|
|
22576
22675
|
|
|
22577
22676
|
module.exports = {
|
|
@@ -22596,7 +22695,7 @@ module.exports = {
|
|
|
22596
22695
|
]
|
|
22597
22696
|
};
|
|
22598
22697
|
|
|
22599
|
-
},{}],
|
|
22698
|
+
},{}],246:[function(require,module,exports){
|
|
22600
22699
|
"use strict";
|
|
22601
22700
|
|
|
22602
22701
|
module.exports = {
|
|
@@ -22635,7 +22734,7 @@ module.exports = {
|
|
|
22635
22734
|
]
|
|
22636
22735
|
};
|
|
22637
22736
|
|
|
22638
|
-
},{}],
|
|
22737
|
+
},{}],247:[function(require,module,exports){
|
|
22639
22738
|
"use strict";
|
|
22640
22739
|
|
|
22641
22740
|
module.exports = {
|
|
@@ -22665,7 +22764,7 @@ module.exports = {
|
|
|
22665
22764
|
]
|
|
22666
22765
|
};
|
|
22667
22766
|
|
|
22668
|
-
},{}],
|
|
22767
|
+
},{}],248:[function(require,module,exports){
|
|
22669
22768
|
module.exports={
|
|
22670
22769
|
"id": "http://json-schema.org/draft-04/schema#",
|
|
22671
22770
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
@@ -22817,7 +22916,7 @@ module.exports={
|
|
|
22817
22916
|
"default": {}
|
|
22818
22917
|
}
|
|
22819
22918
|
|
|
22820
|
-
},{}],
|
|
22919
|
+
},{}],249:[function(require,module,exports){
|
|
22821
22920
|
module.exports={
|
|
22822
22921
|
"swagger": 2,
|
|
22823
22922
|
"info": {
|
|
@@ -22908,7 +23007,7 @@ module.exports={
|
|
|
22908
23007
|
}
|
|
22909
23008
|
}
|
|
22910
23009
|
|
|
22911
|
-
},{}],
|
|
23010
|
+
},{}],250:[function(require,module,exports){
|
|
22912
23011
|
module.exports={
|
|
22913
23012
|
"title": "A JSON Schema for Swagger 2.0 API.",
|
|
22914
23013
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
@@ -23306,7 +23405,7 @@ module.exports={
|
|
|
23306
23405
|
}
|
|
23307
23406
|
}
|
|
23308
23407
|
|
|
23309
|
-
},{}],
|
|
23408
|
+
},{}],251:[function(require,module,exports){
|
|
23310
23409
|
module.exports={
|
|
23311
23410
|
"title": "A JSON Schema for Swagger 2.0 API.",
|
|
23312
23411
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
@@ -23704,7 +23803,7 @@ module.exports={
|
|
|
23704
23803
|
}
|
|
23705
23804
|
}
|
|
23706
23805
|
|
|
23707
|
-
},{}],
|
|
23806
|
+
},{}],252:[function(require,module,exports){
|
|
23708
23807
|
'use strict';
|
|
23709
23808
|
|
|
23710
23809
|
module.exports = {
|
|
@@ -23729,15 +23828,15 @@ module.exports = {
|
|
|
23729
23828
|
]
|
|
23730
23829
|
};
|
|
23731
23830
|
|
|
23732
|
-
},{}],
|
|
23733
|
-
arguments[4][
|
|
23734
|
-
},{"dup":
|
|
23831
|
+
},{}],253:[function(require,module,exports){
|
|
23832
|
+
arguments[4][248][0].apply(exports,arguments)
|
|
23833
|
+
},{"dup":248}],254:[function(require,module,exports){
|
|
23735
23834
|
module.exports={
|
|
23736
23835
|
"type": "integer"
|
|
23737
23836
|
}
|
|
23738
|
-
},{}],
|
|
23739
|
-
arguments[4][
|
|
23740
|
-
},{"dup":
|
|
23837
|
+
},{}],255:[function(require,module,exports){
|
|
23838
|
+
arguments[4][254][0].apply(exports,arguments)
|
|
23839
|
+
},{"dup":254}],256:[function(require,module,exports){
|
|
23741
23840
|
module.exports={
|
|
23742
23841
|
"integer": {
|
|
23743
23842
|
"type": "integer"
|
|
@@ -23746,7 +23845,7 @@ module.exports={
|
|
|
23746
23845
|
"$ref": "#/integer"
|
|
23747
23846
|
}
|
|
23748
23847
|
}
|
|
23749
|
-
},{}],
|
|
23848
|
+
},{}],257:[function(require,module,exports){
|
|
23750
23849
|
module.exports=[
|
|
23751
23850
|
{
|
|
23752
23851
|
"description": "additionalItems as schema",
|
|
@@ -23830,7 +23929,7 @@ module.exports=[
|
|
|
23830
23929
|
}
|
|
23831
23930
|
]
|
|
23832
23931
|
|
|
23833
|
-
},{}],
|
|
23932
|
+
},{}],258:[function(require,module,exports){
|
|
23834
23933
|
module.exports=[
|
|
23835
23934
|
{
|
|
23836
23935
|
"description":
|
|
@@ -23920,7 +24019,7 @@ module.exports=[
|
|
|
23920
24019
|
}
|
|
23921
24020
|
]
|
|
23922
24021
|
|
|
23923
|
-
},{}],
|
|
24022
|
+
},{}],259:[function(require,module,exports){
|
|
23924
24023
|
module.exports=[
|
|
23925
24024
|
{
|
|
23926
24025
|
"description": "allOf",
|
|
@@ -24034,7 +24133,7 @@ module.exports=[
|
|
|
24034
24133
|
}
|
|
24035
24134
|
]
|
|
24036
24135
|
|
|
24037
|
-
},{}],
|
|
24136
|
+
},{}],260:[function(require,module,exports){
|
|
24038
24137
|
module.exports=[
|
|
24039
24138
|
{
|
|
24040
24139
|
"description": "anyOf",
|
|
@@ -24104,7 +24203,7 @@ module.exports=[
|
|
|
24104
24203
|
}
|
|
24105
24204
|
]
|
|
24106
24205
|
|
|
24107
|
-
},{}],
|
|
24206
|
+
},{}],261:[function(require,module,exports){
|
|
24108
24207
|
module.exports=[
|
|
24109
24208
|
{
|
|
24110
24209
|
"description": "invalid type for default",
|
|
@@ -24155,7 +24254,7 @@ module.exports=[
|
|
|
24155
24254
|
}
|
|
24156
24255
|
]
|
|
24157
24256
|
|
|
24158
|
-
},{}],
|
|
24257
|
+
},{}],262:[function(require,module,exports){
|
|
24159
24258
|
module.exports=[
|
|
24160
24259
|
{
|
|
24161
24260
|
"description": "valid definition",
|
|
@@ -24189,7 +24288,7 @@ module.exports=[
|
|
|
24189
24288
|
}
|
|
24190
24289
|
]
|
|
24191
24290
|
|
|
24192
|
-
},{}],
|
|
24291
|
+
},{}],263:[function(require,module,exports){
|
|
24193
24292
|
module.exports=[
|
|
24194
24293
|
{
|
|
24195
24294
|
"description": "dependencies",
|
|
@@ -24304,7 +24403,7 @@ module.exports=[
|
|
|
24304
24403
|
}
|
|
24305
24404
|
]
|
|
24306
24405
|
|
|
24307
|
-
},{}],
|
|
24406
|
+
},{}],264:[function(require,module,exports){
|
|
24308
24407
|
module.exports=[
|
|
24309
24408
|
{
|
|
24310
24409
|
"description": "simple enum validation",
|
|
@@ -24378,7 +24477,7 @@ module.exports=[
|
|
|
24378
24477
|
}
|
|
24379
24478
|
]
|
|
24380
24479
|
|
|
24381
|
-
},{}],
|
|
24480
|
+
},{}],265:[function(require,module,exports){
|
|
24382
24481
|
module.exports=[
|
|
24383
24482
|
{
|
|
24384
24483
|
"description": "a schema given for items",
|
|
@@ -24426,7 +24525,7 @@ module.exports=[
|
|
|
24426
24525
|
}
|
|
24427
24526
|
]
|
|
24428
24527
|
|
|
24429
|
-
},{}],
|
|
24528
|
+
},{}],266:[function(require,module,exports){
|
|
24430
24529
|
module.exports=[
|
|
24431
24530
|
{
|
|
24432
24531
|
"description": "maxItems validation",
|
|
@@ -24456,7 +24555,7 @@ module.exports=[
|
|
|
24456
24555
|
}
|
|
24457
24556
|
]
|
|
24458
24557
|
|
|
24459
|
-
},{}],
|
|
24558
|
+
},{}],267:[function(require,module,exports){
|
|
24460
24559
|
module.exports=[
|
|
24461
24560
|
{
|
|
24462
24561
|
"description": "maxLength validation",
|
|
@@ -24491,7 +24590,7 @@ module.exports=[
|
|
|
24491
24590
|
}
|
|
24492
24591
|
]
|
|
24493
24592
|
|
|
24494
|
-
},{}],
|
|
24593
|
+
},{}],268:[function(require,module,exports){
|
|
24495
24594
|
module.exports=[
|
|
24496
24595
|
{
|
|
24497
24596
|
"description": "maxProperties validation",
|
|
@@ -24521,7 +24620,7 @@ module.exports=[
|
|
|
24521
24620
|
}
|
|
24522
24621
|
]
|
|
24523
24622
|
|
|
24524
|
-
},{}],
|
|
24623
|
+
},{}],269:[function(require,module,exports){
|
|
24525
24624
|
module.exports=[
|
|
24526
24625
|
{
|
|
24527
24626
|
"description": "maximum validation",
|
|
@@ -24565,7 +24664,7 @@ module.exports=[
|
|
|
24565
24664
|
}
|
|
24566
24665
|
]
|
|
24567
24666
|
|
|
24568
|
-
},{}],
|
|
24667
|
+
},{}],270:[function(require,module,exports){
|
|
24569
24668
|
module.exports=[
|
|
24570
24669
|
{
|
|
24571
24670
|
"description": "minItems validation",
|
|
@@ -24595,7 +24694,7 @@ module.exports=[
|
|
|
24595
24694
|
}
|
|
24596
24695
|
]
|
|
24597
24696
|
|
|
24598
|
-
},{}],
|
|
24697
|
+
},{}],271:[function(require,module,exports){
|
|
24599
24698
|
module.exports=[
|
|
24600
24699
|
{
|
|
24601
24700
|
"description": "minLength validation",
|
|
@@ -24630,7 +24729,7 @@ module.exports=[
|
|
|
24630
24729
|
}
|
|
24631
24730
|
]
|
|
24632
24731
|
|
|
24633
|
-
},{}],
|
|
24732
|
+
},{}],272:[function(require,module,exports){
|
|
24634
24733
|
module.exports=[
|
|
24635
24734
|
{
|
|
24636
24735
|
"description": "minProperties validation",
|
|
@@ -24660,7 +24759,7 @@ module.exports=[
|
|
|
24660
24759
|
}
|
|
24661
24760
|
]
|
|
24662
24761
|
|
|
24663
|
-
},{}],
|
|
24762
|
+
},{}],273:[function(require,module,exports){
|
|
24664
24763
|
module.exports=[
|
|
24665
24764
|
{
|
|
24666
24765
|
"description": "minimum validation",
|
|
@@ -24704,7 +24803,7 @@ module.exports=[
|
|
|
24704
24803
|
}
|
|
24705
24804
|
]
|
|
24706
24805
|
|
|
24707
|
-
},{}],
|
|
24806
|
+
},{}],274:[function(require,module,exports){
|
|
24708
24807
|
module.exports=[
|
|
24709
24808
|
{
|
|
24710
24809
|
"description": "by int",
|
|
@@ -24766,7 +24865,7 @@ module.exports=[
|
|
|
24766
24865
|
}
|
|
24767
24866
|
]
|
|
24768
24867
|
|
|
24769
|
-
},{}],
|
|
24868
|
+
},{}],275:[function(require,module,exports){
|
|
24770
24869
|
module.exports=[
|
|
24771
24870
|
{
|
|
24772
24871
|
"description": "not",
|
|
@@ -24864,7 +24963,7 @@ module.exports=[
|
|
|
24864
24963
|
|
|
24865
24964
|
]
|
|
24866
24965
|
|
|
24867
|
-
},{}],
|
|
24966
|
+
},{}],276:[function(require,module,exports){
|
|
24868
24967
|
module.exports=[
|
|
24869
24968
|
{
|
|
24870
24969
|
"description": "oneOf",
|
|
@@ -24934,7 +25033,7 @@ module.exports=[
|
|
|
24934
25033
|
}
|
|
24935
25034
|
]
|
|
24936
25035
|
|
|
24937
|
-
},{}],
|
|
25036
|
+
},{}],277:[function(require,module,exports){
|
|
24938
25037
|
module.exports=[
|
|
24939
25038
|
{
|
|
24940
25039
|
"description": "integer",
|
|
@@ -25043,7 +25142,7 @@ module.exports=[
|
|
|
25043
25142
|
}
|
|
25044
25143
|
]
|
|
25045
25144
|
|
|
25046
|
-
},{}],
|
|
25145
|
+
},{}],278:[function(require,module,exports){
|
|
25047
25146
|
module.exports=[
|
|
25048
25147
|
{
|
|
25049
25148
|
"description": "validation of date-time strings",
|
|
@@ -25188,7 +25287,7 @@ module.exports=[
|
|
|
25188
25287
|
}
|
|
25189
25288
|
]
|
|
25190
25289
|
|
|
25191
|
-
},{}],
|
|
25290
|
+
},{}],279:[function(require,module,exports){
|
|
25192
25291
|
module.exports=[
|
|
25193
25292
|
{
|
|
25194
25293
|
"description": "pattern validation",
|
|
@@ -25213,7 +25312,7 @@ module.exports=[
|
|
|
25213
25312
|
}
|
|
25214
25313
|
]
|
|
25215
25314
|
|
|
25216
|
-
},{}],
|
|
25315
|
+
},{}],280:[function(require,module,exports){
|
|
25217
25316
|
module.exports=[
|
|
25218
25317
|
{
|
|
25219
25318
|
"description":
|
|
@@ -25325,7 +25424,7 @@ module.exports=[
|
|
|
25325
25424
|
}
|
|
25326
25425
|
]
|
|
25327
25426
|
|
|
25328
|
-
},{}],
|
|
25427
|
+
},{}],281:[function(require,module,exports){
|
|
25329
25428
|
module.exports=[
|
|
25330
25429
|
{
|
|
25331
25430
|
"description": "object properties validation",
|
|
@@ -25419,7 +25518,7 @@ module.exports=[
|
|
|
25419
25518
|
}
|
|
25420
25519
|
]
|
|
25421
25520
|
|
|
25422
|
-
},{}],
|
|
25521
|
+
},{}],282:[function(require,module,exports){
|
|
25423
25522
|
module.exports=[
|
|
25424
25523
|
{
|
|
25425
25524
|
"description": "root pointer ref",
|
|
@@ -25565,7 +25664,7 @@ module.exports=[
|
|
|
25565
25664
|
}
|
|
25566
25665
|
]
|
|
25567
25666
|
|
|
25568
|
-
},{}],
|
|
25667
|
+
},{}],283:[function(require,module,exports){
|
|
25569
25668
|
module.exports=[
|
|
25570
25669
|
{
|
|
25571
25670
|
"description": "remote ref",
|
|
@@ -25641,7 +25740,7 @@ module.exports=[
|
|
|
25641
25740
|
}
|
|
25642
25741
|
]
|
|
25643
25742
|
|
|
25644
|
-
},{}],
|
|
25743
|
+
},{}],284:[function(require,module,exports){
|
|
25645
25744
|
module.exports=[
|
|
25646
25745
|
{
|
|
25647
25746
|
"description": "required validation",
|
|
@@ -25682,7 +25781,7 @@ module.exports=[
|
|
|
25682
25781
|
}
|
|
25683
25782
|
]
|
|
25684
25783
|
|
|
25685
|
-
},{}],
|
|
25784
|
+
},{}],285:[function(require,module,exports){
|
|
25686
25785
|
module.exports=[
|
|
25687
25786
|
{
|
|
25688
25787
|
"description": "integer type matches integers",
|
|
@@ -26014,7 +26113,7 @@ module.exports=[
|
|
|
26014
26113
|
}
|
|
26015
26114
|
]
|
|
26016
26115
|
|
|
26017
|
-
},{}],
|
|
26116
|
+
},{}],286:[function(require,module,exports){
|
|
26018
26117
|
module.exports=[
|
|
26019
26118
|
{
|
|
26020
26119
|
"description": "uniqueItems validation",
|
|
@@ -26095,7 +26194,7 @@ module.exports=[
|
|
|
26095
26194
|
}
|
|
26096
26195
|
]
|
|
26097
26196
|
|
|
26098
|
-
},{}],
|
|
26197
|
+
},{}],287:[function(require,module,exports){
|
|
26099
26198
|
"use strict";
|
|
26100
26199
|
|
|
26101
26200
|
var isBrowser = typeof window !== "undefined";
|
|
@@ -26188,7 +26287,7 @@ describe("Automatic schema loading", function () {
|
|
|
26188
26287
|
|
|
26189
26288
|
});
|
|
26190
26289
|
|
|
26191
|
-
},{"../../src/ZSchema":178,"https":58}],
|
|
26290
|
+
},{"../../src/ZSchema":178,"https":58}],288:[function(require,module,exports){
|
|
26192
26291
|
"use strict";
|
|
26193
26292
|
|
|
26194
26293
|
var ZSchema = require("../../src/ZSchema");
|
|
@@ -26260,7 +26359,7 @@ describe("Basic", function () {
|
|
|
26260
26359
|
|
|
26261
26360
|
});
|
|
26262
26361
|
|
|
26263
|
-
},{"../../src/ZSchema":178,"../files/draft-04-schema.json":
|
|
26362
|
+
},{"../../src/ZSchema":178,"../files/draft-04-schema.json":253,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":254,"../jsonSchemaTestSuite/remotes/integer.json":255,"../jsonSchemaTestSuite/remotes/subSchemas.json":256}],289:[function(require,module,exports){
|
|
26264
26363
|
"use strict";
|
|
26265
26364
|
|
|
26266
26365
|
var ZSchema = require("../../src/ZSchema");
|
|
@@ -26356,7 +26455,7 @@ describe("JsonSchemaTestSuite", function () {
|
|
|
26356
26455
|
|
|
26357
26456
|
});
|
|
26358
26457
|
|
|
26359
|
-
},{"../../src/ZSchema":178,"../files/draft-04-schema.json":
|
|
26458
|
+
},{"../../src/ZSchema":178,"../files/draft-04-schema.json":253,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":254,"../jsonSchemaTestSuite/remotes/integer.json":255,"../jsonSchemaTestSuite/remotes/subSchemas.json":256,"../jsonSchemaTestSuite/tests/draft4/additionalItems.json":257,"../jsonSchemaTestSuite/tests/draft4/additionalProperties.json":258,"../jsonSchemaTestSuite/tests/draft4/allOf.json":259,"../jsonSchemaTestSuite/tests/draft4/anyOf.json":260,"../jsonSchemaTestSuite/tests/draft4/default.json":261,"../jsonSchemaTestSuite/tests/draft4/definitions.json":262,"../jsonSchemaTestSuite/tests/draft4/dependencies.json":263,"../jsonSchemaTestSuite/tests/draft4/enum.json":264,"../jsonSchemaTestSuite/tests/draft4/items.json":265,"../jsonSchemaTestSuite/tests/draft4/maxItems.json":266,"../jsonSchemaTestSuite/tests/draft4/maxLength.json":267,"../jsonSchemaTestSuite/tests/draft4/maxProperties.json":268,"../jsonSchemaTestSuite/tests/draft4/maximum.json":269,"../jsonSchemaTestSuite/tests/draft4/minItems.json":270,"../jsonSchemaTestSuite/tests/draft4/minLength.json":271,"../jsonSchemaTestSuite/tests/draft4/minProperties.json":272,"../jsonSchemaTestSuite/tests/draft4/minimum.json":273,"../jsonSchemaTestSuite/tests/draft4/multipleOf.json":274,"../jsonSchemaTestSuite/tests/draft4/not.json":275,"../jsonSchemaTestSuite/tests/draft4/oneOf.json":276,"../jsonSchemaTestSuite/tests/draft4/optional/bignum.json":277,"../jsonSchemaTestSuite/tests/draft4/optional/format.json":278,"../jsonSchemaTestSuite/tests/draft4/pattern.json":279,"../jsonSchemaTestSuite/tests/draft4/patternProperties.json":280,"../jsonSchemaTestSuite/tests/draft4/properties.json":281,"../jsonSchemaTestSuite/tests/draft4/ref.json":282,"../jsonSchemaTestSuite/tests/draft4/refRemote.json":283,"../jsonSchemaTestSuite/tests/draft4/required.json":284,"../jsonSchemaTestSuite/tests/draft4/type.json":285,"../jsonSchemaTestSuite/tests/draft4/uniqueItems.json":286}],290:[function(require,module,exports){
|
|
26360
26459
|
"use strict";
|
|
26361
26460
|
|
|
26362
26461
|
var ZSchema = require("../../src/ZSchema");
|
|
@@ -26390,7 +26489,7 @@ describe("Using multiple instances of Z-Schema", function () {
|
|
|
26390
26489
|
|
|
26391
26490
|
});
|
|
26392
26491
|
|
|
26393
|
-
},{"../../src/ZSchema":178}],
|
|
26492
|
+
},{"../../src/ZSchema":178}],291:[function(require,module,exports){
|
|
26394
26493
|
/*jshint -W030 */
|
|
26395
26494
|
|
|
26396
26495
|
"use strict";
|
|
@@ -26466,6 +26565,7 @@ var testSuiteFiles = [
|
|
|
26466
26565
|
require("../ZSchemaTestSuite/Issue142.js"),
|
|
26467
26566
|
require("../ZSchemaTestSuite/Issue146.js"),
|
|
26468
26567
|
require("../ZSchemaTestSuite/Issue151.js"),
|
|
26568
|
+
require("../ZSchemaTestSuite/Issue222.js"),
|
|
26469
26569
|
|
|
26470
26570
|
undefined
|
|
26471
26571
|
];
|
|
@@ -26479,8 +26579,8 @@ describe("ZSchemaTestSuite", function () {
|
|
|
26479
26579
|
}
|
|
26480
26580
|
}
|
|
26481
26581
|
|
|
26482
|
-
it("should contain
|
|
26483
|
-
expect(testSuiteFiles.length).toBe(
|
|
26582
|
+
it("should contain 68 files", function () {
|
|
26583
|
+
expect(testSuiteFiles.length).toBe(68);
|
|
26484
26584
|
});
|
|
26485
26585
|
|
|
26486
26586
|
testSuiteFiles.forEach(function (testSuite) {
|
|
@@ -26588,7 +26688,7 @@ describe("ZSchemaTestSuite", function () {
|
|
|
26588
26688
|
|
|
26589
26689
|
});
|
|
26590
26690
|
|
|
26591
|
-
},{"../../src/ZSchema":178,"../ZSchemaTestSuite/AssumeAdditional.js":181,"../ZSchemaTestSuite/CustomFormats.js":182,"../ZSchemaTestSuite/CustomFormatsAsync.js":183,"../ZSchemaTestSuite/CustomValidator.js":184,"../ZSchemaTestSuite/ErrorPathAsArray.js":185,"../ZSchemaTestSuite/ErrorPathAsJSONPointer.js":186,"../ZSchemaTestSuite/ForceAdditional.js":187,"../ZSchemaTestSuite/ForceItems.js":188,"../ZSchemaTestSuite/ForceMaxItems.js":189,"../ZSchemaTestSuite/ForceMaxLength.js":190,"../ZSchemaTestSuite/ForceMinItems.js":191,"../ZSchemaTestSuite/ForceMinLength.js":192,"../ZSchemaTestSuite/ForceProperties.js":193,"../ZSchemaTestSuite/IgnoreUnresolvableReferences.js":194,"../ZSchemaTestSuite/InvalidId.js":195,"../ZSchemaTestSuite/Issue101.js":196,"../ZSchemaTestSuite/Issue102.js":197,"../ZSchemaTestSuite/Issue103.js":198,"../ZSchemaTestSuite/Issue106.js":199,"../ZSchemaTestSuite/Issue107.js":200,"../ZSchemaTestSuite/Issue12.js":201,"../ZSchemaTestSuite/Issue121.js":202,"../ZSchemaTestSuite/Issue125.js":203,"../ZSchemaTestSuite/Issue126.js":204,"../ZSchemaTestSuite/Issue13.js":205,"../ZSchemaTestSuite/Issue130.js":206,"../ZSchemaTestSuite/Issue131.js":207,"../ZSchemaTestSuite/Issue137.js":208,"../ZSchemaTestSuite/Issue139.js":209,"../ZSchemaTestSuite/Issue142.js":210,"../ZSchemaTestSuite/Issue146.js":211,"../ZSchemaTestSuite/Issue151.js":212,"../ZSchemaTestSuite/Issue16.js":213,"../ZSchemaTestSuite/Issue22.js":214,"../ZSchemaTestSuite/
|
|
26691
|
+
},{"../../src/ZSchema":178,"../ZSchemaTestSuite/AssumeAdditional.js":181,"../ZSchemaTestSuite/CustomFormats.js":182,"../ZSchemaTestSuite/CustomFormatsAsync.js":183,"../ZSchemaTestSuite/CustomValidator.js":184,"../ZSchemaTestSuite/ErrorPathAsArray.js":185,"../ZSchemaTestSuite/ErrorPathAsJSONPointer.js":186,"../ZSchemaTestSuite/ForceAdditional.js":187,"../ZSchemaTestSuite/ForceItems.js":188,"../ZSchemaTestSuite/ForceMaxItems.js":189,"../ZSchemaTestSuite/ForceMaxLength.js":190,"../ZSchemaTestSuite/ForceMinItems.js":191,"../ZSchemaTestSuite/ForceMinLength.js":192,"../ZSchemaTestSuite/ForceProperties.js":193,"../ZSchemaTestSuite/IgnoreUnresolvableReferences.js":194,"../ZSchemaTestSuite/InvalidId.js":195,"../ZSchemaTestSuite/Issue101.js":196,"../ZSchemaTestSuite/Issue102.js":197,"../ZSchemaTestSuite/Issue103.js":198,"../ZSchemaTestSuite/Issue106.js":199,"../ZSchemaTestSuite/Issue107.js":200,"../ZSchemaTestSuite/Issue12.js":201,"../ZSchemaTestSuite/Issue121.js":202,"../ZSchemaTestSuite/Issue125.js":203,"../ZSchemaTestSuite/Issue126.js":204,"../ZSchemaTestSuite/Issue13.js":205,"../ZSchemaTestSuite/Issue130.js":206,"../ZSchemaTestSuite/Issue131.js":207,"../ZSchemaTestSuite/Issue137.js":208,"../ZSchemaTestSuite/Issue139.js":209,"../ZSchemaTestSuite/Issue142.js":210,"../ZSchemaTestSuite/Issue146.js":211,"../ZSchemaTestSuite/Issue151.js":212,"../ZSchemaTestSuite/Issue16.js":213,"../ZSchemaTestSuite/Issue22.js":214,"../ZSchemaTestSuite/Issue222.js":215,"../ZSchemaTestSuite/Issue25.js":216,"../ZSchemaTestSuite/Issue26.js":217,"../ZSchemaTestSuite/Issue37.js":218,"../ZSchemaTestSuite/Issue40.js":219,"../ZSchemaTestSuite/Issue41.js":220,"../ZSchemaTestSuite/Issue43.js":221,"../ZSchemaTestSuite/Issue44.js":222,"../ZSchemaTestSuite/Issue45.js":223,"../ZSchemaTestSuite/Issue47.js":224,"../ZSchemaTestSuite/Issue48.js":225,"../ZSchemaTestSuite/Issue49.js":226,"../ZSchemaTestSuite/Issue53.js":227,"../ZSchemaTestSuite/Issue56.js":228,"../ZSchemaTestSuite/Issue57.js":229,"../ZSchemaTestSuite/Issue58.js":230,"../ZSchemaTestSuite/Issue63.js":231,"../ZSchemaTestSuite/Issue64.js":232,"../ZSchemaTestSuite/Issue67.js":233,"../ZSchemaTestSuite/Issue71.js":234,"../ZSchemaTestSuite/Issue73.js":235,"../ZSchemaTestSuite/Issue76.js":236,"../ZSchemaTestSuite/Issue85.js":237,"../ZSchemaTestSuite/Issue94.js":238,"../ZSchemaTestSuite/Issue96.js":239,"../ZSchemaTestSuite/Issue98.js":240,"../ZSchemaTestSuite/MultipleSchemas.js":241,"../ZSchemaTestSuite/NoEmptyArrays.js":242,"../ZSchemaTestSuite/NoEmptyStrings.js":243,"../ZSchemaTestSuite/NoExtraKeywords.js":244,"../ZSchemaTestSuite/NoTypeless.js":245,"../ZSchemaTestSuite/PedanticCheck.js":246,"../ZSchemaTestSuite/StrictUris.js":247,"../ZSchemaTestSuite/getRegisteredFormats.js":252}],292:[function(require,module,exports){
|
|
26592
26692
|
"use strict";
|
|
26593
26693
|
|
|
26594
26694
|
var ZSchema = require("../../src/ZSchema");
|
|
@@ -26687,4 +26787,4 @@ describe("Using path to schema as a third argument", function () {
|
|
|
26687
26787
|
|
|
26688
26788
|
});
|
|
26689
26789
|
|
|
26690
|
-
},{"../../src/ZSchema":178}]},{},[
|
|
26790
|
+
},{"../../src/ZSchema":178}]},{},[287,288,289,290,292,291]);
|