@wp-playground/blueprints 0.9.27 → 0.9.28

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.
@@ -82,6 +82,12 @@ const schema11 = {
82
82
  },
83
83
  additionalProperties: false,
84
84
  },
85
+ extraLibraries: {
86
+ type: 'array',
87
+ items: { $ref: '#/definitions/ExtraLibrary' },
88
+ description:
89
+ 'Extra libraries to preload into the Playground instance.',
90
+ },
85
91
  constants: {
86
92
  type: 'object',
87
93
  additionalProperties: { type: 'string' },
@@ -163,6 +169,7 @@ const schema11 = {
163
169
  '7.0',
164
170
  ],
165
171
  },
172
+ ExtraLibrary: { type: 'string', const: 'wp-cli' },
166
173
  FileReference: {
167
174
  anyOf: [
168
175
  { $ref: '#/definitions/VFSReference' },
@@ -1283,6 +1290,12 @@ const schema12 = {
1283
1290
  },
1284
1291
  additionalProperties: false,
1285
1292
  },
1293
+ extraLibraries: {
1294
+ type: 'array',
1295
+ items: { $ref: '#/definitions/ExtraLibrary' },
1296
+ description:
1297
+ 'Extra libraries to preload into the Playground instance.',
1298
+ },
1286
1299
  constants: {
1287
1300
  type: 'object',
1288
1301
  additionalProperties: { type: 'string' },
@@ -1349,9 +1362,10 @@ const schema13 = {
1349
1362
  type: 'string',
1350
1363
  enum: ['8.3', '8.2', '8.1', '8.0', '7.4', '7.3', '7.2', '7.1', '7.0'],
1351
1364
  };
1352
- const schema20 = { type: 'string', enum: ['kitchen-sink', 'light'] };
1365
+ const schema14 = { type: 'string', const: 'wp-cli' };
1366
+ const schema21 = { type: 'string', enum: ['kitchen-sink', 'light'] };
1353
1367
  const func2 = Object.prototype.hasOwnProperty;
1354
- const schema14 = {
1368
+ const schema15 = {
1355
1369
  anyOf: [
1356
1370
  { $ref: '#/definitions/VFSReference' },
1357
1371
  { $ref: '#/definitions/LiteralReference' },
@@ -1360,7 +1374,7 @@ const schema14 = {
1360
1374
  { $ref: '#/definitions/UrlReference' },
1361
1375
  ],
1362
1376
  };
1363
- const schema15 = {
1377
+ const schema16 = {
1364
1378
  type: 'object',
1365
1379
  properties: {
1366
1380
  resource: {
@@ -1377,7 +1391,7 @@ const schema15 = {
1377
1391
  required: ['resource', 'path'],
1378
1392
  additionalProperties: false,
1379
1393
  };
1380
- const schema16 = {
1394
+ const schema17 = {
1381
1395
  type: 'object',
1382
1396
  properties: {
1383
1397
  resource: {
@@ -1419,7 +1433,7 @@ const schema16 = {
1419
1433
  required: ['resource', 'name', 'contents'],
1420
1434
  additionalProperties: false,
1421
1435
  };
1422
- const schema17 = {
1436
+ const schema18 = {
1423
1437
  type: 'object',
1424
1438
  properties: {
1425
1439
  resource: {
@@ -1436,7 +1450,7 @@ const schema17 = {
1436
1450
  required: ['resource', 'slug'],
1437
1451
  additionalProperties: false,
1438
1452
  };
1439
- const schema18 = {
1453
+ const schema19 = {
1440
1454
  type: 'object',
1441
1455
  properties: {
1442
1456
  resource: {
@@ -1453,7 +1467,7 @@ const schema18 = {
1453
1467
  required: ['resource', 'slug'],
1454
1468
  additionalProperties: false,
1455
1469
  };
1456
- const schema19 = {
1470
+ const schema20 = {
1457
1471
  type: 'object',
1458
1472
  properties: {
1459
1473
  resource: {
@@ -2865,7 +2879,7 @@ function validate12(
2865
2879
  validate12.errors = vErrors;
2866
2880
  return errors === 0;
2867
2881
  }
2868
- const schema21 = {
2882
+ const schema22 = {
2869
2883
  type: 'object',
2870
2884
  discriminator: { propertyName: 'step' },
2871
2885
  required: ['step'],
@@ -3548,7 +3562,7 @@ const schema21 = {
3548
3562
  },
3549
3563
  ],
3550
3564
  };
3551
- const schema22 = {
3565
+ const schema23 = {
3552
3566
  type: 'object',
3553
3567
  properties: {
3554
3568
  activate: {
@@ -3558,7 +3572,7 @@ const schema22 = {
3558
3572
  },
3559
3573
  additionalProperties: false,
3560
3574
  };
3561
- const schema29 = {
3575
+ const schema30 = {
3562
3576
  type: 'object',
3563
3577
  properties: {
3564
3578
  adminUsername: { type: 'string' },
@@ -3566,7 +3580,7 @@ const schema29 = {
3566
3580
  },
3567
3581
  additionalProperties: false,
3568
3582
  };
3569
- const schema23 = {
3583
+ const schema24 = {
3570
3584
  type: 'object',
3571
3585
  properties: {
3572
3586
  method: {
@@ -3663,11 +3677,11 @@ const schema23 = {
3663
3677
  required: ['url'],
3664
3678
  additionalProperties: false,
3665
3679
  };
3666
- const schema24 = {
3680
+ const schema25 = {
3667
3681
  type: 'string',
3668
3682
  enum: ['GET', 'POST', 'HEAD', 'OPTIONS', 'PATCH', 'PUT', 'DELETE'],
3669
3683
  };
3670
- const schema25 = { type: 'object', additionalProperties: { type: 'string' } };
3684
+ const schema26 = { type: 'object', additionalProperties: { type: 'string' } };
3671
3685
  function validate19(
3672
3686
  data,
3673
3687
  { instancePath = '', parentData, parentDataProperty, rootData = data } = {}
@@ -3745,7 +3759,7 @@ function validate19(
3745
3759
  instancePath: instancePath + '/method',
3746
3760
  schemaPath: '#/definitions/HTTPMethod/enum',
3747
3761
  keyword: 'enum',
3748
- params: { allowedValues: schema24.enum },
3762
+ params: { allowedValues: schema25.enum },
3749
3763
  message:
3750
3764
  'must be equal to one of the allowed values',
3751
3765
  },
@@ -5849,7 +5863,7 @@ function validate19(
5849
5863
  validate19.errors = vErrors;
5850
5864
  return errors === 0;
5851
5865
  }
5852
- const schema26 = {
5866
+ const schema27 = {
5853
5867
  type: 'object',
5854
5868
  properties: {
5855
5869
  relativeUri: {
@@ -5925,7 +5939,7 @@ function validate21(
5925
5939
  if (data && typeof data == 'object' && !Array.isArray(data)) {
5926
5940
  const _errs1 = errors;
5927
5941
  for (const key0 in data) {
5928
- if (!func2.call(schema26.properties, key0)) {
5942
+ if (!func2.call(schema27.properties, key0)) {
5929
5943
  validate21.errors = [
5930
5944
  {
5931
5945
  instancePath,
@@ -6035,7 +6049,7 @@ function validate21(
6035
6049
  '#/definitions/HTTPMethod/enum',
6036
6050
  keyword: 'enum',
6037
6051
  params: {
6038
- allowedValues: schema24.enum,
6052
+ allowedValues: schema25.enum,
6039
6053
  },
6040
6054
  message:
6041
6055
  'must be equal to one of the allowed values',
@@ -8311,7 +8325,7 @@ function validate14(
8311
8325
  'enum',
8312
8326
  params: {
8313
8327
  allowedValues:
8314
- schema21
8328
+ schema22
8315
8329
  .oneOf[3]
8316
8330
  .properties
8317
8331
  .method
@@ -10150,7 +10164,7 @@ function validate14(
10150
10164
  keyword: 'enum',
10151
10165
  params: {
10152
10166
  allowedValues:
10153
- schema21
10167
+ schema22
10154
10168
  .oneOf[9]
10155
10169
  .properties
10156
10170
  .ifAlreadyInstalled
@@ -10642,7 +10656,7 @@ function validate14(
10642
10656
  keyword: 'enum',
10643
10657
  params: {
10644
10658
  allowedValues:
10645
- schema21
10659
+ schema22
10646
10660
  .oneOf[10]
10647
10661
  .properties
10648
10662
  .ifAlreadyInstalled
@@ -18064,37 +18078,32 @@ function validate11(
18064
18078
  var valid0 = true;
18065
18079
  }
18066
18080
  if (valid0) {
18067
- if (data.constants !== undefined) {
18068
- let data13 = data.constants;
18081
+ if (data.extraLibraries !== undefined) {
18082
+ let data13 = data.extraLibraries;
18069
18083
  const _errs36 = errors;
18070
18084
  if (errors === _errs36) {
18071
- if (
18072
- data13 &&
18073
- typeof data13 == 'object' &&
18074
- !Array.isArray(data13)
18075
- ) {
18076
- for (const key4 in data13) {
18077
- const _errs39 = errors;
18085
+ if (Array.isArray(data13)) {
18086
+ var valid7 = true;
18087
+ const len1 = data13.length;
18088
+ for (
18089
+ let i1 = 0;
18090
+ i1 < len1;
18091
+ i1++
18092
+ ) {
18093
+ let data14 = data13[i1];
18094
+ const _errs38 = errors;
18078
18095
  if (
18079
- typeof data13[key4] !==
18096
+ typeof data14 !==
18080
18097
  'string'
18081
18098
  ) {
18082
18099
  validate11.errors = [
18083
18100
  {
18084
18101
  instancePath:
18085
18102
  instancePath +
18086
- '/constants/' +
18087
- key4
18088
- .replace(
18089
- /~/g,
18090
- '~0'
18091
- )
18092
- .replace(
18093
- /\//g,
18094
- '~1'
18095
- ),
18103
+ '/extraLibraries/' +
18104
+ i1,
18096
18105
  schemaPath:
18097
- '#/properties/constants/additionalProperties/type',
18106
+ '#/definitions/ExtraLibrary/type',
18098
18107
  keyword: 'type',
18099
18108
  params: {
18100
18109
  type: 'string',
@@ -18105,8 +18114,29 @@ function validate11(
18105
18114
  ];
18106
18115
  return false;
18107
18116
  }
18117
+ if ('wp-cli' !== data14) {
18118
+ validate11.errors = [
18119
+ {
18120
+ instancePath:
18121
+ instancePath +
18122
+ '/extraLibraries/' +
18123
+ i1,
18124
+ schemaPath:
18125
+ '#/definitions/ExtraLibrary/const',
18126
+ keyword:
18127
+ 'const',
18128
+ params: {
18129
+ allowedValue:
18130
+ 'wp-cli',
18131
+ },
18132
+ message:
18133
+ 'must be equal to constant',
18134
+ },
18135
+ ];
18136
+ return false;
18137
+ }
18108
18138
  var valid7 =
18109
- _errs39 === errors;
18139
+ _errs38 === errors;
18110
18140
  if (!valid7) {
18111
18141
  break;
18112
18142
  }
@@ -18116,15 +18146,15 @@ function validate11(
18116
18146
  {
18117
18147
  instancePath:
18118
18148
  instancePath +
18119
- '/constants',
18149
+ '/extraLibraries',
18120
18150
  schemaPath:
18121
- '#/properties/constants/type',
18151
+ '#/properties/extraLibraries/type',
18122
18152
  keyword: 'type',
18123
18153
  params: {
18124
- type: 'object',
18154
+ type: 'array',
18125
18155
  },
18126
18156
  message:
18127
- 'must be object',
18157
+ 'must be array',
18128
18158
  },
18129
18159
  ];
18130
18160
  return false;
@@ -18135,140 +18165,53 @@ function validate11(
18135
18165
  var valid0 = true;
18136
18166
  }
18137
18167
  if (valid0) {
18138
- if (data.plugins !== undefined) {
18139
- let data15 = data.plugins;
18168
+ if (data.constants !== undefined) {
18169
+ let data15 = data.constants;
18140
18170
  const _errs41 = errors;
18141
18171
  if (errors === _errs41) {
18142
- if (Array.isArray(data15)) {
18143
- var valid8 = true;
18144
- const len1 = data15.length;
18145
- for (
18146
- let i1 = 0;
18147
- i1 < len1;
18148
- i1++
18149
- ) {
18150
- let data16 = data15[i1];
18151
- const _errs43 = errors;
18172
+ if (
18173
+ data15 &&
18174
+ typeof data15 == 'object' &&
18175
+ !Array.isArray(data15)
18176
+ ) {
18177
+ for (const key4 in data15) {
18152
18178
  const _errs44 = errors;
18153
- let valid9 = false;
18154
- const _errs45 = errors;
18155
18179
  if (
18156
- typeof data16 !==
18157
- 'string'
18180
+ typeof data15[
18181
+ key4
18182
+ ] !== 'string'
18158
18183
  ) {
18159
- const err5 = {
18160
- instancePath:
18161
- instancePath +
18162
- '/plugins/' +
18163
- i1,
18164
- schemaPath:
18165
- '#/properties/plugins/items/anyOf/0/type',
18166
- keyword: 'type',
18167
- params: {
18168
- type: 'string',
18169
- },
18170
- message:
18171
- 'must be string',
18172
- };
18173
- if (
18174
- vErrors === null
18175
- ) {
18176
- vErrors = [
18177
- err5,
18178
- ];
18179
- } else {
18180
- vErrors.push(
18181
- err5
18182
- );
18183
- }
18184
- errors++;
18185
- }
18186
- var _valid1 =
18187
- _errs45 === errors;
18188
- valid9 =
18189
- valid9 || _valid1;
18190
- if (!valid9) {
18191
- const _errs47 =
18192
- errors;
18193
- if (
18194
- !validate12(
18195
- data16,
18184
+ validate11.errors =
18185
+ [
18196
18186
  {
18197
18187
  instancePath:
18198
18188
  instancePath +
18199
- '/plugins/' +
18200
- i1,
18201
- parentData:
18202
- data15,
18203
- parentDataProperty:
18204
- i1,
18205
- rootData,
18206
- }
18207
- )
18208
- ) {
18209
- vErrors =
18210
- vErrors ===
18211
- null
18212
- ? validate12.errors
18213
- : vErrors.concat(
18214
- validate12.errors
18215
- );
18216
- errors =
18217
- vErrors.length;
18218
- }
18219
- var _valid1 =
18220
- _errs47 ===
18221
- errors;
18222
- valid9 =
18223
- valid9 ||
18224
- _valid1;
18225
- }
18226
- if (!valid9) {
18227
- const err6 = {
18228
- instancePath:
18229
- instancePath +
18230
- '/plugins/' +
18231
- i1,
18232
- schemaPath:
18233
- '#/properties/plugins/items/anyOf',
18234
- keyword:
18235
- 'anyOf',
18236
- params: {},
18237
- message:
18238
- 'must match a schema in anyOf',
18239
- };
18240
- if (
18241
- vErrors === null
18242
- ) {
18243
- vErrors = [
18244
- err6,
18189
+ '/constants/' +
18190
+ key4
18191
+ .replace(
18192
+ /~/g,
18193
+ '~0'
18194
+ )
18195
+ .replace(
18196
+ /\//g,
18197
+ '~1'
18198
+ ),
18199
+ schemaPath:
18200
+ '#/properties/constants/additionalProperties/type',
18201
+ keyword:
18202
+ 'type',
18203
+ params: {
18204
+ type: 'string',
18205
+ },
18206
+ message:
18207
+ 'must be string',
18208
+ },
18245
18209
  ];
18246
- } else {
18247
- vErrors.push(
18248
- err6
18249
- );
18250
- }
18251
- errors++;
18252
- validate11.errors =
18253
- vErrors;
18254
18210
  return false;
18255
- } else {
18256
- errors = _errs44;
18257
- if (
18258
- vErrors !== null
18259
- ) {
18260
- if (_errs44) {
18261
- vErrors.length =
18262
- _errs44;
18263
- } else {
18264
- vErrors =
18265
- null;
18266
- }
18267
- }
18268
18211
  }
18269
- var valid8 =
18270
- _errs43 === errors;
18271
- if (!valid8) {
18212
+ var valid9 =
18213
+ _errs44 === errors;
18214
+ if (!valid9) {
18272
18215
  break;
18273
18216
  }
18274
18217
  }
@@ -18277,15 +18220,15 @@ function validate11(
18277
18220
  {
18278
18221
  instancePath:
18279
18222
  instancePath +
18280
- '/plugins',
18223
+ '/constants',
18281
18224
  schemaPath:
18282
- '#/properties/plugins/type',
18225
+ '#/properties/constants/type',
18283
18226
  keyword: 'type',
18284
18227
  params: {
18285
- type: 'array',
18228
+ type: 'object',
18286
18229
  },
18287
18230
  message:
18288
- 'must be array',
18231
+ 'must be object',
18289
18232
  },
18290
18233
  ];
18291
18234
  return false;
@@ -18296,289 +18239,440 @@ function validate11(
18296
18239
  var valid0 = true;
18297
18240
  }
18298
18241
  if (valid0) {
18299
- if (
18300
- data.siteOptions !== undefined
18301
- ) {
18302
- let data17 = data.siteOptions;
18303
- const _errs48 = errors;
18304
- if (errors === _errs48) {
18305
- if (
18306
- data17 &&
18307
- typeof data17 ==
18308
- 'object' &&
18309
- !Array.isArray(data17)
18310
- ) {
18311
- const _errs50 = errors;
18312
- for (const key5 in data17) {
18242
+ if (data.plugins !== undefined) {
18243
+ let data17 = data.plugins;
18244
+ const _errs46 = errors;
18245
+ if (errors === _errs46) {
18246
+ if (Array.isArray(data17)) {
18247
+ var valid10 = true;
18248
+ const len2 =
18249
+ data17.length;
18250
+ for (
18251
+ let i2 = 0;
18252
+ i2 < len2;
18253
+ i2++
18254
+ ) {
18255
+ let data18 =
18256
+ data17[i2];
18257
+ const _errs48 =
18258
+ errors;
18259
+ const _errs49 =
18260
+ errors;
18261
+ let valid11 = false;
18262
+ const _errs50 =
18263
+ errors;
18313
18264
  if (
18314
- !(
18315
- key5 ===
18316
- 'blogname'
18317
- )
18265
+ typeof data18 !==
18266
+ 'string'
18318
18267
  ) {
18319
- const _errs51 =
18320
- errors;
18268
+ const err5 = {
18269
+ instancePath:
18270
+ instancePath +
18271
+ '/plugins/' +
18272
+ i2,
18273
+ schemaPath:
18274
+ '#/properties/plugins/items/anyOf/0/type',
18275
+ keyword:
18276
+ 'type',
18277
+ params: {
18278
+ type: 'string',
18279
+ },
18280
+ message:
18281
+ 'must be string',
18282
+ };
18321
18283
  if (
18322
- typeof data17[
18323
- key5
18324
- ] !==
18325
- 'string'
18284
+ vErrors ===
18285
+ null
18326
18286
  ) {
18327
- validate11.errors =
18328
- [
18329
- {
18330
- instancePath:
18331
- instancePath +
18332
- '/siteOptions/' +
18333
- key5
18334
- .replace(
18335
- /~/g,
18336
- '~0'
18337
- )
18338
- .replace(
18339
- /\//g,
18340
- '~1'
18341
- ),
18342
- schemaPath:
18343
- '#/properties/siteOptions/additionalProperties/type',
18344
- keyword:
18345
- 'type',
18346
- params: {
18347
- type: 'string',
18348
- },
18349
- message:
18350
- 'must be string',
18351
- },
18352
- ];
18353
- return false;
18287
+ vErrors = [
18288
+ err5,
18289
+ ];
18290
+ } else {
18291
+ vErrors.push(
18292
+ err5
18293
+ );
18354
18294
  }
18355
- var valid10 =
18356
- _errs51 ===
18295
+ errors++;
18296
+ }
18297
+ var _valid1 =
18298
+ _errs50 ===
18299
+ errors;
18300
+ valid11 =
18301
+ valid11 ||
18302
+ _valid1;
18303
+ if (!valid11) {
18304
+ const _errs52 =
18357
18305
  errors;
18358
- if (!valid10) {
18359
- break;
18306
+ if (
18307
+ !validate12(
18308
+ data18,
18309
+ {
18310
+ instancePath:
18311
+ instancePath +
18312
+ '/plugins/' +
18313
+ i2,
18314
+ parentData:
18315
+ data17,
18316
+ parentDataProperty:
18317
+ i2,
18318
+ rootData,
18319
+ }
18320
+ )
18321
+ ) {
18322
+ vErrors =
18323
+ vErrors ===
18324
+ null
18325
+ ? validate12.errors
18326
+ : vErrors.concat(
18327
+ validate12.errors
18328
+ );
18329
+ errors =
18330
+ vErrors.length;
18360
18331
  }
18332
+ var _valid1 =
18333
+ _errs52 ===
18334
+ errors;
18335
+ valid11 =
18336
+ valid11 ||
18337
+ _valid1;
18361
18338
  }
18362
- }
18363
- if (
18364
- _errs50 === errors
18365
- ) {
18366
- if (
18367
- data17.blogname !==
18368
- undefined
18369
- ) {
18339
+ if (!valid11) {
18340
+ const err6 = {
18341
+ instancePath:
18342
+ instancePath +
18343
+ '/plugins/' +
18344
+ i2,
18345
+ schemaPath:
18346
+ '#/properties/plugins/items/anyOf',
18347
+ keyword:
18348
+ 'anyOf',
18349
+ params: {},
18350
+ message:
18351
+ 'must match a schema in anyOf',
18352
+ };
18370
18353
  if (
18371
- typeof data17.blogname !==
18372
- 'string'
18354
+ vErrors ===
18355
+ null
18373
18356
  ) {
18374
- validate11.errors =
18375
- [
18376
- {
18377
- instancePath:
18378
- instancePath +
18379
- '/siteOptions/blogname',
18380
- schemaPath:
18381
- '#/properties/siteOptions/properties/blogname/type',
18382
- keyword:
18383
- 'type',
18384
- params: {
18385
- type: 'string',
18386
- },
18387
- message:
18388
- 'must be string',
18389
- },
18390
- ];
18391
- return false;
18357
+ vErrors = [
18358
+ err6,
18359
+ ];
18360
+ } else {
18361
+ vErrors.push(
18362
+ err6
18363
+ );
18364
+ }
18365
+ errors++;
18366
+ validate11.errors =
18367
+ vErrors;
18368
+ return false;
18369
+ } else {
18370
+ errors =
18371
+ _errs49;
18372
+ if (
18373
+ vErrors !==
18374
+ null
18375
+ ) {
18376
+ if (
18377
+ _errs49
18378
+ ) {
18379
+ vErrors.length =
18380
+ _errs49;
18381
+ } else {
18382
+ vErrors =
18383
+ null;
18384
+ }
18392
18385
  }
18393
18386
  }
18387
+ var valid10 =
18388
+ _errs48 ===
18389
+ errors;
18390
+ if (!valid10) {
18391
+ break;
18392
+ }
18394
18393
  }
18395
18394
  } else {
18396
18395
  validate11.errors = [
18397
18396
  {
18398
18397
  instancePath:
18399
18398
  instancePath +
18400
- '/siteOptions',
18399
+ '/plugins',
18401
18400
  schemaPath:
18402
- '#/properties/siteOptions/type',
18401
+ '#/properties/plugins/type',
18403
18402
  keyword: 'type',
18404
18403
  params: {
18405
- type: 'object',
18404
+ type: 'array',
18406
18405
  },
18407
18406
  message:
18408
- 'must be object',
18407
+ 'must be array',
18409
18408
  },
18410
18409
  ];
18411
18410
  return false;
18412
18411
  }
18413
18412
  }
18414
- var valid0 = _errs48 === errors;
18413
+ var valid0 = _errs46 === errors;
18415
18414
  } else {
18416
18415
  var valid0 = true;
18417
18416
  }
18418
18417
  if (valid0) {
18419
- if (data.login !== undefined) {
18420
- let data20 = data.login;
18421
- const _errs55 = errors;
18422
- const _errs56 = errors;
18423
- let valid12 = false;
18424
- const _errs57 = errors;
18425
- if (
18426
- typeof data20 !==
18427
- 'boolean'
18428
- ) {
18429
- const err7 = {
18430
- instancePath:
18431
- instancePath +
18432
- '/login',
18433
- schemaPath:
18434
- '#/properties/login/anyOf/0/type',
18435
- keyword: 'type',
18436
- params: {
18437
- type: 'boolean',
18438
- },
18439
- message:
18440
- 'must be boolean',
18441
- };
18442
- if (vErrors === null) {
18443
- vErrors = [err7];
18444
- } else {
18445
- vErrors.push(err7);
18446
- }
18447
- errors++;
18448
- }
18449
- var _valid2 =
18450
- _errs57 === errors;
18451
- valid12 =
18452
- valid12 || _valid2;
18453
- if (!valid12) {
18454
- const _errs59 = errors;
18418
+ if (
18419
+ data.siteOptions !==
18420
+ undefined
18421
+ ) {
18422
+ let data19 =
18423
+ data.siteOptions;
18424
+ const _errs53 = errors;
18425
+ if (errors === _errs53) {
18455
18426
  if (
18456
- errors === _errs59
18427
+ data19 &&
18428
+ typeof data19 ==
18429
+ 'object' &&
18430
+ !Array.isArray(
18431
+ data19
18432
+ )
18457
18433
  ) {
18458
- if (
18459
- data20 &&
18460
- typeof data20 ==
18461
- 'object' &&
18462
- !Array.isArray(
18463
- data20
18464
- )
18465
- ) {
18466
- let missing2;
18434
+ const _errs55 =
18435
+ errors;
18436
+ for (const key5 in data19) {
18467
18437
  if (
18468
- (data20.username ===
18469
- undefined &&
18470
- (missing2 =
18471
- 'username')) ||
18472
- (data20.password ===
18473
- undefined &&
18474
- (missing2 =
18475
- 'password'))
18438
+ !(
18439
+ key5 ===
18440
+ 'blogname'
18441
+ )
18476
18442
  ) {
18477
- const err8 =
18478
- {
18479
- instancePath:
18480
- instancePath +
18481
- '/login',
18482
- schemaPath:
18483
- '#/properties/login/anyOf/1/required',
18484
- keyword:
18485
- 'required',
18486
- params: {
18487
- missingProperty:
18488
- missing2,
18489
- },
18490
- message:
18491
- "must have required property '" +
18492
- missing2 +
18493
- "'",
18494
- };
18443
+ const _errs56 =
18444
+ errors;
18495
18445
  if (
18496
- vErrors ===
18497
- null
18446
+ typeof data19[
18447
+ key5
18448
+ ] !==
18449
+ 'string'
18498
18450
  ) {
18499
- vErrors =
18451
+ validate11.errors =
18500
18452
  [
18501
- err8,
18453
+ {
18454
+ instancePath:
18455
+ instancePath +
18456
+ '/siteOptions/' +
18457
+ key5
18458
+ .replace(
18459
+ /~/g,
18460
+ '~0'
18461
+ )
18462
+ .replace(
18463
+ /\//g,
18464
+ '~1'
18465
+ ),
18466
+ schemaPath:
18467
+ '#/properties/siteOptions/additionalProperties/type',
18468
+ keyword:
18469
+ 'type',
18470
+ params: {
18471
+ type: 'string',
18472
+ },
18473
+ message:
18474
+ 'must be string',
18475
+ },
18502
18476
  ];
18503
- } else {
18504
- vErrors.push(
18505
- err8
18506
- );
18477
+ return false;
18507
18478
  }
18508
- errors++;
18509
- } else {
18510
- const _errs61 =
18479
+ var valid12 =
18480
+ _errs56 ===
18511
18481
  errors;
18512
- for (const key6 in data20) {
18513
- if (
18514
- !(
18515
- key6 ===
18516
- 'username' ||
18517
- key6 ===
18518
- 'password'
18519
- )
18520
- ) {
18521
- const err9 =
18482
+ if (
18483
+ !valid12
18484
+ ) {
18485
+ break;
18486
+ }
18487
+ }
18488
+ }
18489
+ if (
18490
+ _errs55 ===
18491
+ errors
18492
+ ) {
18493
+ if (
18494
+ data19.blogname !==
18495
+ undefined
18496
+ ) {
18497
+ if (
18498
+ typeof data19.blogname !==
18499
+ 'string'
18500
+ ) {
18501
+ validate11.errors =
18502
+ [
18522
18503
  {
18523
18504
  instancePath:
18524
18505
  instancePath +
18525
- '/login',
18506
+ '/siteOptions/blogname',
18526
18507
  schemaPath:
18527
- '#/properties/login/anyOf/1/additionalProperties',
18508
+ '#/properties/siteOptions/properties/blogname/type',
18528
18509
  keyword:
18529
- 'additionalProperties',
18510
+ 'type',
18530
18511
  params: {
18531
- additionalProperty:
18532
- key6,
18512
+ type: 'string',
18533
18513
  },
18534
18514
  message:
18535
- 'must NOT have additional properties',
18536
- };
18537
- if (
18538
- vErrors ===
18539
- null
18540
- ) {
18541
- vErrors =
18542
- [
18543
- err9,
18544
- ];
18545
- } else {
18546
- vErrors.push(
18547
- err9
18548
- );
18549
- }
18550
- errors++;
18551
- break;
18552
- }
18515
+ 'must be string',
18516
+ },
18517
+ ];
18518
+ return false;
18553
18519
  }
18520
+ }
18521
+ }
18522
+ } else {
18523
+ validate11.errors =
18524
+ [
18525
+ {
18526
+ instancePath:
18527
+ instancePath +
18528
+ '/siteOptions',
18529
+ schemaPath:
18530
+ '#/properties/siteOptions/type',
18531
+ keyword:
18532
+ 'type',
18533
+ params: {
18534
+ type: 'object',
18535
+ },
18536
+ message:
18537
+ 'must be object',
18538
+ },
18539
+ ];
18540
+ return false;
18541
+ }
18542
+ }
18543
+ var valid0 =
18544
+ _errs53 === errors;
18545
+ } else {
18546
+ var valid0 = true;
18547
+ }
18548
+ if (valid0) {
18549
+ if (
18550
+ data.login !== undefined
18551
+ ) {
18552
+ let data22 = data.login;
18553
+ const _errs60 = errors;
18554
+ const _errs61 = errors;
18555
+ let valid14 = false;
18556
+ const _errs62 = errors;
18557
+ if (
18558
+ typeof data22 !==
18559
+ 'boolean'
18560
+ ) {
18561
+ const err7 = {
18562
+ instancePath:
18563
+ instancePath +
18564
+ '/login',
18565
+ schemaPath:
18566
+ '#/properties/login/anyOf/0/type',
18567
+ keyword: 'type',
18568
+ params: {
18569
+ type: 'boolean',
18570
+ },
18571
+ message:
18572
+ 'must be boolean',
18573
+ };
18574
+ if (
18575
+ vErrors === null
18576
+ ) {
18577
+ vErrors = [
18578
+ err7,
18579
+ ];
18580
+ } else {
18581
+ vErrors.push(
18582
+ err7
18583
+ );
18584
+ }
18585
+ errors++;
18586
+ }
18587
+ var _valid2 =
18588
+ _errs62 === errors;
18589
+ valid14 =
18590
+ valid14 || _valid2;
18591
+ if (!valid14) {
18592
+ const _errs64 =
18593
+ errors;
18594
+ if (
18595
+ errors ===
18596
+ _errs64
18597
+ ) {
18598
+ if (
18599
+ data22 &&
18600
+ typeof data22 ==
18601
+ 'object' &&
18602
+ !Array.isArray(
18603
+ data22
18604
+ )
18605
+ ) {
18606
+ let missing2;
18554
18607
  if (
18555
- _errs61 ===
18556
- errors
18608
+ (data22.username ===
18609
+ undefined &&
18610
+ (missing2 =
18611
+ 'username')) ||
18612
+ (data22.password ===
18613
+ undefined &&
18614
+ (missing2 =
18615
+ 'password'))
18557
18616
  ) {
18617
+ const err8 =
18618
+ {
18619
+ instancePath:
18620
+ instancePath +
18621
+ '/login',
18622
+ schemaPath:
18623
+ '#/properties/login/anyOf/1/required',
18624
+ keyword:
18625
+ 'required',
18626
+ params: {
18627
+ missingProperty:
18628
+ missing2,
18629
+ },
18630
+ message:
18631
+ "must have required property '" +
18632
+ missing2 +
18633
+ "'",
18634
+ };
18558
18635
  if (
18559
- data20.username !==
18560
- undefined
18636
+ vErrors ===
18637
+ null
18561
18638
  ) {
18562
- const _errs62 =
18563
- errors;
18639
+ vErrors =
18640
+ [
18641
+ err8,
18642
+ ];
18643
+ } else {
18644
+ vErrors.push(
18645
+ err8
18646
+ );
18647
+ }
18648
+ errors++;
18649
+ } else {
18650
+ const _errs66 =
18651
+ errors;
18652
+ for (const key6 in data22) {
18564
18653
  if (
18565
- typeof data20.username !==
18566
- 'string'
18654
+ !(
18655
+ key6 ===
18656
+ 'username' ||
18657
+ key6 ===
18658
+ 'password'
18659
+ )
18567
18660
  ) {
18568
- const err10 =
18661
+ const err9 =
18569
18662
  {
18570
18663
  instancePath:
18571
18664
  instancePath +
18572
- '/login/username',
18665
+ '/login',
18573
18666
  schemaPath:
18574
- '#/properties/login/anyOf/1/properties/username/type',
18667
+ '#/properties/login/anyOf/1/additionalProperties',
18575
18668
  keyword:
18576
- 'type',
18669
+ 'additionalProperties',
18577
18670
  params: {
18578
- type: 'string',
18671
+ additionalProperty:
18672
+ key6,
18579
18673
  },
18580
18674
  message:
18581
- 'must be string',
18675
+ 'must NOT have additional properties',
18582
18676
  };
18583
18677
  if (
18584
18678
  vErrors ===
@@ -18586,41 +18680,38 @@ function validate11(
18586
18680
  ) {
18587
18681
  vErrors =
18588
18682
  [
18589
- err10,
18683
+ err9,
18590
18684
  ];
18591
18685
  } else {
18592
18686
  vErrors.push(
18593
- err10
18687
+ err9
18594
18688
  );
18595
18689
  }
18596
18690
  errors++;
18691
+ break;
18597
18692
  }
18598
- var valid13 =
18599
- _errs62 ===
18600
- errors;
18601
- } else {
18602
- var valid13 = true;
18603
18693
  }
18604
18694
  if (
18605
- valid13
18695
+ _errs66 ===
18696
+ errors
18606
18697
  ) {
18607
18698
  if (
18608
- data20.password !==
18699
+ data22.username !==
18609
18700
  undefined
18610
18701
  ) {
18611
- const _errs64 =
18702
+ const _errs67 =
18612
18703
  errors;
18613
18704
  if (
18614
- typeof data20.password !==
18705
+ typeof data22.username !==
18615
18706
  'string'
18616
18707
  ) {
18617
- const err11 =
18708
+ const err10 =
18618
18709
  {
18619
18710
  instancePath:
18620
18711
  instancePath +
18621
- '/login/password',
18712
+ '/login/username',
18622
18713
  schemaPath:
18623
- '#/properties/login/anyOf/1/properties/password/type',
18714
+ '#/properties/login/anyOf/1/properties/username/type',
18624
18715
  keyword:
18625
18716
  'type',
18626
18717
  params: {
@@ -18635,221 +18726,166 @@ function validate11(
18635
18726
  ) {
18636
18727
  vErrors =
18637
18728
  [
18638
- err11,
18729
+ err10,
18639
18730
  ];
18640
18731
  } else {
18641
18732
  vErrors.push(
18642
- err11
18733
+ err10
18643
18734
  );
18644
18735
  }
18645
18736
  errors++;
18646
18737
  }
18647
- var valid13 =
18648
- _errs64 ===
18738
+ var valid15 =
18739
+ _errs67 ===
18649
18740
  errors;
18650
18741
  } else {
18651
- var valid13 = true;
18742
+ var valid15 = true;
18652
18743
  }
18653
- }
18654
- }
18655
- }
18656
- } else {
18657
- const err12 = {
18658
- instancePath:
18659
- instancePath +
18660
- '/login',
18661
- schemaPath:
18662
- '#/properties/login/anyOf/1/type',
18663
- keyword:
18664
- 'type',
18665
- params: {
18666
- type: 'object',
18667
- },
18668
- message:
18669
- 'must be object',
18670
- };
18671
- if (
18672
- vErrors ===
18673
- null
18674
- ) {
18675
- vErrors = [
18676
- err12,
18677
- ];
18678
- } else {
18679
- vErrors.push(
18680
- err12
18681
- );
18682
- }
18683
- errors++;
18684
- }
18685
- }
18686
- var _valid2 =
18687
- _errs59 === errors;
18688
- valid12 =
18689
- valid12 || _valid2;
18690
- }
18691
- if (!valid12) {
18692
- const err13 = {
18693
- instancePath:
18694
- instancePath +
18695
- '/login',
18696
- schemaPath:
18697
- '#/properties/login/anyOf',
18698
- keyword: 'anyOf',
18699
- params: {},
18700
- message:
18701
- 'must match a schema in anyOf',
18702
- };
18703
- if (vErrors === null) {
18704
- vErrors = [err13];
18705
- } else {
18706
- vErrors.push(err13);
18707
- }
18708
- errors++;
18709
- validate11.errors =
18710
- vErrors;
18711
- return false;
18712
- } else {
18713
- errors = _errs56;
18714
- if (vErrors !== null) {
18715
- if (_errs56) {
18716
- vErrors.length =
18717
- _errs56;
18718
- } else {
18719
- vErrors = null;
18720
- }
18721
- }
18722
- }
18723
- var valid0 =
18724
- _errs55 === errors;
18725
- } else {
18726
- var valid0 = true;
18727
- }
18728
- if (valid0) {
18729
- if (
18730
- data.phpExtensionBundles !==
18731
- undefined
18732
- ) {
18733
- let data23 =
18734
- data.phpExtensionBundles;
18735
- const _errs66 = errors;
18736
- if (
18737
- errors === _errs66
18738
- ) {
18739
- if (
18740
- Array.isArray(
18741
- data23
18742
- )
18743
- ) {
18744
- var valid14 = true;
18745
- const len2 =
18746
- data23.length;
18747
- for (
18748
- let i2 = 0;
18749
- i2 < len2;
18750
- i2++
18751
- ) {
18752
- let data24 =
18753
- data23[
18754
- i2
18755
- ];
18756
- const _errs68 =
18757
- errors;
18758
- if (
18759
- typeof data24 !==
18760
- 'string'
18761
- ) {
18762
- validate11.errors =
18763
- [
18764
- {
18765
- instancePath:
18766
- instancePath +
18767
- '/phpExtensionBundles/' +
18768
- i2,
18769
- schemaPath:
18770
- '#/definitions/SupportedPHPExtensionBundle/type',
18771
- keyword:
18772
- 'type',
18773
- params: {
18774
- type: 'string',
18775
- },
18776
- message:
18777
- 'must be string',
18778
- },
18779
- ];
18780
- return false;
18781
- }
18782
- if (
18783
- !(
18784
- data24 ===
18785
- 'kitchen-sink' ||
18786
- data24 ===
18787
- 'light'
18788
- )
18789
- ) {
18790
- validate11.errors =
18791
- [
18792
- {
18793
- instancePath:
18794
- instancePath +
18795
- '/phpExtensionBundles/' +
18796
- i2,
18797
- schemaPath:
18798
- '#/definitions/SupportedPHPExtensionBundle/enum',
18799
- keyword:
18800
- 'enum',
18801
- params: {
18802
- allowedValues:
18803
- schema20.enum,
18804
- },
18805
- message:
18806
- 'must be equal to one of the allowed values',
18807
- },
18808
- ];
18809
- return false;
18810
- }
18811
- var valid14 =
18812
- _errs68 ===
18813
- errors;
18814
- if (
18815
- !valid14
18816
- ) {
18817
- break;
18744
+ if (
18745
+ valid15
18746
+ ) {
18747
+ if (
18748
+ data22.password !==
18749
+ undefined
18750
+ ) {
18751
+ const _errs69 =
18752
+ errors;
18753
+ if (
18754
+ typeof data22.password !==
18755
+ 'string'
18756
+ ) {
18757
+ const err11 =
18758
+ {
18759
+ instancePath:
18760
+ instancePath +
18761
+ '/login/password',
18762
+ schemaPath:
18763
+ '#/properties/login/anyOf/1/properties/password/type',
18764
+ keyword:
18765
+ 'type',
18766
+ params: {
18767
+ type: 'string',
18768
+ },
18769
+ message:
18770
+ 'must be string',
18771
+ };
18772
+ if (
18773
+ vErrors ===
18774
+ null
18775
+ ) {
18776
+ vErrors =
18777
+ [
18778
+ err11,
18779
+ ];
18780
+ } else {
18781
+ vErrors.push(
18782
+ err11
18783
+ );
18784
+ }
18785
+ errors++;
18786
+ }
18787
+ var valid15 =
18788
+ _errs69 ===
18789
+ errors;
18790
+ } else {
18791
+ var valid15 = true;
18792
+ }
18793
+ }
18794
+ }
18818
18795
  }
18819
- }
18820
- } else {
18821
- validate11.errors =
18822
- [
18796
+ } else {
18797
+ const err12 =
18823
18798
  {
18824
18799
  instancePath:
18825
18800
  instancePath +
18826
- '/phpExtensionBundles',
18801
+ '/login',
18827
18802
  schemaPath:
18828
- '#/properties/phpExtensionBundles/type',
18803
+ '#/properties/login/anyOf/1/type',
18829
18804
  keyword:
18830
18805
  'type',
18831
18806
  params: {
18832
- type: 'array',
18807
+ type: 'object',
18833
18808
  },
18834
18809
  message:
18835
- 'must be array',
18836
- },
18837
- ];
18838
- return false;
18810
+ 'must be object',
18811
+ };
18812
+ if (
18813
+ vErrors ===
18814
+ null
18815
+ ) {
18816
+ vErrors =
18817
+ [
18818
+ err12,
18819
+ ];
18820
+ } else {
18821
+ vErrors.push(
18822
+ err12
18823
+ );
18824
+ }
18825
+ errors++;
18826
+ }
18827
+ }
18828
+ var _valid2 =
18829
+ _errs64 ===
18830
+ errors;
18831
+ valid14 =
18832
+ valid14 ||
18833
+ _valid2;
18834
+ }
18835
+ if (!valid14) {
18836
+ const err13 = {
18837
+ instancePath:
18838
+ instancePath +
18839
+ '/login',
18840
+ schemaPath:
18841
+ '#/properties/login/anyOf',
18842
+ keyword:
18843
+ 'anyOf',
18844
+ params: {},
18845
+ message:
18846
+ 'must match a schema in anyOf',
18847
+ };
18848
+ if (
18849
+ vErrors === null
18850
+ ) {
18851
+ vErrors = [
18852
+ err13,
18853
+ ];
18854
+ } else {
18855
+ vErrors.push(
18856
+ err13
18857
+ );
18858
+ }
18859
+ errors++;
18860
+ validate11.errors =
18861
+ vErrors;
18862
+ return false;
18863
+ } else {
18864
+ errors = _errs61;
18865
+ if (
18866
+ vErrors !== null
18867
+ ) {
18868
+ if (_errs61) {
18869
+ vErrors.length =
18870
+ _errs61;
18871
+ } else {
18872
+ vErrors =
18873
+ null;
18874
+ }
18839
18875
  }
18840
18876
  }
18841
18877
  var valid0 =
18842
- _errs66 === errors;
18878
+ _errs60 === errors;
18843
18879
  } else {
18844
18880
  var valid0 = true;
18845
18881
  }
18846
18882
  if (valid0) {
18847
18883
  if (
18848
- data.steps !==
18884
+ data.phpExtensionBundles !==
18849
18885
  undefined
18850
18886
  ) {
18851
18887
  let data25 =
18852
- data.steps;
18888
+ data.phpExtensionBundles;
18853
18889
  const _errs71 =
18854
18890
  errors;
18855
18891
  if (
@@ -18876,60 +18912,19 @@ function validate11(
18876
18912
  ];
18877
18913
  const _errs73 =
18878
18914
  errors;
18879
- const _errs74 =
18880
- errors;
18881
- let valid17 = false;
18882
- const _errs75 =
18883
- errors;
18884
- if (
18885
- !validate14(
18886
- data26,
18887
- {
18888
- instancePath:
18889
- instancePath +
18890
- '/steps/' +
18891
- i3,
18892
- parentData:
18893
- data25,
18894
- parentDataProperty:
18895
- i3,
18896
- rootData,
18897
- }
18898
- )
18899
- ) {
18900
- vErrors =
18901
- vErrors ===
18902
- null
18903
- ? validate14.errors
18904
- : vErrors.concat(
18905
- validate14.errors
18906
- );
18907
- errors =
18908
- vErrors.length;
18909
- }
18910
- var _valid3 =
18911
- _errs75 ===
18912
- errors;
18913
- valid17 =
18914
- valid17 ||
18915
- _valid3;
18916
18915
  if (
18917
- !valid17
18916
+ typeof data26 !==
18917
+ 'string'
18918
18918
  ) {
18919
- const _errs76 =
18920
- errors;
18921
- if (
18922
- typeof data26 !==
18923
- 'string'
18924
- ) {
18925
- const err14 =
18919
+ validate11.errors =
18920
+ [
18926
18921
  {
18927
18922
  instancePath:
18928
18923
  instancePath +
18929
- '/steps/' +
18924
+ '/phpExtensionBundles/' +
18930
18925
  i3,
18931
18926
  schemaPath:
18932
- '#/properties/steps/items/anyOf/1/type',
18927
+ '#/definitions/SupportedPHPExtensionBundle/type',
18933
18928
  keyword:
18934
18929
  'type',
18935
18930
  params: {
@@ -18937,172 +18932,289 @@ function validate11(
18937
18932
  },
18938
18933
  message:
18939
18934
  'must be string',
18940
- };
18941
- if (
18935
+ },
18936
+ ];
18937
+ return false;
18938
+ }
18939
+ if (
18940
+ !(
18941
+ data26 ===
18942
+ 'kitchen-sink' ||
18943
+ data26 ===
18944
+ 'light'
18945
+ )
18946
+ ) {
18947
+ validate11.errors =
18948
+ [
18949
+ {
18950
+ instancePath:
18951
+ instancePath +
18952
+ '/phpExtensionBundles/' +
18953
+ i3,
18954
+ schemaPath:
18955
+ '#/definitions/SupportedPHPExtensionBundle/enum',
18956
+ keyword:
18957
+ 'enum',
18958
+ params: {
18959
+ allowedValues:
18960
+ schema21.enum,
18961
+ },
18962
+ message:
18963
+ 'must be equal to one of the allowed values',
18964
+ },
18965
+ ];
18966
+ return false;
18967
+ }
18968
+ var valid16 =
18969
+ _errs73 ===
18970
+ errors;
18971
+ if (
18972
+ !valid16
18973
+ ) {
18974
+ break;
18975
+ }
18976
+ }
18977
+ } else {
18978
+ validate11.errors =
18979
+ [
18980
+ {
18981
+ instancePath:
18982
+ instancePath +
18983
+ '/phpExtensionBundles',
18984
+ schemaPath:
18985
+ '#/properties/phpExtensionBundles/type',
18986
+ keyword:
18987
+ 'type',
18988
+ params: {
18989
+ type: 'array',
18990
+ },
18991
+ message:
18992
+ 'must be array',
18993
+ },
18994
+ ];
18995
+ return false;
18996
+ }
18997
+ }
18998
+ var valid0 =
18999
+ _errs71 ===
19000
+ errors;
19001
+ } else {
19002
+ var valid0 = true;
19003
+ }
19004
+ if (valid0) {
19005
+ if (
19006
+ data.steps !==
19007
+ undefined
19008
+ ) {
19009
+ let data27 =
19010
+ data.steps;
19011
+ const _errs76 =
19012
+ errors;
19013
+ if (
19014
+ errors ===
19015
+ _errs76
19016
+ ) {
19017
+ if (
19018
+ Array.isArray(
19019
+ data27
19020
+ )
19021
+ ) {
19022
+ var valid18 = true;
19023
+ const len4 =
19024
+ data27.length;
19025
+ for (
19026
+ let i4 = 0;
19027
+ i4 <
19028
+ len4;
19029
+ i4++
19030
+ ) {
19031
+ let data28 =
19032
+ data27[
19033
+ i4
19034
+ ];
19035
+ const _errs78 =
19036
+ errors;
19037
+ const _errs79 =
19038
+ errors;
19039
+ let valid19 = false;
19040
+ const _errs80 =
19041
+ errors;
19042
+ if (
19043
+ !validate14(
19044
+ data28,
19045
+ {
19046
+ instancePath:
19047
+ instancePath +
19048
+ '/steps/' +
19049
+ i4,
19050
+ parentData:
19051
+ data27,
19052
+ parentDataProperty:
19053
+ i4,
19054
+ rootData,
19055
+ }
19056
+ )
19057
+ ) {
19058
+ vErrors =
18942
19059
  vErrors ===
18943
19060
  null
18944
- ) {
18945
- vErrors =
18946
- [
18947
- err14,
18948
- ];
18949
- } else {
18950
- vErrors.push(
18951
- err14
18952
- );
18953
- }
18954
- errors++;
19061
+ ? validate14.errors
19062
+ : vErrors.concat(
19063
+ validate14.errors
19064
+ );
19065
+ errors =
19066
+ vErrors.length;
18955
19067
  }
18956
19068
  var _valid3 =
18957
- _errs76 ===
19069
+ _errs80 ===
18958
19070
  errors;
18959
- valid17 =
18960
- valid17 ||
19071
+ valid19 =
19072
+ valid19 ||
18961
19073
  _valid3;
18962
19074
  if (
18963
- !valid17
19075
+ !valid19
18964
19076
  ) {
18965
- const _errs78 =
19077
+ const _errs81 =
18966
19078
  errors;
18967
- const err15 =
18968
- {
18969
- instancePath:
18970
- instancePath +
18971
- '/steps/' +
18972
- i3,
18973
- schemaPath:
18974
- '#/properties/steps/items/anyOf/2/not',
18975
- keyword:
18976
- 'not',
18977
- params: {},
18978
- message:
18979
- 'must NOT be valid',
18980
- };
18981
19079
  if (
18982
- vErrors ===
18983
- null
19080
+ typeof data28 !==
19081
+ 'string'
18984
19082
  ) {
18985
- vErrors =
18986
- [
18987
- err15,
18988
- ];
18989
- } else {
18990
- vErrors.push(
18991
- err15
18992
- );
19083
+ const err14 =
19084
+ {
19085
+ instancePath:
19086
+ instancePath +
19087
+ '/steps/' +
19088
+ i4,
19089
+ schemaPath:
19090
+ '#/properties/steps/items/anyOf/1/type',
19091
+ keyword:
19092
+ 'type',
19093
+ params: {
19094
+ type: 'string',
19095
+ },
19096
+ message:
19097
+ 'must be string',
19098
+ };
19099
+ if (
19100
+ vErrors ===
19101
+ null
19102
+ ) {
19103
+ vErrors =
19104
+ [
19105
+ err14,
19106
+ ];
19107
+ } else {
19108
+ vErrors.push(
19109
+ err14
19110
+ );
19111
+ }
19112
+ errors++;
18993
19113
  }
18994
- errors++;
18995
19114
  var _valid3 =
18996
- _errs78 ===
19115
+ _errs81 ===
18997
19116
  errors;
18998
- valid17 =
18999
- valid17 ||
19117
+ valid19 =
19118
+ valid19 ||
19000
19119
  _valid3;
19001
19120
  if (
19002
- !valid17
19121
+ !valid19
19003
19122
  ) {
19004
- const _errs80 =
19123
+ const _errs83 =
19005
19124
  errors;
19125
+ const err15 =
19126
+ {
19127
+ instancePath:
19128
+ instancePath +
19129
+ '/steps/' +
19130
+ i4,
19131
+ schemaPath:
19132
+ '#/properties/steps/items/anyOf/2/not',
19133
+ keyword:
19134
+ 'not',
19135
+ params: {},
19136
+ message:
19137
+ 'must NOT be valid',
19138
+ };
19006
19139
  if (
19007
- typeof data26 !==
19008
- 'boolean'
19009
- ) {
19010
- const err16 =
19011
- {
19012
- instancePath:
19013
- instancePath +
19014
- '/steps/' +
19015
- i3,
19016
- schemaPath:
19017
- '#/properties/steps/items/anyOf/3/type',
19018
- keyword:
19019
- 'type',
19020
- params: {
19021
- type: 'boolean',
19022
- },
19023
- message:
19024
- 'must be boolean',
19025
- };
19026
- if (
19027
- vErrors ===
19028
- null
19029
- ) {
19030
- vErrors =
19031
- [
19032
- err16,
19033
- ];
19034
- } else {
19035
- vErrors.push(
19036
- err16
19037
- );
19038
- }
19039
- errors++;
19040
- }
19041
- if (
19042
- false !==
19043
- data26
19140
+ vErrors ===
19141
+ null
19044
19142
  ) {
19045
- const err17 =
19046
- {
19047
- instancePath:
19048
- instancePath +
19049
- '/steps/' +
19050
- i3,
19051
- schemaPath:
19052
- '#/properties/steps/items/anyOf/3/const',
19053
- keyword:
19054
- 'const',
19055
- params: {
19056
- allowedValue: false,
19057
- },
19058
- message:
19059
- 'must be equal to constant',
19060
- };
19061
- if (
19062
- vErrors ===
19063
- null
19064
- ) {
19065
- vErrors =
19066
- [
19067
- err17,
19068
- ];
19069
- } else {
19070
- vErrors.push(
19071
- err17
19072
- );
19073
- }
19074
- errors++;
19143
+ vErrors =
19144
+ [
19145
+ err15,
19146
+ ];
19147
+ } else {
19148
+ vErrors.push(
19149
+ err15
19150
+ );
19075
19151
  }
19152
+ errors++;
19076
19153
  var _valid3 =
19077
- _errs80 ===
19154
+ _errs83 ===
19078
19155
  errors;
19079
- valid17 =
19080
- valid17 ||
19156
+ valid19 =
19157
+ valid19 ||
19081
19158
  _valid3;
19082
19159
  if (
19083
- !valid17
19160
+ !valid19
19084
19161
  ) {
19085
- const _errs82 =
19162
+ const _errs85 =
19086
19163
  errors;
19087
19164
  if (
19088
- data26 !==
19089
- null
19165
+ typeof data28 !==
19166
+ 'boolean'
19090
19167
  ) {
19091
- const err18 =
19168
+ const err16 =
19092
19169
  {
19093
19170
  instancePath:
19094
19171
  instancePath +
19095
19172
  '/steps/' +
19096
- i3,
19173
+ i4,
19097
19174
  schemaPath:
19098
- '#/properties/steps/items/anyOf/4/type',
19175
+ '#/properties/steps/items/anyOf/3/type',
19099
19176
  keyword:
19100
19177
  'type',
19101
19178
  params: {
19102
- type: 'null',
19179
+ type: 'boolean',
19180
+ },
19181
+ message:
19182
+ 'must be boolean',
19183
+ };
19184
+ if (
19185
+ vErrors ===
19186
+ null
19187
+ ) {
19188
+ vErrors =
19189
+ [
19190
+ err16,
19191
+ ];
19192
+ } else {
19193
+ vErrors.push(
19194
+ err16
19195
+ );
19196
+ }
19197
+ errors++;
19198
+ }
19199
+ if (
19200
+ false !==
19201
+ data28
19202
+ ) {
19203
+ const err17 =
19204
+ {
19205
+ instancePath:
19206
+ instancePath +
19207
+ '/steps/' +
19208
+ i4,
19209
+ schemaPath:
19210
+ '#/properties/steps/items/anyOf/3/const',
19211
+ keyword:
19212
+ 'const',
19213
+ params: {
19214
+ allowedValue: false,
19103
19215
  },
19104
19216
  message:
19105
- 'must be null',
19217
+ 'must be equal to constant',
19106
19218
  };
19107
19219
  if (
19108
19220
  vErrors ===
@@ -19110,148 +19222,195 @@ function validate11(
19110
19222
  ) {
19111
19223
  vErrors =
19112
19224
  [
19113
- err18,
19225
+ err17,
19114
19226
  ];
19115
19227
  } else {
19116
19228
  vErrors.push(
19117
- err18
19229
+ err17
19118
19230
  );
19119
19231
  }
19120
19232
  errors++;
19121
19233
  }
19122
19234
  var _valid3 =
19123
- _errs82 ===
19235
+ _errs85 ===
19124
19236
  errors;
19125
- valid17 =
19126
- valid17 ||
19237
+ valid19 =
19238
+ valid19 ||
19127
19239
  _valid3;
19240
+ if (
19241
+ !valid19
19242
+ ) {
19243
+ const _errs87 =
19244
+ errors;
19245
+ if (
19246
+ data28 !==
19247
+ null
19248
+ ) {
19249
+ const err18 =
19250
+ {
19251
+ instancePath:
19252
+ instancePath +
19253
+ '/steps/' +
19254
+ i4,
19255
+ schemaPath:
19256
+ '#/properties/steps/items/anyOf/4/type',
19257
+ keyword:
19258
+ 'type',
19259
+ params: {
19260
+ type: 'null',
19261
+ },
19262
+ message:
19263
+ 'must be null',
19264
+ };
19265
+ if (
19266
+ vErrors ===
19267
+ null
19268
+ ) {
19269
+ vErrors =
19270
+ [
19271
+ err18,
19272
+ ];
19273
+ } else {
19274
+ vErrors.push(
19275
+ err18
19276
+ );
19277
+ }
19278
+ errors++;
19279
+ }
19280
+ var _valid3 =
19281
+ _errs87 ===
19282
+ errors;
19283
+ valid19 =
19284
+ valid19 ||
19285
+ _valid3;
19286
+ }
19128
19287
  }
19129
19288
  }
19130
19289
  }
19131
- }
19132
- if (
19133
- !valid17
19134
- ) {
19135
- const err19 =
19136
- {
19137
- instancePath:
19138
- instancePath +
19139
- '/steps/' +
19140
- i3,
19141
- schemaPath:
19142
- '#/properties/steps/items/anyOf',
19143
- keyword:
19144
- 'anyOf',
19145
- params: {},
19146
- message:
19147
- 'must match a schema in anyOf',
19148
- };
19149
- if (
19150
- vErrors ===
19151
- null
19152
- ) {
19153
- vErrors =
19154
- [
19155
- err19,
19156
- ];
19157
- } else {
19158
- vErrors.push(
19159
- err19
19160
- );
19161
- }
19162
- errors++;
19163
- validate11.errors =
19164
- vErrors;
19165
- return false;
19166
- } else {
19167
- errors =
19168
- _errs74;
19169
19290
  if (
19170
- vErrors !==
19171
- null
19291
+ !valid19
19172
19292
  ) {
19293
+ const err19 =
19294
+ {
19295
+ instancePath:
19296
+ instancePath +
19297
+ '/steps/' +
19298
+ i4,
19299
+ schemaPath:
19300
+ '#/properties/steps/items/anyOf',
19301
+ keyword:
19302
+ 'anyOf',
19303
+ params: {},
19304
+ message:
19305
+ 'must match a schema in anyOf',
19306
+ };
19173
19307
  if (
19174
- _errs74
19308
+ vErrors ===
19309
+ null
19175
19310
  ) {
19176
- vErrors.length =
19177
- _errs74;
19178
- } else {
19179
19311
  vErrors =
19180
- null;
19312
+ [
19313
+ err19,
19314
+ ];
19315
+ } else {
19316
+ vErrors.push(
19317
+ err19
19318
+ );
19319
+ }
19320
+ errors++;
19321
+ validate11.errors =
19322
+ vErrors;
19323
+ return false;
19324
+ } else {
19325
+ errors =
19326
+ _errs79;
19327
+ if (
19328
+ vErrors !==
19329
+ null
19330
+ ) {
19331
+ if (
19332
+ _errs79
19333
+ ) {
19334
+ vErrors.length =
19335
+ _errs79;
19336
+ } else {
19337
+ vErrors =
19338
+ null;
19339
+ }
19181
19340
  }
19182
19341
  }
19342
+ var valid18 =
19343
+ _errs78 ===
19344
+ errors;
19345
+ if (
19346
+ !valid18
19347
+ ) {
19348
+ break;
19349
+ }
19183
19350
  }
19184
- var valid16 =
19185
- _errs73 ===
19186
- errors;
19187
- if (
19188
- !valid16
19189
- ) {
19190
- break;
19191
- }
19192
- }
19193
- } else {
19194
- validate11.errors =
19195
- [
19196
- {
19197
- instancePath:
19198
- instancePath +
19199
- '/steps',
19200
- schemaPath:
19201
- '#/properties/steps/type',
19202
- keyword:
19203
- 'type',
19204
- params: {
19205
- type: 'array',
19351
+ } else {
19352
+ validate11.errors =
19353
+ [
19354
+ {
19355
+ instancePath:
19356
+ instancePath +
19357
+ '/steps',
19358
+ schemaPath:
19359
+ '#/properties/steps/type',
19360
+ keyword:
19361
+ 'type',
19362
+ params: {
19363
+ type: 'array',
19364
+ },
19365
+ message:
19366
+ 'must be array',
19206
19367
  },
19207
- message:
19208
- 'must be array',
19209
- },
19210
- ];
19211
- return false;
19368
+ ];
19369
+ return false;
19370
+ }
19212
19371
  }
19213
- }
19214
- var valid0 =
19215
- _errs71 ===
19216
- errors;
19217
- } else {
19218
- var valid0 = true;
19219
- }
19220
- if (valid0) {
19221
- if (
19222
- data.$schema !==
19223
- undefined
19224
- ) {
19225
- const _errs84 =
19372
+ var valid0 =
19373
+ _errs76 ===
19226
19374
  errors;
19375
+ } else {
19376
+ var valid0 = true;
19377
+ }
19378
+ if (valid0) {
19227
19379
  if (
19228
- typeof data.$schema !==
19229
- 'string'
19380
+ data.$schema !==
19381
+ undefined
19230
19382
  ) {
19231
- validate11.errors =
19232
- [
19233
- {
19234
- instancePath:
19235
- instancePath +
19236
- '/$schema',
19237
- schemaPath:
19238
- '#/properties/%24schema/type',
19239
- keyword:
19240
- 'type',
19241
- params: {
19242
- type: 'string',
19383
+ const _errs89 =
19384
+ errors;
19385
+ if (
19386
+ typeof data.$schema !==
19387
+ 'string'
19388
+ ) {
19389
+ validate11.errors =
19390
+ [
19391
+ {
19392
+ instancePath:
19393
+ instancePath +
19394
+ '/$schema',
19395
+ schemaPath:
19396
+ '#/properties/%24schema/type',
19397
+ keyword:
19398
+ 'type',
19399
+ params: {
19400
+ type: 'string',
19401
+ },
19402
+ message:
19403
+ 'must be string',
19243
19404
  },
19244
- message:
19245
- 'must be string',
19246
- },
19247
- ];
19248
- return false;
19405
+ ];
19406
+ return false;
19407
+ }
19408
+ var valid0 =
19409
+ _errs89 ===
19410
+ errors;
19411
+ } else {
19412
+ var valid0 = true;
19249
19413
  }
19250
- var valid0 =
19251
- _errs84 ===
19252
- errors;
19253
- } else {
19254
- var valid0 = true;
19255
19414
  }
19256
19415
  }
19257
19416
  }