@wp-playground/blueprints 1.0.3 → 1.0.5
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/blueprint-schema-validator.js +155 -138
- package/blueprint-schema.json +7 -4
- package/index.cjs +11 -15
- package/index.d.ts +1 -1
- package/index.js +676 -677
- package/lib/blueprint.d.ts +2 -1
- package/lib/compile.d.ts +1 -1
- package/package.json +11 -11
|
@@ -89,8 +89,7 @@ const schema11 = {
|
|
|
89
89
|
'Extra libraries to preload into the Playground instance.',
|
|
90
90
|
},
|
|
91
91
|
constants: {
|
|
92
|
-
|
|
93
|
-
additionalProperties: { type: 'string' },
|
|
92
|
+
$ref: '#/definitions/PHPConstants',
|
|
94
93
|
description: 'PHP Constants to define on every request',
|
|
95
94
|
},
|
|
96
95
|
plugins: {
|
|
@@ -167,6 +166,10 @@ const schema11 = {
|
|
|
167
166
|
],
|
|
168
167
|
},
|
|
169
168
|
ExtraLibrary: { type: 'string', const: 'wp-cli' },
|
|
169
|
+
PHPConstants: {
|
|
170
|
+
type: 'object',
|
|
171
|
+
additionalProperties: { type: ['string', 'boolean', 'number'] },
|
|
172
|
+
},
|
|
170
173
|
FileReference: {
|
|
171
174
|
anyOf: [
|
|
172
175
|
{ $ref: '#/definitions/VFSReference' },
|
|
@@ -1404,8 +1407,7 @@ const schema12 = {
|
|
|
1404
1407
|
'Extra libraries to preload into the Playground instance.',
|
|
1405
1408
|
},
|
|
1406
1409
|
constants: {
|
|
1407
|
-
|
|
1408
|
-
additionalProperties: { type: 'string' },
|
|
1410
|
+
$ref: '#/definitions/PHPConstants',
|
|
1409
1411
|
description: 'PHP Constants to define on every request',
|
|
1410
1412
|
},
|
|
1411
1413
|
plugins: {
|
|
@@ -1469,8 +1471,12 @@ const schema13 = {
|
|
|
1469
1471
|
enum: ['8.3', '8.2', '8.1', '8.0', '7.4', '7.3', '7.2', '7.1', '7.0'],
|
|
1470
1472
|
};
|
|
1471
1473
|
const schema14 = { type: 'string', const: 'wp-cli' };
|
|
1472
|
-
const func2 = Object.prototype.hasOwnProperty;
|
|
1473
1474
|
const schema15 = {
|
|
1475
|
+
type: 'object',
|
|
1476
|
+
additionalProperties: { type: ['string', 'boolean', 'number'] },
|
|
1477
|
+
};
|
|
1478
|
+
const func2 = Object.prototype.hasOwnProperty;
|
|
1479
|
+
const schema16 = {
|
|
1474
1480
|
anyOf: [
|
|
1475
1481
|
{ $ref: '#/definitions/VFSReference' },
|
|
1476
1482
|
{ $ref: '#/definitions/LiteralReference' },
|
|
@@ -1479,7 +1485,7 @@ const schema15 = {
|
|
|
1479
1485
|
{ $ref: '#/definitions/UrlReference' },
|
|
1480
1486
|
],
|
|
1481
1487
|
};
|
|
1482
|
-
const
|
|
1488
|
+
const schema17 = {
|
|
1483
1489
|
type: 'object',
|
|
1484
1490
|
properties: {
|
|
1485
1491
|
resource: {
|
|
@@ -1496,7 +1502,7 @@ const schema16 = {
|
|
|
1496
1502
|
required: ['resource', 'path'],
|
|
1497
1503
|
additionalProperties: false,
|
|
1498
1504
|
};
|
|
1499
|
-
const
|
|
1505
|
+
const schema18 = {
|
|
1500
1506
|
type: 'object',
|
|
1501
1507
|
properties: {
|
|
1502
1508
|
resource: {
|
|
@@ -1538,7 +1544,7 @@ const schema17 = {
|
|
|
1538
1544
|
required: ['resource', 'name', 'contents'],
|
|
1539
1545
|
additionalProperties: false,
|
|
1540
1546
|
};
|
|
1541
|
-
const
|
|
1547
|
+
const schema19 = {
|
|
1542
1548
|
type: 'object',
|
|
1543
1549
|
properties: {
|
|
1544
1550
|
resource: {
|
|
@@ -1555,7 +1561,7 @@ const schema18 = {
|
|
|
1555
1561
|
required: ['resource', 'slug'],
|
|
1556
1562
|
additionalProperties: false,
|
|
1557
1563
|
};
|
|
1558
|
-
const
|
|
1564
|
+
const schema20 = {
|
|
1559
1565
|
type: 'object',
|
|
1560
1566
|
properties: {
|
|
1561
1567
|
resource: {
|
|
@@ -1572,7 +1578,7 @@ const schema19 = {
|
|
|
1572
1578
|
required: ['resource', 'slug'],
|
|
1573
1579
|
additionalProperties: false,
|
|
1574
1580
|
};
|
|
1575
|
-
const
|
|
1581
|
+
const schema21 = {
|
|
1576
1582
|
type: 'object',
|
|
1577
1583
|
properties: {
|
|
1578
1584
|
resource: {
|
|
@@ -2984,7 +2990,7 @@ function validate12(
|
|
|
2984
2990
|
validate12.errors = vErrors;
|
|
2985
2991
|
return errors === 0;
|
|
2986
2992
|
}
|
|
2987
|
-
const
|
|
2993
|
+
const schema22 = {
|
|
2988
2994
|
type: 'object',
|
|
2989
2995
|
discriminator: { propertyName: 'step' },
|
|
2990
2996
|
required: ['step'],
|
|
@@ -3695,7 +3701,7 @@ const schema21 = {
|
|
|
3695
3701
|
},
|
|
3696
3702
|
],
|
|
3697
3703
|
};
|
|
3698
|
-
const
|
|
3704
|
+
const schema27 = {
|
|
3699
3705
|
type: 'object',
|
|
3700
3706
|
properties: {
|
|
3701
3707
|
activate: {
|
|
@@ -3710,7 +3716,7 @@ const schema26 = {
|
|
|
3710
3716
|
},
|
|
3711
3717
|
additionalProperties: false,
|
|
3712
3718
|
};
|
|
3713
|
-
const
|
|
3719
|
+
const schema28 = {
|
|
3714
3720
|
type: 'object',
|
|
3715
3721
|
properties: {
|
|
3716
3722
|
activate: {
|
|
@@ -3730,7 +3736,7 @@ const schema27 = {
|
|
|
3730
3736
|
},
|
|
3731
3737
|
additionalProperties: false,
|
|
3732
3738
|
};
|
|
3733
|
-
const
|
|
3739
|
+
const schema35 = {
|
|
3734
3740
|
type: 'object',
|
|
3735
3741
|
properties: {
|
|
3736
3742
|
adminUsername: { type: 'string' },
|
|
@@ -3738,13 +3744,13 @@ const schema34 = {
|
|
|
3738
3744
|
},
|
|
3739
3745
|
additionalProperties: false,
|
|
3740
3746
|
};
|
|
3741
|
-
const
|
|
3747
|
+
const schema23 = {
|
|
3742
3748
|
anyOf: [
|
|
3743
3749
|
{ $ref: '#/definitions/GitDirectoryReference' },
|
|
3744
3750
|
{ $ref: '#/definitions/DirectoryLiteralReference' },
|
|
3745
3751
|
],
|
|
3746
3752
|
};
|
|
3747
|
-
const
|
|
3753
|
+
const schema24 = {
|
|
3748
3754
|
type: 'object',
|
|
3749
3755
|
properties: {
|
|
3750
3756
|
resource: {
|
|
@@ -3765,7 +3771,7 @@ const schema23 = {
|
|
|
3765
3771
|
required: ['resource', 'url', 'ref', 'path'],
|
|
3766
3772
|
additionalProperties: false,
|
|
3767
3773
|
};
|
|
3768
|
-
const
|
|
3774
|
+
const schema25 = {
|
|
3769
3775
|
type: 'object',
|
|
3770
3776
|
additionalProperties: false,
|
|
3771
3777
|
properties: {
|
|
@@ -3779,7 +3785,7 @@ const schema24 = {
|
|
|
3779
3785
|
},
|
|
3780
3786
|
required: ['files', 'name', 'resource'],
|
|
3781
3787
|
};
|
|
3782
|
-
const
|
|
3788
|
+
const schema26 = {
|
|
3783
3789
|
type: 'object',
|
|
3784
3790
|
additionalProperties: {
|
|
3785
3791
|
anyOf: [
|
|
@@ -3841,7 +3847,7 @@ function validate20(
|
|
|
3841
3847
|
schemaPath: '#/additionalProperties/anyOf/1/type',
|
|
3842
3848
|
keyword: 'type',
|
|
3843
3849
|
params: {
|
|
3844
|
-
type:
|
|
3850
|
+
type: schema26.additionalProperties.anyOf[1]
|
|
3845
3851
|
.type,
|
|
3846
3852
|
},
|
|
3847
3853
|
message: 'must be object,string',
|
|
@@ -4291,7 +4297,7 @@ function validate18(
|
|
|
4291
4297
|
validate18.errors = vErrors;
|
|
4292
4298
|
return errors === 0;
|
|
4293
4299
|
}
|
|
4294
|
-
const
|
|
4300
|
+
const schema29 = {
|
|
4295
4301
|
type: 'object',
|
|
4296
4302
|
properties: {
|
|
4297
4303
|
method: {
|
|
@@ -4388,11 +4394,11 @@ const schema28 = {
|
|
|
4388
4394
|
required: ['url'],
|
|
4389
4395
|
additionalProperties: false,
|
|
4390
4396
|
};
|
|
4391
|
-
const
|
|
4397
|
+
const schema30 = {
|
|
4392
4398
|
type: 'string',
|
|
4393
4399
|
enum: ['GET', 'POST', 'HEAD', 'OPTIONS', 'PATCH', 'PUT', 'DELETE'],
|
|
4394
4400
|
};
|
|
4395
|
-
const
|
|
4401
|
+
const schema31 = { type: 'object', additionalProperties: { type: 'string' } };
|
|
4396
4402
|
function validate28(
|
|
4397
4403
|
data,
|
|
4398
4404
|
{ instancePath = '', parentData, parentDataProperty, rootData = data } = {}
|
|
@@ -4470,7 +4476,7 @@ function validate28(
|
|
|
4470
4476
|
instancePath: instancePath + '/method',
|
|
4471
4477
|
schemaPath: '#/definitions/HTTPMethod/enum',
|
|
4472
4478
|
keyword: 'enum',
|
|
4473
|
-
params: { allowedValues:
|
|
4479
|
+
params: { allowedValues: schema30.enum },
|
|
4474
4480
|
message:
|
|
4475
4481
|
'must be equal to one of the allowed values',
|
|
4476
4482
|
},
|
|
@@ -6574,7 +6580,7 @@ function validate28(
|
|
|
6574
6580
|
validate28.errors = vErrors;
|
|
6575
6581
|
return errors === 0;
|
|
6576
6582
|
}
|
|
6577
|
-
const
|
|
6583
|
+
const schema32 = {
|
|
6578
6584
|
type: 'object',
|
|
6579
6585
|
properties: {
|
|
6580
6586
|
relativeUri: {
|
|
@@ -6650,7 +6656,7 @@ function validate30(
|
|
|
6650
6656
|
if (data && typeof data == 'object' && !Array.isArray(data)) {
|
|
6651
6657
|
const _errs1 = errors;
|
|
6652
6658
|
for (const key0 in data) {
|
|
6653
|
-
if (!func2.call(
|
|
6659
|
+
if (!func2.call(schema32.properties, key0)) {
|
|
6654
6660
|
validate30.errors = [
|
|
6655
6661
|
{
|
|
6656
6662
|
instancePath,
|
|
@@ -6760,7 +6766,7 @@ function validate30(
|
|
|
6760
6766
|
'#/definitions/HTTPMethod/enum',
|
|
6761
6767
|
keyword: 'enum',
|
|
6762
6768
|
params: {
|
|
6763
|
-
allowedValues:
|
|
6769
|
+
allowedValues: schema30.enum,
|
|
6764
6770
|
},
|
|
6765
6771
|
message:
|
|
6766
6772
|
'must be equal to one of the allowed values',
|
|
@@ -9036,7 +9042,7 @@ function validate14(
|
|
|
9036
9042
|
'enum',
|
|
9037
9043
|
params: {
|
|
9038
9044
|
allowedValues:
|
|
9039
|
-
|
|
9045
|
+
schema22
|
|
9040
9046
|
.oneOf[3]
|
|
9041
9047
|
.properties
|
|
9042
9048
|
.method
|
|
@@ -10909,7 +10915,7 @@ function validate14(
|
|
|
10909
10915
|
keyword: 'enum',
|
|
10910
10916
|
params: {
|
|
10911
10917
|
allowedValues:
|
|
10912
|
-
|
|
10918
|
+
schema22
|
|
10913
10919
|
.oneOf[9]
|
|
10914
10920
|
.properties
|
|
10915
10921
|
.ifAlreadyInstalled
|
|
@@ -11575,7 +11581,7 @@ function validate14(
|
|
|
11575
11581
|
keyword: 'enum',
|
|
11576
11582
|
params: {
|
|
11577
11583
|
allowedValues:
|
|
11578
|
-
|
|
11584
|
+
schema22
|
|
11579
11585
|
.oneOf[10]
|
|
11580
11586
|
.properties
|
|
11581
11587
|
.ifAlreadyInstalled
|
|
@@ -19598,18 +19604,27 @@ function validate11(
|
|
|
19598
19604
|
if (data.constants !== undefined) {
|
|
19599
19605
|
let data15 = data.constants;
|
|
19600
19606
|
const _errs41 = errors;
|
|
19601
|
-
|
|
19607
|
+
const _errs42 = errors;
|
|
19608
|
+
if (errors === _errs42) {
|
|
19602
19609
|
if (
|
|
19603
19610
|
data15 &&
|
|
19604
19611
|
typeof data15 == 'object' &&
|
|
19605
19612
|
!Array.isArray(data15)
|
|
19606
19613
|
) {
|
|
19607
19614
|
for (const key4 in data15) {
|
|
19608
|
-
|
|
19615
|
+
let data16 =
|
|
19616
|
+
data15[key4];
|
|
19617
|
+
const _errs45 = errors;
|
|
19609
19618
|
if (
|
|
19610
|
-
typeof
|
|
19611
|
-
|
|
19612
|
-
|
|
19619
|
+
typeof data16 !==
|
|
19620
|
+
'string' &&
|
|
19621
|
+
typeof data16 !==
|
|
19622
|
+
'boolean' &&
|
|
19623
|
+
!(
|
|
19624
|
+
typeof data16 ==
|
|
19625
|
+
'number' &&
|
|
19626
|
+
isFinite(data16)
|
|
19627
|
+
)
|
|
19613
19628
|
) {
|
|
19614
19629
|
validate11.errors =
|
|
19615
19630
|
[
|
|
@@ -19627,21 +19642,23 @@ function validate11(
|
|
|
19627
19642
|
'~1'
|
|
19628
19643
|
),
|
|
19629
19644
|
schemaPath:
|
|
19630
|
-
'#/
|
|
19645
|
+
'#/definitions/PHPConstants/additionalProperties/type',
|
|
19631
19646
|
keyword:
|
|
19632
19647
|
'type',
|
|
19633
19648
|
params: {
|
|
19634
|
-
type:
|
|
19649
|
+
type: schema15
|
|
19650
|
+
.additionalProperties
|
|
19651
|
+
.type,
|
|
19635
19652
|
},
|
|
19636
19653
|
message:
|
|
19637
|
-
'must be string',
|
|
19654
|
+
'must be string,boolean,number',
|
|
19638
19655
|
},
|
|
19639
19656
|
];
|
|
19640
19657
|
return false;
|
|
19641
19658
|
}
|
|
19642
|
-
var
|
|
19643
|
-
|
|
19644
|
-
if (!
|
|
19659
|
+
var valid10 =
|
|
19660
|
+
_errs45 === errors;
|
|
19661
|
+
if (!valid10) {
|
|
19645
19662
|
break;
|
|
19646
19663
|
}
|
|
19647
19664
|
}
|
|
@@ -19652,7 +19669,7 @@ function validate11(
|
|
|
19652
19669
|
instancePath +
|
|
19653
19670
|
'/constants',
|
|
19654
19671
|
schemaPath:
|
|
19655
|
-
'#/
|
|
19672
|
+
'#/definitions/PHPConstants/type',
|
|
19656
19673
|
keyword: 'type',
|
|
19657
19674
|
params: {
|
|
19658
19675
|
type: 'object',
|
|
@@ -19671,10 +19688,10 @@ function validate11(
|
|
|
19671
19688
|
if (valid0) {
|
|
19672
19689
|
if (data.plugins !== undefined) {
|
|
19673
19690
|
let data17 = data.plugins;
|
|
19674
|
-
const
|
|
19675
|
-
if (errors ===
|
|
19691
|
+
const _errs47 = errors;
|
|
19692
|
+
if (errors === _errs47) {
|
|
19676
19693
|
if (Array.isArray(data17)) {
|
|
19677
|
-
var
|
|
19694
|
+
var valid11 = true;
|
|
19678
19695
|
const len2 =
|
|
19679
19696
|
data17.length;
|
|
19680
19697
|
for (
|
|
@@ -19684,13 +19701,13 @@ function validate11(
|
|
|
19684
19701
|
) {
|
|
19685
19702
|
let data18 =
|
|
19686
19703
|
data17[i2];
|
|
19687
|
-
const _errs48 =
|
|
19688
|
-
errors;
|
|
19689
19704
|
const _errs49 =
|
|
19690
19705
|
errors;
|
|
19691
|
-
let valid11 = false;
|
|
19692
19706
|
const _errs50 =
|
|
19693
19707
|
errors;
|
|
19708
|
+
let valid12 = false;
|
|
19709
|
+
const _errs51 =
|
|
19710
|
+
errors;
|
|
19694
19711
|
if (
|
|
19695
19712
|
typeof data18 !==
|
|
19696
19713
|
'string'
|
|
@@ -19725,13 +19742,13 @@ function validate11(
|
|
|
19725
19742
|
errors++;
|
|
19726
19743
|
}
|
|
19727
19744
|
var _valid1 =
|
|
19728
|
-
|
|
19745
|
+
_errs51 ===
|
|
19729
19746
|
errors;
|
|
19730
|
-
|
|
19731
|
-
|
|
19747
|
+
valid12 =
|
|
19748
|
+
valid12 ||
|
|
19732
19749
|
_valid1;
|
|
19733
|
-
if (!
|
|
19734
|
-
const
|
|
19750
|
+
if (!valid12) {
|
|
19751
|
+
const _errs53 =
|
|
19735
19752
|
errors;
|
|
19736
19753
|
if (
|
|
19737
19754
|
!validate12(
|
|
@@ -19760,13 +19777,13 @@ function validate11(
|
|
|
19760
19777
|
vErrors.length;
|
|
19761
19778
|
}
|
|
19762
19779
|
var _valid1 =
|
|
19763
|
-
|
|
19780
|
+
_errs53 ===
|
|
19764
19781
|
errors;
|
|
19765
|
-
|
|
19766
|
-
|
|
19782
|
+
valid12 =
|
|
19783
|
+
valid12 ||
|
|
19767
19784
|
_valid1;
|
|
19768
19785
|
}
|
|
19769
|
-
if (!
|
|
19786
|
+
if (!valid12) {
|
|
19770
19787
|
const err6 = {
|
|
19771
19788
|
instancePath:
|
|
19772
19789
|
instancePath +
|
|
@@ -19798,26 +19815,26 @@ function validate11(
|
|
|
19798
19815
|
return false;
|
|
19799
19816
|
} else {
|
|
19800
19817
|
errors =
|
|
19801
|
-
|
|
19818
|
+
_errs50;
|
|
19802
19819
|
if (
|
|
19803
19820
|
vErrors !==
|
|
19804
19821
|
null
|
|
19805
19822
|
) {
|
|
19806
19823
|
if (
|
|
19807
|
-
|
|
19824
|
+
_errs50
|
|
19808
19825
|
) {
|
|
19809
19826
|
vErrors.length =
|
|
19810
|
-
|
|
19827
|
+
_errs50;
|
|
19811
19828
|
} else {
|
|
19812
19829
|
vErrors =
|
|
19813
19830
|
null;
|
|
19814
19831
|
}
|
|
19815
19832
|
}
|
|
19816
19833
|
}
|
|
19817
|
-
var
|
|
19818
|
-
|
|
19834
|
+
var valid11 =
|
|
19835
|
+
_errs49 ===
|
|
19819
19836
|
errors;
|
|
19820
|
-
if (!
|
|
19837
|
+
if (!valid11) {
|
|
19821
19838
|
break;
|
|
19822
19839
|
}
|
|
19823
19840
|
}
|
|
@@ -19840,7 +19857,7 @@ function validate11(
|
|
|
19840
19857
|
return false;
|
|
19841
19858
|
}
|
|
19842
19859
|
}
|
|
19843
|
-
var valid0 =
|
|
19860
|
+
var valid0 = _errs47 === errors;
|
|
19844
19861
|
} else {
|
|
19845
19862
|
var valid0 = true;
|
|
19846
19863
|
}
|
|
@@ -19851,8 +19868,8 @@ function validate11(
|
|
|
19851
19868
|
) {
|
|
19852
19869
|
let data19 =
|
|
19853
19870
|
data.siteOptions;
|
|
19854
|
-
const
|
|
19855
|
-
if (errors ===
|
|
19871
|
+
const _errs54 = errors;
|
|
19872
|
+
if (errors === _errs54) {
|
|
19856
19873
|
if (
|
|
19857
19874
|
data19 &&
|
|
19858
19875
|
typeof data19 ==
|
|
@@ -19861,7 +19878,7 @@ function validate11(
|
|
|
19861
19878
|
data19
|
|
19862
19879
|
)
|
|
19863
19880
|
) {
|
|
19864
|
-
const
|
|
19881
|
+
const _errs56 =
|
|
19865
19882
|
errors;
|
|
19866
19883
|
for (const key5 in data19) {
|
|
19867
19884
|
if (
|
|
@@ -19870,7 +19887,7 @@ function validate11(
|
|
|
19870
19887
|
'blogname'
|
|
19871
19888
|
)
|
|
19872
19889
|
) {
|
|
19873
|
-
const
|
|
19890
|
+
const _errs57 =
|
|
19874
19891
|
errors;
|
|
19875
19892
|
if (
|
|
19876
19893
|
typeof data19[
|
|
@@ -19906,18 +19923,18 @@ function validate11(
|
|
|
19906
19923
|
];
|
|
19907
19924
|
return false;
|
|
19908
19925
|
}
|
|
19909
|
-
var
|
|
19910
|
-
|
|
19926
|
+
var valid13 =
|
|
19927
|
+
_errs57 ===
|
|
19911
19928
|
errors;
|
|
19912
19929
|
if (
|
|
19913
|
-
!
|
|
19930
|
+
!valid13
|
|
19914
19931
|
) {
|
|
19915
19932
|
break;
|
|
19916
19933
|
}
|
|
19917
19934
|
}
|
|
19918
19935
|
}
|
|
19919
19936
|
if (
|
|
19920
|
-
|
|
19937
|
+
_errs56 ===
|
|
19921
19938
|
errors
|
|
19922
19939
|
) {
|
|
19923
19940
|
if (
|
|
@@ -19971,7 +19988,7 @@ function validate11(
|
|
|
19971
19988
|
}
|
|
19972
19989
|
}
|
|
19973
19990
|
var valid0 =
|
|
19974
|
-
|
|
19991
|
+
_errs54 === errors;
|
|
19975
19992
|
} else {
|
|
19976
19993
|
var valid0 = true;
|
|
19977
19994
|
}
|
|
@@ -19980,10 +19997,10 @@ function validate11(
|
|
|
19980
19997
|
data.login !== undefined
|
|
19981
19998
|
) {
|
|
19982
19999
|
let data22 = data.login;
|
|
19983
|
-
const _errs60 = errors;
|
|
19984
20000
|
const _errs61 = errors;
|
|
19985
|
-
let valid14 = false;
|
|
19986
20001
|
const _errs62 = errors;
|
|
20002
|
+
let valid15 = false;
|
|
20003
|
+
const _errs63 = errors;
|
|
19987
20004
|
if (
|
|
19988
20005
|
typeof data22 !==
|
|
19989
20006
|
'boolean'
|
|
@@ -20015,15 +20032,15 @@ function validate11(
|
|
|
20015
20032
|
errors++;
|
|
20016
20033
|
}
|
|
20017
20034
|
var _valid2 =
|
|
20018
|
-
|
|
20019
|
-
|
|
20020
|
-
|
|
20021
|
-
if (!
|
|
20022
|
-
const
|
|
20035
|
+
_errs63 === errors;
|
|
20036
|
+
valid15 =
|
|
20037
|
+
valid15 || _valid2;
|
|
20038
|
+
if (!valid15) {
|
|
20039
|
+
const _errs65 =
|
|
20023
20040
|
errors;
|
|
20024
20041
|
if (
|
|
20025
20042
|
errors ===
|
|
20026
|
-
|
|
20043
|
+
_errs65
|
|
20027
20044
|
) {
|
|
20028
20045
|
if (
|
|
20029
20046
|
data22 &&
|
|
@@ -20077,7 +20094,7 @@ function validate11(
|
|
|
20077
20094
|
}
|
|
20078
20095
|
errors++;
|
|
20079
20096
|
} else {
|
|
20080
|
-
const
|
|
20097
|
+
const _errs67 =
|
|
20081
20098
|
errors;
|
|
20082
20099
|
for (const key6 in data22) {
|
|
20083
20100
|
if (
|
|
@@ -20122,14 +20139,14 @@ function validate11(
|
|
|
20122
20139
|
}
|
|
20123
20140
|
}
|
|
20124
20141
|
if (
|
|
20125
|
-
|
|
20142
|
+
_errs67 ===
|
|
20126
20143
|
errors
|
|
20127
20144
|
) {
|
|
20128
20145
|
if (
|
|
20129
20146
|
data22.username !==
|
|
20130
20147
|
undefined
|
|
20131
20148
|
) {
|
|
20132
|
-
const
|
|
20149
|
+
const _errs68 =
|
|
20133
20150
|
errors;
|
|
20134
20151
|
if (
|
|
20135
20152
|
typeof data22.username !==
|
|
@@ -20165,20 +20182,20 @@ function validate11(
|
|
|
20165
20182
|
}
|
|
20166
20183
|
errors++;
|
|
20167
20184
|
}
|
|
20168
|
-
var
|
|
20169
|
-
|
|
20185
|
+
var valid16 =
|
|
20186
|
+
_errs68 ===
|
|
20170
20187
|
errors;
|
|
20171
20188
|
} else {
|
|
20172
|
-
var
|
|
20189
|
+
var valid16 = true;
|
|
20173
20190
|
}
|
|
20174
20191
|
if (
|
|
20175
|
-
|
|
20192
|
+
valid16
|
|
20176
20193
|
) {
|
|
20177
20194
|
if (
|
|
20178
20195
|
data22.password !==
|
|
20179
20196
|
undefined
|
|
20180
20197
|
) {
|
|
20181
|
-
const
|
|
20198
|
+
const _errs70 =
|
|
20182
20199
|
errors;
|
|
20183
20200
|
if (
|
|
20184
20201
|
typeof data22.password !==
|
|
@@ -20214,11 +20231,11 @@ function validate11(
|
|
|
20214
20231
|
}
|
|
20215
20232
|
errors++;
|
|
20216
20233
|
}
|
|
20217
|
-
var
|
|
20218
|
-
|
|
20234
|
+
var valid16 =
|
|
20235
|
+
_errs70 ===
|
|
20219
20236
|
errors;
|
|
20220
20237
|
} else {
|
|
20221
|
-
var
|
|
20238
|
+
var valid16 = true;
|
|
20222
20239
|
}
|
|
20223
20240
|
}
|
|
20224
20241
|
}
|
|
@@ -20256,13 +20273,13 @@ function validate11(
|
|
|
20256
20273
|
}
|
|
20257
20274
|
}
|
|
20258
20275
|
var _valid2 =
|
|
20259
|
-
|
|
20276
|
+
_errs65 ===
|
|
20260
20277
|
errors;
|
|
20261
|
-
|
|
20262
|
-
|
|
20278
|
+
valid15 =
|
|
20279
|
+
valid15 ||
|
|
20263
20280
|
_valid2;
|
|
20264
20281
|
}
|
|
20265
|
-
if (!
|
|
20282
|
+
if (!valid15) {
|
|
20266
20283
|
const err13 = {
|
|
20267
20284
|
instancePath:
|
|
20268
20285
|
instancePath +
|
|
@@ -20291,13 +20308,13 @@ function validate11(
|
|
|
20291
20308
|
vErrors;
|
|
20292
20309
|
return false;
|
|
20293
20310
|
} else {
|
|
20294
|
-
errors =
|
|
20311
|
+
errors = _errs62;
|
|
20295
20312
|
if (
|
|
20296
20313
|
vErrors !== null
|
|
20297
20314
|
) {
|
|
20298
|
-
if (
|
|
20315
|
+
if (_errs62) {
|
|
20299
20316
|
vErrors.length =
|
|
20300
|
-
|
|
20317
|
+
_errs62;
|
|
20301
20318
|
} else {
|
|
20302
20319
|
vErrors =
|
|
20303
20320
|
null;
|
|
@@ -20305,7 +20322,7 @@ function validate11(
|
|
|
20305
20322
|
}
|
|
20306
20323
|
}
|
|
20307
20324
|
var valid0 =
|
|
20308
|
-
|
|
20325
|
+
_errs61 === errors;
|
|
20309
20326
|
} else {
|
|
20310
20327
|
var valid0 = true;
|
|
20311
20328
|
}
|
|
@@ -20316,18 +20333,18 @@ function validate11(
|
|
|
20316
20333
|
) {
|
|
20317
20334
|
let data25 =
|
|
20318
20335
|
data.steps;
|
|
20319
|
-
const
|
|
20336
|
+
const _errs72 =
|
|
20320
20337
|
errors;
|
|
20321
20338
|
if (
|
|
20322
20339
|
errors ===
|
|
20323
|
-
|
|
20340
|
+
_errs72
|
|
20324
20341
|
) {
|
|
20325
20342
|
if (
|
|
20326
20343
|
Array.isArray(
|
|
20327
20344
|
data25
|
|
20328
20345
|
)
|
|
20329
20346
|
) {
|
|
20330
|
-
var
|
|
20347
|
+
var valid17 = true;
|
|
20331
20348
|
const len3 =
|
|
20332
20349
|
data25.length;
|
|
20333
20350
|
for (
|
|
@@ -20340,13 +20357,13 @@ function validate11(
|
|
|
20340
20357
|
data25[
|
|
20341
20358
|
i3
|
|
20342
20359
|
];
|
|
20343
|
-
const _errs73 =
|
|
20344
|
-
errors;
|
|
20345
20360
|
const _errs74 =
|
|
20346
20361
|
errors;
|
|
20347
|
-
let valid17 = false;
|
|
20348
20362
|
const _errs75 =
|
|
20349
20363
|
errors;
|
|
20364
|
+
let valid18 = false;
|
|
20365
|
+
const _errs76 =
|
|
20366
|
+
errors;
|
|
20350
20367
|
if (
|
|
20351
20368
|
!validate14(
|
|
20352
20369
|
data26,
|
|
@@ -20374,15 +20391,15 @@ function validate11(
|
|
|
20374
20391
|
vErrors.length;
|
|
20375
20392
|
}
|
|
20376
20393
|
var _valid3 =
|
|
20377
|
-
|
|
20394
|
+
_errs76 ===
|
|
20378
20395
|
errors;
|
|
20379
|
-
|
|
20380
|
-
|
|
20396
|
+
valid18 =
|
|
20397
|
+
valid18 ||
|
|
20381
20398
|
_valid3;
|
|
20382
20399
|
if (
|
|
20383
|
-
!
|
|
20400
|
+
!valid18
|
|
20384
20401
|
) {
|
|
20385
|
-
const
|
|
20402
|
+
const _errs77 =
|
|
20386
20403
|
errors;
|
|
20387
20404
|
if (
|
|
20388
20405
|
typeof data26 !==
|
|
@@ -20420,15 +20437,15 @@ function validate11(
|
|
|
20420
20437
|
errors++;
|
|
20421
20438
|
}
|
|
20422
20439
|
var _valid3 =
|
|
20423
|
-
|
|
20440
|
+
_errs77 ===
|
|
20424
20441
|
errors;
|
|
20425
|
-
|
|
20426
|
-
|
|
20442
|
+
valid18 =
|
|
20443
|
+
valid18 ||
|
|
20427
20444
|
_valid3;
|
|
20428
20445
|
if (
|
|
20429
|
-
!
|
|
20446
|
+
!valid18
|
|
20430
20447
|
) {
|
|
20431
|
-
const
|
|
20448
|
+
const _errs79 =
|
|
20432
20449
|
errors;
|
|
20433
20450
|
const err15 =
|
|
20434
20451
|
{
|
|
@@ -20459,15 +20476,15 @@ function validate11(
|
|
|
20459
20476
|
}
|
|
20460
20477
|
errors++;
|
|
20461
20478
|
var _valid3 =
|
|
20462
|
-
|
|
20479
|
+
_errs79 ===
|
|
20463
20480
|
errors;
|
|
20464
|
-
|
|
20465
|
-
|
|
20481
|
+
valid18 =
|
|
20482
|
+
valid18 ||
|
|
20466
20483
|
_valid3;
|
|
20467
20484
|
if (
|
|
20468
|
-
!
|
|
20485
|
+
!valid18
|
|
20469
20486
|
) {
|
|
20470
|
-
const
|
|
20487
|
+
const _errs81 =
|
|
20471
20488
|
errors;
|
|
20472
20489
|
if (
|
|
20473
20490
|
typeof data26 !==
|
|
@@ -20540,15 +20557,15 @@ function validate11(
|
|
|
20540
20557
|
errors++;
|
|
20541
20558
|
}
|
|
20542
20559
|
var _valid3 =
|
|
20543
|
-
|
|
20560
|
+
_errs81 ===
|
|
20544
20561
|
errors;
|
|
20545
|
-
|
|
20546
|
-
|
|
20562
|
+
valid18 =
|
|
20563
|
+
valid18 ||
|
|
20547
20564
|
_valid3;
|
|
20548
20565
|
if (
|
|
20549
|
-
!
|
|
20566
|
+
!valid18
|
|
20550
20567
|
) {
|
|
20551
|
-
const
|
|
20568
|
+
const _errs83 =
|
|
20552
20569
|
errors;
|
|
20553
20570
|
if (
|
|
20554
20571
|
data26 !==
|
|
@@ -20586,17 +20603,17 @@ function validate11(
|
|
|
20586
20603
|
errors++;
|
|
20587
20604
|
}
|
|
20588
20605
|
var _valid3 =
|
|
20589
|
-
|
|
20606
|
+
_errs83 ===
|
|
20590
20607
|
errors;
|
|
20591
|
-
|
|
20592
|
-
|
|
20608
|
+
valid18 =
|
|
20609
|
+
valid18 ||
|
|
20593
20610
|
_valid3;
|
|
20594
20611
|
}
|
|
20595
20612
|
}
|
|
20596
20613
|
}
|
|
20597
20614
|
}
|
|
20598
20615
|
if (
|
|
20599
|
-
!
|
|
20616
|
+
!valid18
|
|
20600
20617
|
) {
|
|
20601
20618
|
const err19 =
|
|
20602
20619
|
{
|
|
@@ -20631,27 +20648,27 @@ function validate11(
|
|
|
20631
20648
|
return false;
|
|
20632
20649
|
} else {
|
|
20633
20650
|
errors =
|
|
20634
|
-
|
|
20651
|
+
_errs75;
|
|
20635
20652
|
if (
|
|
20636
20653
|
vErrors !==
|
|
20637
20654
|
null
|
|
20638
20655
|
) {
|
|
20639
20656
|
if (
|
|
20640
|
-
|
|
20657
|
+
_errs75
|
|
20641
20658
|
) {
|
|
20642
20659
|
vErrors.length =
|
|
20643
|
-
|
|
20660
|
+
_errs75;
|
|
20644
20661
|
} else {
|
|
20645
20662
|
vErrors =
|
|
20646
20663
|
null;
|
|
20647
20664
|
}
|
|
20648
20665
|
}
|
|
20649
20666
|
}
|
|
20650
|
-
var
|
|
20651
|
-
|
|
20667
|
+
var valid17 =
|
|
20668
|
+
_errs74 ===
|
|
20652
20669
|
errors;
|
|
20653
20670
|
if (
|
|
20654
|
-
!
|
|
20671
|
+
!valid17
|
|
20655
20672
|
) {
|
|
20656
20673
|
break;
|
|
20657
20674
|
}
|
|
@@ -20678,7 +20695,7 @@ function validate11(
|
|
|
20678
20695
|
}
|
|
20679
20696
|
}
|
|
20680
20697
|
var valid0 =
|
|
20681
|
-
|
|
20698
|
+
_errs72 ===
|
|
20682
20699
|
errors;
|
|
20683
20700
|
} else {
|
|
20684
20701
|
var valid0 = true;
|
|
@@ -20688,7 +20705,7 @@ function validate11(
|
|
|
20688
20705
|
data.$schema !==
|
|
20689
20706
|
undefined
|
|
20690
20707
|
) {
|
|
20691
|
-
const
|
|
20708
|
+
const _errs85 =
|
|
20692
20709
|
errors;
|
|
20693
20710
|
if (
|
|
20694
20711
|
typeof data.$schema !==
|
|
@@ -20714,7 +20731,7 @@ function validate11(
|
|
|
20714
20731
|
return false;
|
|
20715
20732
|
}
|
|
20716
20733
|
var valid0 =
|
|
20717
|
-
|
|
20734
|
+
_errs85 ===
|
|
20718
20735
|
errors;
|
|
20719
20736
|
} else {
|
|
20720
20737
|
var valid0 = true;
|