z-schema 3.25.0 → 3.25.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.
|
@@ -15375,10 +15375,14 @@ var JsonValidators = {
|
|
|
15375
15375
|
var formatValidatorFn = FormatValidators[schema.format];
|
|
15376
15376
|
if (typeof formatValidatorFn === "function") {
|
|
15377
15377
|
if (formatValidatorFn.length === 2) {
|
|
15378
|
-
// async
|
|
15378
|
+
// async - need to clone the path here, because it will change by the time async function reports back
|
|
15379
|
+
var pathBeforeAsync = Utils.clone(report.path);
|
|
15379
15380
|
report.addAsyncTask(formatValidatorFn, [json], function (result) {
|
|
15380
15381
|
if (result !== true) {
|
|
15382
|
+
var backup = report.path;
|
|
15383
|
+
report.path = pathBeforeAsync;
|
|
15381
15384
|
report.addError("INVALID_FORMAT", [schema.format, json], null, schema);
|
|
15385
|
+
report.path = backup;
|
|
15382
15386
|
}
|
|
15383
15387
|
});
|
|
15384
15388
|
} else {
|
|
@@ -15488,10 +15492,7 @@ var recurseObject = function (report, schema, json) {
|
|
|
15488
15492
|
while (idx2--) {
|
|
15489
15493
|
report.path.push(m);
|
|
15490
15494
|
exports.validate.call(this, report, s[idx2], propertyValue);
|
|
15491
|
-
|
|
15492
|
-
// commented out to resolve issue #209 - the path gets popped before async tasks complete
|
|
15493
|
-
// all the tests run fine without, there seems to be no reason to have this pop here
|
|
15494
|
-
// report.path.pop();
|
|
15495
|
+
report.path.pop();
|
|
15495
15496
|
}
|
|
15496
15497
|
}
|
|
15497
15498
|
};
|
|
@@ -19736,6 +19737,68 @@ module.exports = {
|
|
|
19736
19737
|
},{}],218:[function(require,module,exports){
|
|
19737
19738
|
"use strict";
|
|
19738
19739
|
|
|
19740
|
+
module.exports = {
|
|
19741
|
+
description: "Issue #229 - Paths in errors are incorrect due to Issue #209 fix",
|
|
19742
|
+
tests: [
|
|
19743
|
+
{
|
|
19744
|
+
description: "should fail with correct error path",
|
|
19745
|
+
schema: {
|
|
19746
|
+
"allOf": [
|
|
19747
|
+
{
|
|
19748
|
+
"properties": {
|
|
19749
|
+
"setup": {
|
|
19750
|
+
"description": "Account Research Setup",
|
|
19751
|
+
"properties": {
|
|
19752
|
+
"excessiveCredit": {
|
|
19753
|
+
"properties": {
|
|
19754
|
+
"negativeBatch": {
|
|
19755
|
+
"type": "number",
|
|
19756
|
+
"minimum": 0,
|
|
19757
|
+
"maximum": 999999999.99,
|
|
19758
|
+
"title": "Negative Batch $"
|
|
19759
|
+
},
|
|
19760
|
+
"amountOfCreditsInBatch": {
|
|
19761
|
+
"type": "number",
|
|
19762
|
+
"minimum": 0,
|
|
19763
|
+
"maximum": 999999999.99,
|
|
19764
|
+
"title": "Amount of Credits in a Batch $"
|
|
19765
|
+
},
|
|
19766
|
+
"numberOfCreditsInBatch": {
|
|
19767
|
+
"type": "number",
|
|
19768
|
+
"minimum": 1,
|
|
19769
|
+
"maximum": 999,
|
|
19770
|
+
"title": "Number of Credits in a Batch"
|
|
19771
|
+
}
|
|
19772
|
+
}
|
|
19773
|
+
}
|
|
19774
|
+
}
|
|
19775
|
+
}
|
|
19776
|
+
}
|
|
19777
|
+
}
|
|
19778
|
+
]
|
|
19779
|
+
},
|
|
19780
|
+
data: {
|
|
19781
|
+
"setup": {
|
|
19782
|
+
"excessiveCredit": {
|
|
19783
|
+
"amountOfCreditsInBatch": -15000.21,
|
|
19784
|
+
"negativeBatch": 25001,
|
|
19785
|
+
"numberOfCreditsInBatch": 155
|
|
19786
|
+
}
|
|
19787
|
+
}
|
|
19788
|
+
},
|
|
19789
|
+
valid: false,
|
|
19790
|
+
after: function (err) {
|
|
19791
|
+
expect(err.length).toBe(1);
|
|
19792
|
+
expect(err[0].code).toBe('MINIMUM');
|
|
19793
|
+
expect(err[0].path).toBe('#/setup/excessiveCredit/amountOfCreditsInBatch');
|
|
19794
|
+
}
|
|
19795
|
+
}
|
|
19796
|
+
]
|
|
19797
|
+
};
|
|
19798
|
+
|
|
19799
|
+
},{}],219:[function(require,module,exports){
|
|
19800
|
+
"use strict";
|
|
19801
|
+
|
|
19739
19802
|
module.exports = {
|
|
19740
19803
|
description: "Issue #25 - hostname format behaviour",
|
|
19741
19804
|
tests: [
|
|
@@ -19769,7 +19832,7 @@ module.exports = {
|
|
|
19769
19832
|
]
|
|
19770
19833
|
};
|
|
19771
19834
|
|
|
19772
|
-
},{}],
|
|
19835
|
+
},{}],220:[function(require,module,exports){
|
|
19773
19836
|
"use strict";
|
|
19774
19837
|
|
|
19775
19838
|
module.exports = {
|
|
@@ -19859,7 +19922,7 @@ module.exports = {
|
|
|
19859
19922
|
]
|
|
19860
19923
|
};
|
|
19861
19924
|
|
|
19862
|
-
},{}],
|
|
19925
|
+
},{}],221:[function(require,module,exports){
|
|
19863
19926
|
"use strict";
|
|
19864
19927
|
|
|
19865
19928
|
module.exports = {
|
|
@@ -19884,7 +19947,7 @@ module.exports = {
|
|
|
19884
19947
|
]
|
|
19885
19948
|
};
|
|
19886
19949
|
|
|
19887
|
-
},{}],
|
|
19950
|
+
},{}],222:[function(require,module,exports){
|
|
19888
19951
|
"use strict";
|
|
19889
19952
|
|
|
19890
19953
|
module.exports = {
|
|
@@ -19960,7 +20023,7 @@ module.exports = {
|
|
|
19960
20023
|
]
|
|
19961
20024
|
};
|
|
19962
20025
|
|
|
19963
|
-
},{}],
|
|
20026
|
+
},{}],223:[function(require,module,exports){
|
|
19964
20027
|
"use strict";
|
|
19965
20028
|
|
|
19966
20029
|
module.exports = {
|
|
@@ -20073,7 +20136,7 @@ module.exports = {
|
|
|
20073
20136
|
]
|
|
20074
20137
|
};
|
|
20075
20138
|
|
|
20076
|
-
},{}],
|
|
20139
|
+
},{}],224:[function(require,module,exports){
|
|
20077
20140
|
"use strict";
|
|
20078
20141
|
|
|
20079
20142
|
module.exports = {
|
|
@@ -20253,7 +20316,7 @@ module.exports = {
|
|
|
20253
20316
|
]
|
|
20254
20317
|
};
|
|
20255
20318
|
|
|
20256
|
-
},{}],
|
|
20319
|
+
},{}],225:[function(require,module,exports){
|
|
20257
20320
|
"use strict";
|
|
20258
20321
|
|
|
20259
20322
|
module.exports = {
|
|
@@ -20300,7 +20363,7 @@ module.exports = {
|
|
|
20300
20363
|
]
|
|
20301
20364
|
};
|
|
20302
20365
|
|
|
20303
|
-
},{}],
|
|
20366
|
+
},{}],226:[function(require,module,exports){
|
|
20304
20367
|
"use strict";
|
|
20305
20368
|
|
|
20306
20369
|
var resourceObject = {
|
|
@@ -20596,7 +20659,7 @@ module.exports = {
|
|
|
20596
20659
|
]
|
|
20597
20660
|
};
|
|
20598
20661
|
|
|
20599
|
-
},{}],
|
|
20662
|
+
},{}],227:[function(require,module,exports){
|
|
20600
20663
|
"use strict";
|
|
20601
20664
|
|
|
20602
20665
|
var draft4 = require("./files/Issue47/draft4.json");
|
|
@@ -20625,7 +20688,7 @@ module.exports = {
|
|
|
20625
20688
|
]
|
|
20626
20689
|
};
|
|
20627
20690
|
|
|
20628
|
-
},{"./files/Issue47/draft4.json":
|
|
20691
|
+
},{"./files/Issue47/draft4.json":251,"./files/Issue47/sample.json":252,"./files/Issue47/swagger_draft.json":253,"./files/Issue47/swagger_draft_modified.json":254}],228:[function(require,module,exports){
|
|
20629
20692
|
"use strict";
|
|
20630
20693
|
|
|
20631
20694
|
module.exports = {
|
|
@@ -20658,7 +20721,7 @@ module.exports = {
|
|
|
20658
20721
|
]
|
|
20659
20722
|
};
|
|
20660
20723
|
|
|
20661
|
-
},{}],
|
|
20724
|
+
},{}],229:[function(require,module,exports){
|
|
20662
20725
|
"use strict";
|
|
20663
20726
|
|
|
20664
20727
|
module.exports = {
|
|
@@ -20676,7 +20739,7 @@ module.exports = {
|
|
|
20676
20739
|
]
|
|
20677
20740
|
};
|
|
20678
20741
|
|
|
20679
|
-
},{}],
|
|
20742
|
+
},{}],230:[function(require,module,exports){
|
|
20680
20743
|
"use strict";
|
|
20681
20744
|
|
|
20682
20745
|
module.exports = {
|
|
@@ -20698,7 +20761,7 @@ module.exports = {
|
|
|
20698
20761
|
]
|
|
20699
20762
|
};
|
|
20700
20763
|
|
|
20701
|
-
},{}],
|
|
20764
|
+
},{}],231:[function(require,module,exports){
|
|
20702
20765
|
"use strict";
|
|
20703
20766
|
|
|
20704
20767
|
module.exports = {
|
|
@@ -20769,7 +20832,7 @@ module.exports = {
|
|
|
20769
20832
|
]
|
|
20770
20833
|
};
|
|
20771
20834
|
|
|
20772
|
-
},{}],
|
|
20835
|
+
},{}],232:[function(require,module,exports){
|
|
20773
20836
|
"use strict";
|
|
20774
20837
|
|
|
20775
20838
|
var dataTypeBaseJson = {
|
|
@@ -21454,7 +21517,7 @@ module.exports = {
|
|
|
21454
21517
|
]
|
|
21455
21518
|
};
|
|
21456
21519
|
|
|
21457
|
-
},{}],
|
|
21520
|
+
},{}],233:[function(require,module,exports){
|
|
21458
21521
|
"use strict";
|
|
21459
21522
|
|
|
21460
21523
|
module.exports = {
|
|
@@ -21517,7 +21580,7 @@ module.exports = {
|
|
|
21517
21580
|
]
|
|
21518
21581
|
};
|
|
21519
21582
|
|
|
21520
|
-
},{}],
|
|
21583
|
+
},{}],234:[function(require,module,exports){
|
|
21521
21584
|
/*jshint -W101*/
|
|
21522
21585
|
|
|
21523
21586
|
"use strict";
|
|
@@ -22094,7 +22157,7 @@ module.exports = {
|
|
|
22094
22157
|
]
|
|
22095
22158
|
};
|
|
22096
22159
|
|
|
22097
|
-
},{}],
|
|
22160
|
+
},{}],235:[function(require,module,exports){
|
|
22098
22161
|
"use strict";
|
|
22099
22162
|
|
|
22100
22163
|
module.exports = {
|
|
@@ -22125,7 +22188,7 @@ module.exports = {
|
|
|
22125
22188
|
]
|
|
22126
22189
|
};
|
|
22127
22190
|
|
|
22128
|
-
},{}],
|
|
22191
|
+
},{}],236:[function(require,module,exports){
|
|
22129
22192
|
"use strict";
|
|
22130
22193
|
|
|
22131
22194
|
module.exports = {
|
|
@@ -22176,7 +22239,7 @@ module.exports = {
|
|
|
22176
22239
|
]
|
|
22177
22240
|
};
|
|
22178
22241
|
|
|
22179
|
-
},{}],
|
|
22242
|
+
},{}],237:[function(require,module,exports){
|
|
22180
22243
|
"use strict";
|
|
22181
22244
|
|
|
22182
22245
|
module.exports = {
|
|
@@ -22296,7 +22359,7 @@ module.exports = {
|
|
|
22296
22359
|
]
|
|
22297
22360
|
};
|
|
22298
22361
|
|
|
22299
|
-
},{}],
|
|
22362
|
+
},{}],238:[function(require,module,exports){
|
|
22300
22363
|
"use strict";
|
|
22301
22364
|
|
|
22302
22365
|
module.exports = {
|
|
@@ -22354,7 +22417,7 @@ module.exports = {
|
|
|
22354
22417
|
]
|
|
22355
22418
|
};
|
|
22356
22419
|
|
|
22357
|
-
},{}],
|
|
22420
|
+
},{}],239:[function(require,module,exports){
|
|
22358
22421
|
"use strict";
|
|
22359
22422
|
|
|
22360
22423
|
module.exports = {
|
|
@@ -22427,7 +22490,7 @@ module.exports = {
|
|
|
22427
22490
|
]
|
|
22428
22491
|
};
|
|
22429
22492
|
|
|
22430
|
-
},{}],
|
|
22493
|
+
},{}],240:[function(require,module,exports){
|
|
22431
22494
|
"use strict";
|
|
22432
22495
|
|
|
22433
22496
|
var innerSchema = {
|
|
@@ -22472,7 +22535,7 @@ module.exports = {
|
|
|
22472
22535
|
]
|
|
22473
22536
|
};
|
|
22474
22537
|
|
|
22475
|
-
},{}],
|
|
22538
|
+
},{}],241:[function(require,module,exports){
|
|
22476
22539
|
"use strict";
|
|
22477
22540
|
|
|
22478
22541
|
var schema1 = {
|
|
@@ -22516,7 +22579,7 @@ module.exports = {
|
|
|
22516
22579
|
]
|
|
22517
22580
|
};
|
|
22518
22581
|
|
|
22519
|
-
},{}],
|
|
22582
|
+
},{}],242:[function(require,module,exports){
|
|
22520
22583
|
"use strict";
|
|
22521
22584
|
|
|
22522
22585
|
module.exports = {
|
|
@@ -22534,7 +22597,7 @@ module.exports = {
|
|
|
22534
22597
|
]
|
|
22535
22598
|
};
|
|
22536
22599
|
|
|
22537
|
-
},{}],
|
|
22600
|
+
},{}],243:[function(require,module,exports){
|
|
22538
22601
|
"use strict";
|
|
22539
22602
|
|
|
22540
22603
|
module.exports = {
|
|
@@ -22566,7 +22629,7 @@ module.exports = {
|
|
|
22566
22629
|
]
|
|
22567
22630
|
};
|
|
22568
22631
|
|
|
22569
|
-
},{}],
|
|
22632
|
+
},{}],244:[function(require,module,exports){
|
|
22570
22633
|
"use strict";
|
|
22571
22634
|
|
|
22572
22635
|
module.exports = {
|
|
@@ -22625,7 +22688,7 @@ module.exports = {
|
|
|
22625
22688
|
]
|
|
22626
22689
|
};
|
|
22627
22690
|
|
|
22628
|
-
},{}],
|
|
22691
|
+
},{}],245:[function(require,module,exports){
|
|
22629
22692
|
"use strict";
|
|
22630
22693
|
|
|
22631
22694
|
module.exports = {
|
|
@@ -22650,7 +22713,7 @@ module.exports = {
|
|
|
22650
22713
|
]
|
|
22651
22714
|
};
|
|
22652
22715
|
|
|
22653
|
-
},{}],
|
|
22716
|
+
},{}],246:[function(require,module,exports){
|
|
22654
22717
|
"use strict";
|
|
22655
22718
|
|
|
22656
22719
|
module.exports = {
|
|
@@ -22675,7 +22738,7 @@ module.exports = {
|
|
|
22675
22738
|
]
|
|
22676
22739
|
};
|
|
22677
22740
|
|
|
22678
|
-
},{}],
|
|
22741
|
+
},{}],247:[function(require,module,exports){
|
|
22679
22742
|
"use strict";
|
|
22680
22743
|
|
|
22681
22744
|
module.exports = {
|
|
@@ -22720,7 +22783,7 @@ module.exports = {
|
|
|
22720
22783
|
]
|
|
22721
22784
|
};
|
|
22722
22785
|
|
|
22723
|
-
},{}],
|
|
22786
|
+
},{}],248:[function(require,module,exports){
|
|
22724
22787
|
"use strict";
|
|
22725
22788
|
|
|
22726
22789
|
module.exports = {
|
|
@@ -22745,7 +22808,7 @@ module.exports = {
|
|
|
22745
22808
|
]
|
|
22746
22809
|
};
|
|
22747
22810
|
|
|
22748
|
-
},{}],
|
|
22811
|
+
},{}],249:[function(require,module,exports){
|
|
22749
22812
|
"use strict";
|
|
22750
22813
|
|
|
22751
22814
|
module.exports = {
|
|
@@ -22784,7 +22847,7 @@ module.exports = {
|
|
|
22784
22847
|
]
|
|
22785
22848
|
};
|
|
22786
22849
|
|
|
22787
|
-
},{}],
|
|
22850
|
+
},{}],250:[function(require,module,exports){
|
|
22788
22851
|
"use strict";
|
|
22789
22852
|
|
|
22790
22853
|
module.exports = {
|
|
@@ -22814,7 +22877,7 @@ module.exports = {
|
|
|
22814
22877
|
]
|
|
22815
22878
|
};
|
|
22816
22879
|
|
|
22817
|
-
},{}],
|
|
22880
|
+
},{}],251:[function(require,module,exports){
|
|
22818
22881
|
module.exports={
|
|
22819
22882
|
"id": "http://json-schema.org/draft-04/schema#",
|
|
22820
22883
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
@@ -22966,7 +23029,7 @@ module.exports={
|
|
|
22966
23029
|
"default": {}
|
|
22967
23030
|
}
|
|
22968
23031
|
|
|
22969
|
-
},{}],
|
|
23032
|
+
},{}],252:[function(require,module,exports){
|
|
22970
23033
|
module.exports={
|
|
22971
23034
|
"swagger": 2,
|
|
22972
23035
|
"info": {
|
|
@@ -23057,7 +23120,7 @@ module.exports={
|
|
|
23057
23120
|
}
|
|
23058
23121
|
}
|
|
23059
23122
|
|
|
23060
|
-
},{}],
|
|
23123
|
+
},{}],253:[function(require,module,exports){
|
|
23061
23124
|
module.exports={
|
|
23062
23125
|
"title": "A JSON Schema for Swagger 2.0 API.",
|
|
23063
23126
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
@@ -23455,7 +23518,7 @@ module.exports={
|
|
|
23455
23518
|
}
|
|
23456
23519
|
}
|
|
23457
23520
|
|
|
23458
|
-
},{}],
|
|
23521
|
+
},{}],254:[function(require,module,exports){
|
|
23459
23522
|
module.exports={
|
|
23460
23523
|
"title": "A JSON Schema for Swagger 2.0 API.",
|
|
23461
23524
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
@@ -23853,7 +23916,7 @@ module.exports={
|
|
|
23853
23916
|
}
|
|
23854
23917
|
}
|
|
23855
23918
|
|
|
23856
|
-
},{}],
|
|
23919
|
+
},{}],255:[function(require,module,exports){
|
|
23857
23920
|
'use strict';
|
|
23858
23921
|
|
|
23859
23922
|
module.exports = {
|
|
@@ -23878,15 +23941,15 @@ module.exports = {
|
|
|
23878
23941
|
]
|
|
23879
23942
|
};
|
|
23880
23943
|
|
|
23881
|
-
},{}],
|
|
23882
|
-
arguments[4][
|
|
23883
|
-
},{"dup":
|
|
23944
|
+
},{}],256:[function(require,module,exports){
|
|
23945
|
+
arguments[4][251][0].apply(exports,arguments)
|
|
23946
|
+
},{"dup":251}],257:[function(require,module,exports){
|
|
23884
23947
|
module.exports={
|
|
23885
23948
|
"type": "integer"
|
|
23886
23949
|
}
|
|
23887
|
-
},{}],
|
|
23888
|
-
arguments[4][
|
|
23889
|
-
},{"dup":
|
|
23950
|
+
},{}],258:[function(require,module,exports){
|
|
23951
|
+
arguments[4][257][0].apply(exports,arguments)
|
|
23952
|
+
},{"dup":257}],259:[function(require,module,exports){
|
|
23890
23953
|
module.exports={
|
|
23891
23954
|
"integer": {
|
|
23892
23955
|
"type": "integer"
|
|
@@ -23895,7 +23958,7 @@ module.exports={
|
|
|
23895
23958
|
"$ref": "#/integer"
|
|
23896
23959
|
}
|
|
23897
23960
|
}
|
|
23898
|
-
},{}],
|
|
23961
|
+
},{}],260:[function(require,module,exports){
|
|
23899
23962
|
module.exports=[
|
|
23900
23963
|
{
|
|
23901
23964
|
"description": "additionalItems as schema",
|
|
@@ -23979,7 +24042,7 @@ module.exports=[
|
|
|
23979
24042
|
}
|
|
23980
24043
|
]
|
|
23981
24044
|
|
|
23982
|
-
},{}],
|
|
24045
|
+
},{}],261:[function(require,module,exports){
|
|
23983
24046
|
module.exports=[
|
|
23984
24047
|
{
|
|
23985
24048
|
"description":
|
|
@@ -24069,7 +24132,7 @@ module.exports=[
|
|
|
24069
24132
|
}
|
|
24070
24133
|
]
|
|
24071
24134
|
|
|
24072
|
-
},{}],
|
|
24135
|
+
},{}],262:[function(require,module,exports){
|
|
24073
24136
|
module.exports=[
|
|
24074
24137
|
{
|
|
24075
24138
|
"description": "allOf",
|
|
@@ -24183,7 +24246,7 @@ module.exports=[
|
|
|
24183
24246
|
}
|
|
24184
24247
|
]
|
|
24185
24248
|
|
|
24186
|
-
},{}],
|
|
24249
|
+
},{}],263:[function(require,module,exports){
|
|
24187
24250
|
module.exports=[
|
|
24188
24251
|
{
|
|
24189
24252
|
"description": "anyOf",
|
|
@@ -24253,7 +24316,7 @@ module.exports=[
|
|
|
24253
24316
|
}
|
|
24254
24317
|
]
|
|
24255
24318
|
|
|
24256
|
-
},{}],
|
|
24319
|
+
},{}],264:[function(require,module,exports){
|
|
24257
24320
|
module.exports=[
|
|
24258
24321
|
{
|
|
24259
24322
|
"description": "invalid type for default",
|
|
@@ -24304,7 +24367,7 @@ module.exports=[
|
|
|
24304
24367
|
}
|
|
24305
24368
|
]
|
|
24306
24369
|
|
|
24307
|
-
},{}],
|
|
24370
|
+
},{}],265:[function(require,module,exports){
|
|
24308
24371
|
module.exports=[
|
|
24309
24372
|
{
|
|
24310
24373
|
"description": "valid definition",
|
|
@@ -24338,7 +24401,7 @@ module.exports=[
|
|
|
24338
24401
|
}
|
|
24339
24402
|
]
|
|
24340
24403
|
|
|
24341
|
-
},{}],
|
|
24404
|
+
},{}],266:[function(require,module,exports){
|
|
24342
24405
|
module.exports=[
|
|
24343
24406
|
{
|
|
24344
24407
|
"description": "dependencies",
|
|
@@ -24453,7 +24516,7 @@ module.exports=[
|
|
|
24453
24516
|
}
|
|
24454
24517
|
]
|
|
24455
24518
|
|
|
24456
|
-
},{}],
|
|
24519
|
+
},{}],267:[function(require,module,exports){
|
|
24457
24520
|
module.exports=[
|
|
24458
24521
|
{
|
|
24459
24522
|
"description": "simple enum validation",
|
|
@@ -24527,7 +24590,7 @@ module.exports=[
|
|
|
24527
24590
|
}
|
|
24528
24591
|
]
|
|
24529
24592
|
|
|
24530
|
-
},{}],
|
|
24593
|
+
},{}],268:[function(require,module,exports){
|
|
24531
24594
|
module.exports=[
|
|
24532
24595
|
{
|
|
24533
24596
|
"description": "a schema given for items",
|
|
@@ -24575,7 +24638,7 @@ module.exports=[
|
|
|
24575
24638
|
}
|
|
24576
24639
|
]
|
|
24577
24640
|
|
|
24578
|
-
},{}],
|
|
24641
|
+
},{}],269:[function(require,module,exports){
|
|
24579
24642
|
module.exports=[
|
|
24580
24643
|
{
|
|
24581
24644
|
"description": "maxItems validation",
|
|
@@ -24605,7 +24668,7 @@ module.exports=[
|
|
|
24605
24668
|
}
|
|
24606
24669
|
]
|
|
24607
24670
|
|
|
24608
|
-
},{}],
|
|
24671
|
+
},{}],270:[function(require,module,exports){
|
|
24609
24672
|
module.exports=[
|
|
24610
24673
|
{
|
|
24611
24674
|
"description": "maxLength validation",
|
|
@@ -24640,7 +24703,7 @@ module.exports=[
|
|
|
24640
24703
|
}
|
|
24641
24704
|
]
|
|
24642
24705
|
|
|
24643
|
-
},{}],
|
|
24706
|
+
},{}],271:[function(require,module,exports){
|
|
24644
24707
|
module.exports=[
|
|
24645
24708
|
{
|
|
24646
24709
|
"description": "maxProperties validation",
|
|
@@ -24670,7 +24733,7 @@ module.exports=[
|
|
|
24670
24733
|
}
|
|
24671
24734
|
]
|
|
24672
24735
|
|
|
24673
|
-
},{}],
|
|
24736
|
+
},{}],272:[function(require,module,exports){
|
|
24674
24737
|
module.exports=[
|
|
24675
24738
|
{
|
|
24676
24739
|
"description": "maximum validation",
|
|
@@ -24714,7 +24777,7 @@ module.exports=[
|
|
|
24714
24777
|
}
|
|
24715
24778
|
]
|
|
24716
24779
|
|
|
24717
|
-
},{}],
|
|
24780
|
+
},{}],273:[function(require,module,exports){
|
|
24718
24781
|
module.exports=[
|
|
24719
24782
|
{
|
|
24720
24783
|
"description": "minItems validation",
|
|
@@ -24744,7 +24807,7 @@ module.exports=[
|
|
|
24744
24807
|
}
|
|
24745
24808
|
]
|
|
24746
24809
|
|
|
24747
|
-
},{}],
|
|
24810
|
+
},{}],274:[function(require,module,exports){
|
|
24748
24811
|
module.exports=[
|
|
24749
24812
|
{
|
|
24750
24813
|
"description": "minLength validation",
|
|
@@ -24779,7 +24842,7 @@ module.exports=[
|
|
|
24779
24842
|
}
|
|
24780
24843
|
]
|
|
24781
24844
|
|
|
24782
|
-
},{}],
|
|
24845
|
+
},{}],275:[function(require,module,exports){
|
|
24783
24846
|
module.exports=[
|
|
24784
24847
|
{
|
|
24785
24848
|
"description": "minProperties validation",
|
|
@@ -24809,7 +24872,7 @@ module.exports=[
|
|
|
24809
24872
|
}
|
|
24810
24873
|
]
|
|
24811
24874
|
|
|
24812
|
-
},{}],
|
|
24875
|
+
},{}],276:[function(require,module,exports){
|
|
24813
24876
|
module.exports=[
|
|
24814
24877
|
{
|
|
24815
24878
|
"description": "minimum validation",
|
|
@@ -24853,7 +24916,7 @@ module.exports=[
|
|
|
24853
24916
|
}
|
|
24854
24917
|
]
|
|
24855
24918
|
|
|
24856
|
-
},{}],
|
|
24919
|
+
},{}],277:[function(require,module,exports){
|
|
24857
24920
|
module.exports=[
|
|
24858
24921
|
{
|
|
24859
24922
|
"description": "by int",
|
|
@@ -24915,7 +24978,7 @@ module.exports=[
|
|
|
24915
24978
|
}
|
|
24916
24979
|
]
|
|
24917
24980
|
|
|
24918
|
-
},{}],
|
|
24981
|
+
},{}],278:[function(require,module,exports){
|
|
24919
24982
|
module.exports=[
|
|
24920
24983
|
{
|
|
24921
24984
|
"description": "not",
|
|
@@ -25013,7 +25076,7 @@ module.exports=[
|
|
|
25013
25076
|
|
|
25014
25077
|
]
|
|
25015
25078
|
|
|
25016
|
-
},{}],
|
|
25079
|
+
},{}],279:[function(require,module,exports){
|
|
25017
25080
|
module.exports=[
|
|
25018
25081
|
{
|
|
25019
25082
|
"description": "oneOf",
|
|
@@ -25083,7 +25146,7 @@ module.exports=[
|
|
|
25083
25146
|
}
|
|
25084
25147
|
]
|
|
25085
25148
|
|
|
25086
|
-
},{}],
|
|
25149
|
+
},{}],280:[function(require,module,exports){
|
|
25087
25150
|
module.exports=[
|
|
25088
25151
|
{
|
|
25089
25152
|
"description": "integer",
|
|
@@ -25192,7 +25255,7 @@ module.exports=[
|
|
|
25192
25255
|
}
|
|
25193
25256
|
]
|
|
25194
25257
|
|
|
25195
|
-
},{}],
|
|
25258
|
+
},{}],281:[function(require,module,exports){
|
|
25196
25259
|
module.exports=[
|
|
25197
25260
|
{
|
|
25198
25261
|
"description": "validation of date-time strings",
|
|
@@ -25337,7 +25400,7 @@ module.exports=[
|
|
|
25337
25400
|
}
|
|
25338
25401
|
]
|
|
25339
25402
|
|
|
25340
|
-
},{}],
|
|
25403
|
+
},{}],282:[function(require,module,exports){
|
|
25341
25404
|
module.exports=[
|
|
25342
25405
|
{
|
|
25343
25406
|
"description": "pattern validation",
|
|
@@ -25362,7 +25425,7 @@ module.exports=[
|
|
|
25362
25425
|
}
|
|
25363
25426
|
]
|
|
25364
25427
|
|
|
25365
|
-
},{}],
|
|
25428
|
+
},{}],283:[function(require,module,exports){
|
|
25366
25429
|
module.exports=[
|
|
25367
25430
|
{
|
|
25368
25431
|
"description":
|
|
@@ -25474,7 +25537,7 @@ module.exports=[
|
|
|
25474
25537
|
}
|
|
25475
25538
|
]
|
|
25476
25539
|
|
|
25477
|
-
},{}],
|
|
25540
|
+
},{}],284:[function(require,module,exports){
|
|
25478
25541
|
module.exports=[
|
|
25479
25542
|
{
|
|
25480
25543
|
"description": "object properties validation",
|
|
@@ -25568,7 +25631,7 @@ module.exports=[
|
|
|
25568
25631
|
}
|
|
25569
25632
|
]
|
|
25570
25633
|
|
|
25571
|
-
},{}],
|
|
25634
|
+
},{}],285:[function(require,module,exports){
|
|
25572
25635
|
module.exports=[
|
|
25573
25636
|
{
|
|
25574
25637
|
"description": "root pointer ref",
|
|
@@ -25714,7 +25777,7 @@ module.exports=[
|
|
|
25714
25777
|
}
|
|
25715
25778
|
]
|
|
25716
25779
|
|
|
25717
|
-
},{}],
|
|
25780
|
+
},{}],286:[function(require,module,exports){
|
|
25718
25781
|
module.exports=[
|
|
25719
25782
|
{
|
|
25720
25783
|
"description": "remote ref",
|
|
@@ -25790,7 +25853,7 @@ module.exports=[
|
|
|
25790
25853
|
}
|
|
25791
25854
|
]
|
|
25792
25855
|
|
|
25793
|
-
},{}],
|
|
25856
|
+
},{}],287:[function(require,module,exports){
|
|
25794
25857
|
module.exports=[
|
|
25795
25858
|
{
|
|
25796
25859
|
"description": "required validation",
|
|
@@ -25831,7 +25894,7 @@ module.exports=[
|
|
|
25831
25894
|
}
|
|
25832
25895
|
]
|
|
25833
25896
|
|
|
25834
|
-
},{}],
|
|
25897
|
+
},{}],288:[function(require,module,exports){
|
|
25835
25898
|
module.exports=[
|
|
25836
25899
|
{
|
|
25837
25900
|
"description": "integer type matches integers",
|
|
@@ -26163,7 +26226,7 @@ module.exports=[
|
|
|
26163
26226
|
}
|
|
26164
26227
|
]
|
|
26165
26228
|
|
|
26166
|
-
},{}],
|
|
26229
|
+
},{}],289:[function(require,module,exports){
|
|
26167
26230
|
module.exports=[
|
|
26168
26231
|
{
|
|
26169
26232
|
"description": "uniqueItems validation",
|
|
@@ -26244,7 +26307,7 @@ module.exports=[
|
|
|
26244
26307
|
}
|
|
26245
26308
|
]
|
|
26246
26309
|
|
|
26247
|
-
},{}],
|
|
26310
|
+
},{}],290:[function(require,module,exports){
|
|
26248
26311
|
"use strict";
|
|
26249
26312
|
|
|
26250
26313
|
var isBrowser = typeof window !== "undefined";
|
|
@@ -26337,7 +26400,7 @@ describe("Automatic schema loading", function () {
|
|
|
26337
26400
|
|
|
26338
26401
|
});
|
|
26339
26402
|
|
|
26340
|
-
},{"../../src/ZSchema":179,"https":59}],
|
|
26403
|
+
},{"../../src/ZSchema":179,"https":59}],291:[function(require,module,exports){
|
|
26341
26404
|
"use strict";
|
|
26342
26405
|
|
|
26343
26406
|
var ZSchema = require("../../src/ZSchema");
|
|
@@ -26409,7 +26472,7 @@ describe("Basic", function () {
|
|
|
26409
26472
|
|
|
26410
26473
|
});
|
|
26411
26474
|
|
|
26412
|
-
},{"../../src/ZSchema":179,"../files/draft-04-schema.json":
|
|
26475
|
+
},{"../../src/ZSchema":179,"../files/draft-04-schema.json":256,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":257,"../jsonSchemaTestSuite/remotes/integer.json":258,"../jsonSchemaTestSuite/remotes/subSchemas.json":259}],292:[function(require,module,exports){
|
|
26413
26476
|
"use strict";
|
|
26414
26477
|
|
|
26415
26478
|
var ZSchema = require("../../src/ZSchema");
|
|
@@ -26505,7 +26568,7 @@ describe("JsonSchemaTestSuite", function () {
|
|
|
26505
26568
|
|
|
26506
26569
|
});
|
|
26507
26570
|
|
|
26508
|
-
},{"../../src/ZSchema":179,"../files/draft-04-schema.json":
|
|
26571
|
+
},{"../../src/ZSchema":179,"../files/draft-04-schema.json":256,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":257,"../jsonSchemaTestSuite/remotes/integer.json":258,"../jsonSchemaTestSuite/remotes/subSchemas.json":259,"../jsonSchemaTestSuite/tests/draft4/additionalItems.json":260,"../jsonSchemaTestSuite/tests/draft4/additionalProperties.json":261,"../jsonSchemaTestSuite/tests/draft4/allOf.json":262,"../jsonSchemaTestSuite/tests/draft4/anyOf.json":263,"../jsonSchemaTestSuite/tests/draft4/default.json":264,"../jsonSchemaTestSuite/tests/draft4/definitions.json":265,"../jsonSchemaTestSuite/tests/draft4/dependencies.json":266,"../jsonSchemaTestSuite/tests/draft4/enum.json":267,"../jsonSchemaTestSuite/tests/draft4/items.json":268,"../jsonSchemaTestSuite/tests/draft4/maxItems.json":269,"../jsonSchemaTestSuite/tests/draft4/maxLength.json":270,"../jsonSchemaTestSuite/tests/draft4/maxProperties.json":271,"../jsonSchemaTestSuite/tests/draft4/maximum.json":272,"../jsonSchemaTestSuite/tests/draft4/minItems.json":273,"../jsonSchemaTestSuite/tests/draft4/minLength.json":274,"../jsonSchemaTestSuite/tests/draft4/minProperties.json":275,"../jsonSchemaTestSuite/tests/draft4/minimum.json":276,"../jsonSchemaTestSuite/tests/draft4/multipleOf.json":277,"../jsonSchemaTestSuite/tests/draft4/not.json":278,"../jsonSchemaTestSuite/tests/draft4/oneOf.json":279,"../jsonSchemaTestSuite/tests/draft4/optional/bignum.json":280,"../jsonSchemaTestSuite/tests/draft4/optional/format.json":281,"../jsonSchemaTestSuite/tests/draft4/pattern.json":282,"../jsonSchemaTestSuite/tests/draft4/patternProperties.json":283,"../jsonSchemaTestSuite/tests/draft4/properties.json":284,"../jsonSchemaTestSuite/tests/draft4/ref.json":285,"../jsonSchemaTestSuite/tests/draft4/refRemote.json":286,"../jsonSchemaTestSuite/tests/draft4/required.json":287,"../jsonSchemaTestSuite/tests/draft4/type.json":288,"../jsonSchemaTestSuite/tests/draft4/uniqueItems.json":289}],293:[function(require,module,exports){
|
|
26509
26572
|
"use strict";
|
|
26510
26573
|
|
|
26511
26574
|
var ZSchema = require("../../src/ZSchema");
|
|
@@ -26539,7 +26602,7 @@ describe("Using multiple instances of Z-Schema", function () {
|
|
|
26539
26602
|
|
|
26540
26603
|
});
|
|
26541
26604
|
|
|
26542
|
-
},{"../../src/ZSchema":179}],
|
|
26605
|
+
},{"../../src/ZSchema":179}],294:[function(require,module,exports){
|
|
26543
26606
|
/*jshint -W030 */
|
|
26544
26607
|
|
|
26545
26608
|
"use strict";
|
|
@@ -26617,6 +26680,7 @@ var testSuiteFiles = [
|
|
|
26617
26680
|
require("../ZSchemaTestSuite/Issue151.js"),
|
|
26618
26681
|
require("../ZSchemaTestSuite/Issue209.js"),
|
|
26619
26682
|
require("../ZSchemaTestSuite/Issue222.js"),
|
|
26683
|
+
require("../ZSchemaTestSuite/Issue229.js"),
|
|
26620
26684
|
|
|
26621
26685
|
undefined
|
|
26622
26686
|
];
|
|
@@ -26630,8 +26694,8 @@ describe("ZSchemaTestSuite", function () {
|
|
|
26630
26694
|
}
|
|
26631
26695
|
}
|
|
26632
26696
|
|
|
26633
|
-
it("should contain
|
|
26634
|
-
expect(testSuiteFiles.length).toBe(
|
|
26697
|
+
it("should contain 70 files", function () {
|
|
26698
|
+
expect(testSuiteFiles.length).toBe(70);
|
|
26635
26699
|
});
|
|
26636
26700
|
|
|
26637
26701
|
testSuiteFiles.forEach(function (testSuite) {
|
|
@@ -26739,7 +26803,7 @@ describe("ZSchemaTestSuite", function () {
|
|
|
26739
26803
|
|
|
26740
26804
|
});
|
|
26741
26805
|
|
|
26742
|
-
},{"../../src/ZSchema":179,"../ZSchemaTestSuite/AssumeAdditional.js":182,"../ZSchemaTestSuite/CustomFormats.js":183,"../ZSchemaTestSuite/CustomFormatsAsync.js":184,"../ZSchemaTestSuite/CustomValidator.js":185,"../ZSchemaTestSuite/ErrorPathAsArray.js":186,"../ZSchemaTestSuite/ErrorPathAsJSONPointer.js":187,"../ZSchemaTestSuite/ForceAdditional.js":188,"../ZSchemaTestSuite/ForceItems.js":189,"../ZSchemaTestSuite/ForceMaxItems.js":190,"../ZSchemaTestSuite/ForceMaxLength.js":191,"../ZSchemaTestSuite/ForceMinItems.js":192,"../ZSchemaTestSuite/ForceMinLength.js":193,"../ZSchemaTestSuite/ForceProperties.js":194,"../ZSchemaTestSuite/IgnoreUnresolvableReferences.js":195,"../ZSchemaTestSuite/InvalidId.js":196,"../ZSchemaTestSuite/Issue101.js":197,"../ZSchemaTestSuite/Issue102.js":198,"../ZSchemaTestSuite/Issue103.js":199,"../ZSchemaTestSuite/Issue106.js":200,"../ZSchemaTestSuite/Issue107.js":201,"../ZSchemaTestSuite/Issue12.js":202,"../ZSchemaTestSuite/Issue121.js":203,"../ZSchemaTestSuite/Issue125.js":204,"../ZSchemaTestSuite/Issue126.js":205,"../ZSchemaTestSuite/Issue13.js":206,"../ZSchemaTestSuite/Issue130.js":207,"../ZSchemaTestSuite/Issue131.js":208,"../ZSchemaTestSuite/Issue137.js":209,"../ZSchemaTestSuite/Issue139.js":210,"../ZSchemaTestSuite/Issue142.js":211,"../ZSchemaTestSuite/Issue146.js":212,"../ZSchemaTestSuite/Issue151.js":213,"../ZSchemaTestSuite/Issue16.js":214,"../ZSchemaTestSuite/Issue209.js":215,"../ZSchemaTestSuite/Issue22.js":216,"../ZSchemaTestSuite/Issue222.js":217,"../ZSchemaTestSuite/
|
|
26806
|
+
},{"../../src/ZSchema":179,"../ZSchemaTestSuite/AssumeAdditional.js":182,"../ZSchemaTestSuite/CustomFormats.js":183,"../ZSchemaTestSuite/CustomFormatsAsync.js":184,"../ZSchemaTestSuite/CustomValidator.js":185,"../ZSchemaTestSuite/ErrorPathAsArray.js":186,"../ZSchemaTestSuite/ErrorPathAsJSONPointer.js":187,"../ZSchemaTestSuite/ForceAdditional.js":188,"../ZSchemaTestSuite/ForceItems.js":189,"../ZSchemaTestSuite/ForceMaxItems.js":190,"../ZSchemaTestSuite/ForceMaxLength.js":191,"../ZSchemaTestSuite/ForceMinItems.js":192,"../ZSchemaTestSuite/ForceMinLength.js":193,"../ZSchemaTestSuite/ForceProperties.js":194,"../ZSchemaTestSuite/IgnoreUnresolvableReferences.js":195,"../ZSchemaTestSuite/InvalidId.js":196,"../ZSchemaTestSuite/Issue101.js":197,"../ZSchemaTestSuite/Issue102.js":198,"../ZSchemaTestSuite/Issue103.js":199,"../ZSchemaTestSuite/Issue106.js":200,"../ZSchemaTestSuite/Issue107.js":201,"../ZSchemaTestSuite/Issue12.js":202,"../ZSchemaTestSuite/Issue121.js":203,"../ZSchemaTestSuite/Issue125.js":204,"../ZSchemaTestSuite/Issue126.js":205,"../ZSchemaTestSuite/Issue13.js":206,"../ZSchemaTestSuite/Issue130.js":207,"../ZSchemaTestSuite/Issue131.js":208,"../ZSchemaTestSuite/Issue137.js":209,"../ZSchemaTestSuite/Issue139.js":210,"../ZSchemaTestSuite/Issue142.js":211,"../ZSchemaTestSuite/Issue146.js":212,"../ZSchemaTestSuite/Issue151.js":213,"../ZSchemaTestSuite/Issue16.js":214,"../ZSchemaTestSuite/Issue209.js":215,"../ZSchemaTestSuite/Issue22.js":216,"../ZSchemaTestSuite/Issue222.js":217,"../ZSchemaTestSuite/Issue229.js":218,"../ZSchemaTestSuite/Issue25.js":219,"../ZSchemaTestSuite/Issue26.js":220,"../ZSchemaTestSuite/Issue37.js":221,"../ZSchemaTestSuite/Issue40.js":222,"../ZSchemaTestSuite/Issue41.js":223,"../ZSchemaTestSuite/Issue43.js":224,"../ZSchemaTestSuite/Issue44.js":225,"../ZSchemaTestSuite/Issue45.js":226,"../ZSchemaTestSuite/Issue47.js":227,"../ZSchemaTestSuite/Issue48.js":228,"../ZSchemaTestSuite/Issue49.js":229,"../ZSchemaTestSuite/Issue53.js":230,"../ZSchemaTestSuite/Issue56.js":231,"../ZSchemaTestSuite/Issue57.js":232,"../ZSchemaTestSuite/Issue58.js":233,"../ZSchemaTestSuite/Issue63.js":234,"../ZSchemaTestSuite/Issue64.js":235,"../ZSchemaTestSuite/Issue67.js":236,"../ZSchemaTestSuite/Issue71.js":237,"../ZSchemaTestSuite/Issue73.js":238,"../ZSchemaTestSuite/Issue76.js":239,"../ZSchemaTestSuite/Issue85.js":240,"../ZSchemaTestSuite/Issue94.js":241,"../ZSchemaTestSuite/Issue96.js":242,"../ZSchemaTestSuite/Issue98.js":243,"../ZSchemaTestSuite/MultipleSchemas.js":244,"../ZSchemaTestSuite/NoEmptyArrays.js":245,"../ZSchemaTestSuite/NoEmptyStrings.js":246,"../ZSchemaTestSuite/NoExtraKeywords.js":247,"../ZSchemaTestSuite/NoTypeless.js":248,"../ZSchemaTestSuite/PedanticCheck.js":249,"../ZSchemaTestSuite/StrictUris.js":250,"../ZSchemaTestSuite/getRegisteredFormats.js":255}],295:[function(require,module,exports){
|
|
26743
26807
|
"use strict";
|
|
26744
26808
|
|
|
26745
26809
|
var ZSchema = require("../../src/ZSchema");
|
|
@@ -26838,4 +26902,4 @@ describe("Using path to schema as a third argument", function () {
|
|
|
26838
26902
|
|
|
26839
26903
|
});
|
|
26840
26904
|
|
|
26841
|
-
},{"../../src/ZSchema":179}]},{},[
|
|
26905
|
+
},{"../../src/ZSchema":179}]},{},[290,291,292,293,295,294]);
|