@wp-playground/blueprints 3.0.8 → 3.0.13

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.
@@ -1089,17 +1089,32 @@ const schema11 = {
1089
1089
  },
1090
1090
  ref: {
1091
1091
  type: 'string',
1092
- description: 'The branch of the git repository',
1092
+ description:
1093
+ 'The ref (branch, tag, or commit) of the git repository',
1094
+ },
1095
+ refType: {
1096
+ $ref: '#/definitions/GitDirectoryRefType',
1097
+ description:
1098
+ 'Explicit hint about the ref type (branch, tag, commit, refname)',
1093
1099
  },
1094
1100
  path: {
1095
1101
  type: 'string',
1096
1102
  description:
1097
- 'The path to the directory in the git repository',
1103
+ 'The path to the directory in the git repository. Defaults to the repo root.',
1104
+ },
1105
+ '.git': {
1106
+ type: 'boolean',
1107
+ description:
1108
+ 'When true, include a `.git` directory with Git metadata (experimental).',
1098
1109
  },
1099
1110
  },
1100
- required: ['resource', 'url', 'ref', 'path'],
1111
+ required: ['resource', 'url', 'ref'],
1101
1112
  additionalProperties: false,
1102
1113
  },
1114
+ GitDirectoryRefType: {
1115
+ type: 'string',
1116
+ enum: ['branch', 'tag', 'commit', 'refname'],
1117
+ },
1103
1118
  DirectoryLiteralReference: {
1104
1119
  type: 'object',
1105
1120
  additionalProperties: false,
@@ -3945,7 +3960,7 @@ const schema23 = {
3945
3960
  },
3946
3961
  ],
3947
3962
  };
3948
- const schema28 = {
3963
+ const schema29 = {
3949
3964
  type: 'object',
3950
3965
  properties: {
3951
3966
  activate: {
@@ -3960,7 +3975,7 @@ const schema28 = {
3960
3975
  },
3961
3976
  additionalProperties: false,
3962
3977
  };
3963
- const schema29 = {
3978
+ const schema30 = {
3964
3979
  type: 'object',
3965
3980
  properties: {
3966
3981
  activate: {
@@ -3980,7 +3995,7 @@ const schema29 = {
3980
3995
  },
3981
3996
  additionalProperties: false,
3982
3997
  };
3983
- const schema36 = {
3998
+ const schema37 = {
3984
3999
  type: 'object',
3985
4000
  properties: {
3986
4001
  adminUsername: { type: 'string' },
@@ -4005,17 +4020,273 @@ const schema25 = {
4005
4020
  url: { type: 'string', description: 'The URL of the git repository' },
4006
4021
  ref: {
4007
4022
  type: 'string',
4008
- description: 'The branch of the git repository',
4023
+ description:
4024
+ 'The ref (branch, tag, or commit) of the git repository',
4025
+ },
4026
+ refType: {
4027
+ $ref: '#/definitions/GitDirectoryRefType',
4028
+ description:
4029
+ 'Explicit hint about the ref type (branch, tag, commit, refname)',
4009
4030
  },
4010
4031
  path: {
4011
4032
  type: 'string',
4012
- description: 'The path to the directory in the git repository',
4033
+ description:
4034
+ 'The path to the directory in the git repository. Defaults to the repo root.',
4035
+ },
4036
+ '.git': {
4037
+ type: 'boolean',
4038
+ description:
4039
+ 'When true, include a `.git` directory with Git metadata (experimental).',
4013
4040
  },
4014
4041
  },
4015
- required: ['resource', 'url', 'ref', 'path'],
4042
+ required: ['resource', 'url', 'ref'],
4016
4043
  additionalProperties: false,
4017
4044
  };
4018
4045
  const schema26 = {
4046
+ type: 'string',
4047
+ enum: ['branch', 'tag', 'commit', 'refname'],
4048
+ };
4049
+ function validate19(
4050
+ data,
4051
+ { instancePath = '', parentData, parentDataProperty, rootData = data } = {}
4052
+ ) {
4053
+ let vErrors = null;
4054
+ let errors = 0;
4055
+ if (errors === 0) {
4056
+ if (data && typeof data == 'object' && !Array.isArray(data)) {
4057
+ let missing0;
4058
+ if (
4059
+ (data.resource === undefined && (missing0 = 'resource')) ||
4060
+ (data.url === undefined && (missing0 = 'url')) ||
4061
+ (data.ref === undefined && (missing0 = 'ref'))
4062
+ ) {
4063
+ validate19.errors = [
4064
+ {
4065
+ instancePath,
4066
+ schemaPath: '#/required',
4067
+ keyword: 'required',
4068
+ params: { missingProperty: missing0 },
4069
+ message:
4070
+ "must have required property '" + missing0 + "'",
4071
+ },
4072
+ ];
4073
+ return false;
4074
+ } else {
4075
+ const _errs1 = errors;
4076
+ for (const key0 in data) {
4077
+ if (
4078
+ !(
4079
+ key0 === 'resource' ||
4080
+ key0 === 'url' ||
4081
+ key0 === 'ref' ||
4082
+ key0 === 'refType' ||
4083
+ key0 === 'path' ||
4084
+ key0 === '.git'
4085
+ )
4086
+ ) {
4087
+ validate19.errors = [
4088
+ {
4089
+ instancePath,
4090
+ schemaPath: '#/additionalProperties',
4091
+ keyword: 'additionalProperties',
4092
+ params: { additionalProperty: key0 },
4093
+ message: 'must NOT have additional properties',
4094
+ },
4095
+ ];
4096
+ return false;
4097
+ break;
4098
+ }
4099
+ }
4100
+ if (_errs1 === errors) {
4101
+ if (data.resource !== undefined) {
4102
+ let data0 = data.resource;
4103
+ const _errs2 = errors;
4104
+ if (typeof data0 !== 'string') {
4105
+ validate19.errors = [
4106
+ {
4107
+ instancePath: instancePath + '/resource',
4108
+ schemaPath: '#/properties/resource/type',
4109
+ keyword: 'type',
4110
+ params: { type: 'string' },
4111
+ message: 'must be string',
4112
+ },
4113
+ ];
4114
+ return false;
4115
+ }
4116
+ if ('git:directory' !== data0) {
4117
+ validate19.errors = [
4118
+ {
4119
+ instancePath: instancePath + '/resource',
4120
+ schemaPath: '#/properties/resource/const',
4121
+ keyword: 'const',
4122
+ params: { allowedValue: 'git:directory' },
4123
+ message: 'must be equal to constant',
4124
+ },
4125
+ ];
4126
+ return false;
4127
+ }
4128
+ var valid0 = _errs2 === errors;
4129
+ } else {
4130
+ var valid0 = true;
4131
+ }
4132
+ if (valid0) {
4133
+ if (data.url !== undefined) {
4134
+ const _errs4 = errors;
4135
+ if (typeof data.url !== 'string') {
4136
+ validate19.errors = [
4137
+ {
4138
+ instancePath: instancePath + '/url',
4139
+ schemaPath: '#/properties/url/type',
4140
+ keyword: 'type',
4141
+ params: { type: 'string' },
4142
+ message: 'must be string',
4143
+ },
4144
+ ];
4145
+ return false;
4146
+ }
4147
+ var valid0 = _errs4 === errors;
4148
+ } else {
4149
+ var valid0 = true;
4150
+ }
4151
+ if (valid0) {
4152
+ if (data.ref !== undefined) {
4153
+ const _errs6 = errors;
4154
+ if (typeof data.ref !== 'string') {
4155
+ validate19.errors = [
4156
+ {
4157
+ instancePath: instancePath + '/ref',
4158
+ schemaPath: '#/properties/ref/type',
4159
+ keyword: 'type',
4160
+ params: { type: 'string' },
4161
+ message: 'must be string',
4162
+ },
4163
+ ];
4164
+ return false;
4165
+ }
4166
+ var valid0 = _errs6 === errors;
4167
+ } else {
4168
+ var valid0 = true;
4169
+ }
4170
+ if (valid0) {
4171
+ if (data.refType !== undefined) {
4172
+ let data3 = data.refType;
4173
+ const _errs8 = errors;
4174
+ if (typeof data3 !== 'string') {
4175
+ validate19.errors = [
4176
+ {
4177
+ instancePath:
4178
+ instancePath + '/refType',
4179
+ schemaPath:
4180
+ '#/definitions/GitDirectoryRefType/type',
4181
+ keyword: 'type',
4182
+ params: { type: 'string' },
4183
+ message: 'must be string',
4184
+ },
4185
+ ];
4186
+ return false;
4187
+ }
4188
+ if (
4189
+ !(
4190
+ data3 === 'branch' ||
4191
+ data3 === 'tag' ||
4192
+ data3 === 'commit' ||
4193
+ data3 === 'refname'
4194
+ )
4195
+ ) {
4196
+ validate19.errors = [
4197
+ {
4198
+ instancePath:
4199
+ instancePath + '/refType',
4200
+ schemaPath:
4201
+ '#/definitions/GitDirectoryRefType/enum',
4202
+ keyword: 'enum',
4203
+ params: {
4204
+ allowedValues:
4205
+ schema26.enum,
4206
+ },
4207
+ message:
4208
+ 'must be equal to one of the allowed values',
4209
+ },
4210
+ ];
4211
+ return false;
4212
+ }
4213
+ var valid0 = _errs8 === errors;
4214
+ } else {
4215
+ var valid0 = true;
4216
+ }
4217
+ if (valid0) {
4218
+ if (data.path !== undefined) {
4219
+ const _errs11 = errors;
4220
+ if (typeof data.path !== 'string') {
4221
+ validate19.errors = [
4222
+ {
4223
+ instancePath:
4224
+ instancePath + '/path',
4225
+ schemaPath:
4226
+ '#/properties/path/type',
4227
+ keyword: 'type',
4228
+ params: { type: 'string' },
4229
+ message: 'must be string',
4230
+ },
4231
+ ];
4232
+ return false;
4233
+ }
4234
+ var valid0 = _errs11 === errors;
4235
+ } else {
4236
+ var valid0 = true;
4237
+ }
4238
+ if (valid0) {
4239
+ if (data['.git'] !== undefined) {
4240
+ const _errs13 = errors;
4241
+ if (
4242
+ typeof data['.git'] !==
4243
+ 'boolean'
4244
+ ) {
4245
+ validate19.errors = [
4246
+ {
4247
+ instancePath:
4248
+ instancePath +
4249
+ '/.git',
4250
+ schemaPath:
4251
+ '#/properties/.git/type',
4252
+ keyword: 'type',
4253
+ params: {
4254
+ type: 'boolean',
4255
+ },
4256
+ message:
4257
+ 'must be boolean',
4258
+ },
4259
+ ];
4260
+ return false;
4261
+ }
4262
+ var valid0 = _errs13 === errors;
4263
+ } else {
4264
+ var valid0 = true;
4265
+ }
4266
+ }
4267
+ }
4268
+ }
4269
+ }
4270
+ }
4271
+ }
4272
+ }
4273
+ } else {
4274
+ validate19.errors = [
4275
+ {
4276
+ instancePath,
4277
+ schemaPath: '#/type',
4278
+ keyword: 'type',
4279
+ params: { type: 'object' },
4280
+ message: 'must be object',
4281
+ },
4282
+ ];
4283
+ return false;
4284
+ }
4285
+ }
4286
+ validate19.errors = vErrors;
4287
+ return errors === 0;
4288
+ }
4289
+ const schema27 = {
4019
4290
  type: 'object',
4020
4291
  additionalProperties: false,
4021
4292
  properties: {
@@ -4029,7 +4300,7 @@ const schema26 = {
4029
4300
  },
4030
4301
  required: ['files', 'name', 'resource'],
4031
4302
  };
4032
- const schema27 = {
4303
+ const schema28 = {
4033
4304
  type: 'object',
4034
4305
  additionalProperties: {
4035
4306
  anyOf: [
@@ -4039,8 +4310,8 @@ const schema27 = {
4039
4310
  },
4040
4311
  properties: {},
4041
4312
  };
4042
- const wrapper0 = { validate: validate20 };
4043
- function validate20(
4313
+ const wrapper0 = { validate: validate22 };
4314
+ function validate22(
4044
4315
  data,
4045
4316
  { instancePath = '', parentData, parentDataProperty, rootData = data } = {}
4046
4317
  ) {
@@ -4091,7 +4362,7 @@ function validate20(
4091
4362
  schemaPath: '#/additionalProperties/anyOf/1/type',
4092
4363
  keyword: 'type',
4093
4364
  params: {
4094
- type: schema27.additionalProperties.anyOf[1]
4365
+ type: schema28.additionalProperties.anyOf[1]
4095
4366
  .type,
4096
4367
  },
4097
4368
  message: 'must be object,string',
@@ -4123,7 +4394,7 @@ function validate20(
4123
4394
  vErrors.push(err1);
4124
4395
  }
4125
4396
  errors++;
4126
- validate20.errors = vErrors;
4397
+ validate22.errors = vErrors;
4127
4398
  return false;
4128
4399
  } else {
4129
4400
  errors = _errs3;
@@ -4141,7 +4412,7 @@ function validate20(
4141
4412
  }
4142
4413
  }
4143
4414
  } else {
4144
- validate20.errors = [
4415
+ validate22.errors = [
4145
4416
  {
4146
4417
  instancePath,
4147
4418
  schemaPath: '#/type',
@@ -4153,10 +4424,10 @@ function validate20(
4153
4424
  return false;
4154
4425
  }
4155
4426
  }
4156
- validate20.errors = vErrors;
4427
+ validate22.errors = vErrors;
4157
4428
  return errors === 0;
4158
4429
  }
4159
- function validate19(
4430
+ function validate21(
4160
4431
  data,
4161
4432
  { instancePath = '', parentData, parentDataProperty, rootData = data } = {}
4162
4433
  ) {
@@ -4170,7 +4441,7 @@ function validate19(
4170
4441
  (data.name === undefined && (missing0 = 'name')) ||
4171
4442
  (data.resource === undefined && (missing0 = 'resource'))
4172
4443
  ) {
4173
- validate19.errors = [
4444
+ validate21.errors = [
4174
4445
  {
4175
4446
  instancePath,
4176
4447
  schemaPath: '#/required',
@@ -4191,7 +4462,7 @@ function validate19(
4191
4462
  key0 === 'name'
4192
4463
  )
4193
4464
  ) {
4194
- validate19.errors = [
4465
+ validate21.errors = [
4195
4466
  {
4196
4467
  instancePath,
4197
4468
  schemaPath: '#/additionalProperties',
@@ -4209,7 +4480,7 @@ function validate19(
4209
4480
  let data0 = data.resource;
4210
4481
  const _errs2 = errors;
4211
4482
  if (typeof data0 !== 'string') {
4212
- validate19.errors = [
4483
+ validate21.errors = [
4213
4484
  {
4214
4485
  instancePath: instancePath + '/resource',
4215
4486
  schemaPath: '#/properties/resource/type',
@@ -4221,7 +4492,7 @@ function validate19(
4221
4492
  return false;
4222
4493
  }
4223
4494
  if ('literal:directory' !== data0) {
4224
- validate19.errors = [
4495
+ validate21.errors = [
4225
4496
  {
4226
4497
  instancePath: instancePath + '/resource',
4227
4498
  schemaPath: '#/properties/resource/const',
@@ -4242,7 +4513,7 @@ function validate19(
4242
4513
  if (data.files !== undefined) {
4243
4514
  const _errs4 = errors;
4244
4515
  if (
4245
- !validate20(data.files, {
4516
+ !validate22(data.files, {
4246
4517
  instancePath: instancePath + '/files',
4247
4518
  parentData: data,
4248
4519
  parentDataProperty: 'files',
@@ -4251,8 +4522,8 @@ function validate19(
4251
4522
  ) {
4252
4523
  vErrors =
4253
4524
  vErrors === null
4254
- ? validate20.errors
4255
- : vErrors.concat(validate20.errors);
4525
+ ? validate22.errors
4526
+ : vErrors.concat(validate22.errors);
4256
4527
  errors = vErrors.length;
4257
4528
  }
4258
4529
  var valid0 = _errs4 === errors;
@@ -4263,7 +4534,7 @@ function validate19(
4263
4534
  if (data.name !== undefined) {
4264
4535
  const _errs5 = errors;
4265
4536
  if (typeof data.name !== 'string') {
4266
- validate19.errors = [
4537
+ validate21.errors = [
4267
4538
  {
4268
4539
  instancePath:
4269
4540
  instancePath + '/name',
@@ -4285,7 +4556,7 @@ function validate19(
4285
4556
  }
4286
4557
  }
4287
4558
  } else {
4288
- validate19.errors = [
4559
+ validate21.errors = [
4289
4560
  {
4290
4561
  instancePath,
4291
4562
  schemaPath: '#/type',
@@ -4297,7 +4568,7 @@ function validate19(
4297
4568
  return false;
4298
4569
  }
4299
4570
  }
4300
- validate19.errors = vErrors;
4571
+ validate21.errors = vErrors;
4301
4572
  return errors === 0;
4302
4573
  }
4303
4574
  function validate18(
@@ -4309,194 +4580,26 @@ function validate18(
4309
4580
  const _errs0 = errors;
4310
4581
  let valid0 = false;
4311
4582
  const _errs1 = errors;
4312
- const _errs2 = errors;
4313
- if (errors === _errs2) {
4314
- if (data && typeof data == 'object' && !Array.isArray(data)) {
4315
- let missing0;
4316
- if (
4317
- (data.resource === undefined && (missing0 = 'resource')) ||
4318
- (data.url === undefined && (missing0 = 'url')) ||
4319
- (data.ref === undefined && (missing0 = 'ref')) ||
4320
- (data.path === undefined && (missing0 = 'path'))
4321
- ) {
4322
- const err0 = {
4323
- instancePath,
4324
- schemaPath: '#/definitions/GitDirectoryReference/required',
4325
- keyword: 'required',
4326
- params: { missingProperty: missing0 },
4327
- message: "must have required property '" + missing0 + "'",
4328
- };
4329
- if (vErrors === null) {
4330
- vErrors = [err0];
4331
- } else {
4332
- vErrors.push(err0);
4333
- }
4334
- errors++;
4335
- } else {
4336
- const _errs4 = errors;
4337
- for (const key0 in data) {
4338
- if (
4339
- !(
4340
- key0 === 'resource' ||
4341
- key0 === 'url' ||
4342
- key0 === 'ref' ||
4343
- key0 === 'path'
4344
- )
4345
- ) {
4346
- const err1 = {
4347
- instancePath,
4348
- schemaPath:
4349
- '#/definitions/GitDirectoryReference/additionalProperties',
4350
- keyword: 'additionalProperties',
4351
- params: { additionalProperty: key0 },
4352
- message: 'must NOT have additional properties',
4353
- };
4354
- if (vErrors === null) {
4355
- vErrors = [err1];
4356
- } else {
4357
- vErrors.push(err1);
4358
- }
4359
- errors++;
4360
- break;
4361
- }
4362
- }
4363
- if (_errs4 === errors) {
4364
- if (data.resource !== undefined) {
4365
- let data0 = data.resource;
4366
- const _errs5 = errors;
4367
- if (typeof data0 !== 'string') {
4368
- const err2 = {
4369
- instancePath: instancePath + '/resource',
4370
- schemaPath:
4371
- '#/definitions/GitDirectoryReference/properties/resource/type',
4372
- keyword: 'type',
4373
- params: { type: 'string' },
4374
- message: 'must be string',
4375
- };
4376
- if (vErrors === null) {
4377
- vErrors = [err2];
4378
- } else {
4379
- vErrors.push(err2);
4380
- }
4381
- errors++;
4382
- }
4383
- if ('git:directory' !== data0) {
4384
- const err3 = {
4385
- instancePath: instancePath + '/resource',
4386
- schemaPath:
4387
- '#/definitions/GitDirectoryReference/properties/resource/const',
4388
- keyword: 'const',
4389
- params: { allowedValue: 'git:directory' },
4390
- message: 'must be equal to constant',
4391
- };
4392
- if (vErrors === null) {
4393
- vErrors = [err3];
4394
- } else {
4395
- vErrors.push(err3);
4396
- }
4397
- errors++;
4398
- }
4399
- var valid2 = _errs5 === errors;
4400
- } else {
4401
- var valid2 = true;
4402
- }
4403
- if (valid2) {
4404
- if (data.url !== undefined) {
4405
- const _errs7 = errors;
4406
- if (typeof data.url !== 'string') {
4407
- const err4 = {
4408
- instancePath: instancePath + '/url',
4409
- schemaPath:
4410
- '#/definitions/GitDirectoryReference/properties/url/type',
4411
- keyword: 'type',
4412
- params: { type: 'string' },
4413
- message: 'must be string',
4414
- };
4415
- if (vErrors === null) {
4416
- vErrors = [err4];
4417
- } else {
4418
- vErrors.push(err4);
4419
- }
4420
- errors++;
4421
- }
4422
- var valid2 = _errs7 === errors;
4423
- } else {
4424
- var valid2 = true;
4425
- }
4426
- if (valid2) {
4427
- if (data.ref !== undefined) {
4428
- const _errs9 = errors;
4429
- if (typeof data.ref !== 'string') {
4430
- const err5 = {
4431
- instancePath: instancePath + '/ref',
4432
- schemaPath:
4433
- '#/definitions/GitDirectoryReference/properties/ref/type',
4434
- keyword: 'type',
4435
- params: { type: 'string' },
4436
- message: 'must be string',
4437
- };
4438
- if (vErrors === null) {
4439
- vErrors = [err5];
4440
- } else {
4441
- vErrors.push(err5);
4442
- }
4443
- errors++;
4444
- }
4445
- var valid2 = _errs9 === errors;
4446
- } else {
4447
- var valid2 = true;
4448
- }
4449
- if (valid2) {
4450
- if (data.path !== undefined) {
4451
- const _errs11 = errors;
4452
- if (typeof data.path !== 'string') {
4453
- const err6 = {
4454
- instancePath:
4455
- instancePath + '/path',
4456
- schemaPath:
4457
- '#/definitions/GitDirectoryReference/properties/path/type',
4458
- keyword: 'type',
4459
- params: { type: 'string' },
4460
- message: 'must be string',
4461
- };
4462
- if (vErrors === null) {
4463
- vErrors = [err6];
4464
- } else {
4465
- vErrors.push(err6);
4466
- }
4467
- errors++;
4468
- }
4469
- var valid2 = _errs11 === errors;
4470
- } else {
4471
- var valid2 = true;
4472
- }
4473
- }
4474
- }
4475
- }
4476
- }
4477
- }
4478
- } else {
4479
- const err7 = {
4480
- instancePath,
4481
- schemaPath: '#/definitions/GitDirectoryReference/type',
4482
- keyword: 'type',
4483
- params: { type: 'object' },
4484
- message: 'must be object',
4485
- };
4486
- if (vErrors === null) {
4487
- vErrors = [err7];
4488
- } else {
4489
- vErrors.push(err7);
4490
- }
4491
- errors++;
4492
- }
4583
+ if (
4584
+ !validate19(data, {
4585
+ instancePath,
4586
+ parentData,
4587
+ parentDataProperty,
4588
+ rootData,
4589
+ })
4590
+ ) {
4591
+ vErrors =
4592
+ vErrors === null
4593
+ ? validate19.errors
4594
+ : vErrors.concat(validate19.errors);
4595
+ errors = vErrors.length;
4493
4596
  }
4494
4597
  var _valid0 = _errs1 === errors;
4495
4598
  valid0 = valid0 || _valid0;
4496
4599
  if (!valid0) {
4497
- const _errs13 = errors;
4600
+ const _errs2 = errors;
4498
4601
  if (
4499
- !validate19(data, {
4602
+ !validate21(data, {
4500
4603
  instancePath,
4501
4604
  parentData,
4502
4605
  parentDataProperty,
@@ -4505,15 +4608,15 @@ function validate18(
4505
4608
  ) {
4506
4609
  vErrors =
4507
4610
  vErrors === null
4508
- ? validate19.errors
4509
- : vErrors.concat(validate19.errors);
4611
+ ? validate21.errors
4612
+ : vErrors.concat(validate21.errors);
4510
4613
  errors = vErrors.length;
4511
4614
  }
4512
- var _valid0 = _errs13 === errors;
4615
+ var _valid0 = _errs2 === errors;
4513
4616
  valid0 = valid0 || _valid0;
4514
4617
  }
4515
4618
  if (!valid0) {
4516
- const err8 = {
4619
+ const err0 = {
4517
4620
  instancePath,
4518
4621
  schemaPath: '#/anyOf',
4519
4622
  keyword: 'anyOf',
@@ -4521,9 +4624,9 @@ function validate18(
4521
4624
  message: 'must match a schema in anyOf',
4522
4625
  };
4523
4626
  if (vErrors === null) {
4524
- vErrors = [err8];
4627
+ vErrors = [err0];
4525
4628
  } else {
4526
- vErrors.push(err8);
4629
+ vErrors.push(err0);
4527
4630
  }
4528
4631
  errors++;
4529
4632
  validate18.errors = vErrors;
@@ -4541,7 +4644,7 @@ function validate18(
4541
4644
  validate18.errors = vErrors;
4542
4645
  return errors === 0;
4543
4646
  }
4544
- const schema30 = {
4647
+ const schema31 = {
4545
4648
  type: 'object',
4546
4649
  properties: {
4547
4650
  method: {
@@ -4638,12 +4741,12 @@ const schema30 = {
4638
4741
  required: ['url'],
4639
4742
  additionalProperties: false,
4640
4743
  };
4641
- const schema31 = {
4744
+ const schema32 = {
4642
4745
  type: 'string',
4643
4746
  enum: ['GET', 'POST', 'HEAD', 'OPTIONS', 'PATCH', 'PUT', 'DELETE'],
4644
4747
  };
4645
- const schema32 = { type: 'object', additionalProperties: { type: 'string' } };
4646
- function validate28(
4748
+ const schema33 = { type: 'object', additionalProperties: { type: 'string' } };
4749
+ function validate30(
4647
4750
  data,
4648
4751
  { instancePath = '', parentData, parentDataProperty, rootData = data } = {}
4649
4752
  ) {
@@ -4653,7 +4756,7 @@ function validate28(
4653
4756
  if (data && typeof data == 'object' && !Array.isArray(data)) {
4654
4757
  let missing0;
4655
4758
  if (data.url === undefined && (missing0 = 'url')) {
4656
- validate28.errors = [
4759
+ validate30.errors = [
4657
4760
  {
4658
4761
  instancePath,
4659
4762
  schemaPath: '#/required',
@@ -4675,7 +4778,7 @@ function validate28(
4675
4778
  key0 === 'body'
4676
4779
  )
4677
4780
  ) {
4678
- validate28.errors = [
4781
+ validate30.errors = [
4679
4782
  {
4680
4783
  instancePath,
4681
4784
  schemaPath: '#/additionalProperties',
@@ -4693,7 +4796,7 @@ function validate28(
4693
4796
  let data0 = data.method;
4694
4797
  const _errs2 = errors;
4695
4798
  if (typeof data0 !== 'string') {
4696
- validate28.errors = [
4799
+ validate30.errors = [
4697
4800
  {
4698
4801
  instancePath: instancePath + '/method',
4699
4802
  schemaPath: '#/definitions/HTTPMethod/type',
@@ -4715,12 +4818,12 @@ function validate28(
4715
4818
  data0 === 'DELETE'
4716
4819
  )
4717
4820
  ) {
4718
- validate28.errors = [
4821
+ validate30.errors = [
4719
4822
  {
4720
4823
  instancePath: instancePath + '/method',
4721
4824
  schemaPath: '#/definitions/HTTPMethod/enum',
4722
4825
  keyword: 'enum',
4723
- params: { allowedValues: schema31.enum },
4826
+ params: { allowedValues: schema32.enum },
4724
4827
  message:
4725
4828
  'must be equal to one of the allowed values',
4726
4829
  },
@@ -4735,7 +4838,7 @@ function validate28(
4735
4838
  if (data.url !== undefined) {
4736
4839
  const _errs5 = errors;
4737
4840
  if (typeof data.url !== 'string') {
4738
- validate28.errors = [
4841
+ validate30.errors = [
4739
4842
  {
4740
4843
  instancePath: instancePath + '/url',
4741
4844
  schemaPath: '#/properties/url/type',
@@ -4766,7 +4869,7 @@ function validate28(
4766
4869
  if (
4767
4870
  typeof data2[key1] !== 'string'
4768
4871
  ) {
4769
- validate28.errors = [
4872
+ validate30.errors = [
4770
4873
  {
4771
4874
  instancePath:
4772
4875
  instancePath +
@@ -4798,7 +4901,7 @@ function validate28(
4798
4901
  }
4799
4902
  }
4800
4903
  } else {
4801
- validate28.errors = [
4904
+ validate30.errors = [
4802
4905
  {
4803
4906
  instancePath:
4804
4907
  instancePath + '/headers',
@@ -6787,7 +6890,7 @@ function validate28(
6787
6890
  vErrors.push(err34);
6788
6891
  }
6789
6892
  errors++;
6790
- validate28.errors = vErrors;
6893
+ validate30.errors = vErrors;
6791
6894
  return false;
6792
6895
  } else {
6793
6896
  errors = _errs14;
@@ -6809,7 +6912,7 @@ function validate28(
6809
6912
  }
6810
6913
  }
6811
6914
  } else {
6812
- validate28.errors = [
6915
+ validate30.errors = [
6813
6916
  {
6814
6917
  instancePath,
6815
6918
  schemaPath: '#/type',
@@ -6821,10 +6924,10 @@ function validate28(
6821
6924
  return false;
6822
6925
  }
6823
6926
  }
6824
- validate28.errors = vErrors;
6927
+ validate30.errors = vErrors;
6825
6928
  return errors === 0;
6826
6929
  }
6827
- const schema33 = {
6930
+ const schema34 = {
6828
6931
  type: 'object',
6829
6932
  properties: {
6830
6933
  relativeUri: {
@@ -6890,7 +6993,7 @@ const schema33 = {
6890
6993
  },
6891
6994
  additionalProperties: false,
6892
6995
  };
6893
- function validate30(
6996
+ function validate32(
6894
6997
  data,
6895
6998
  { instancePath = '', parentData, parentDataProperty, rootData = data } = {}
6896
6999
  ) {
@@ -6900,8 +7003,8 @@ function validate30(
6900
7003
  if (data && typeof data == 'object' && !Array.isArray(data)) {
6901
7004
  const _errs1 = errors;
6902
7005
  for (const key0 in data) {
6903
- if (!func2.call(schema33.properties, key0)) {
6904
- validate30.errors = [
7006
+ if (!func2.call(schema34.properties, key0)) {
7007
+ validate32.errors = [
6905
7008
  {
6906
7009
  instancePath,
6907
7010
  schemaPath: '#/additionalProperties',
@@ -6918,7 +7021,7 @@ function validate30(
6918
7021
  if (data.relativeUri !== undefined) {
6919
7022
  const _errs2 = errors;
6920
7023
  if (typeof data.relativeUri !== 'string') {
6921
- validate30.errors = [
7024
+ validate32.errors = [
6922
7025
  {
6923
7026
  instancePath: instancePath + '/relativeUri',
6924
7027
  schemaPath: '#/properties/relativeUri/type',
@@ -6937,7 +7040,7 @@ function validate30(
6937
7040
  if (data.scriptPath !== undefined) {
6938
7041
  const _errs4 = errors;
6939
7042
  if (typeof data.scriptPath !== 'string') {
6940
- validate30.errors = [
7043
+ validate32.errors = [
6941
7044
  {
6942
7045
  instancePath: instancePath + '/scriptPath',
6943
7046
  schemaPath: '#/properties/scriptPath/type',
@@ -6956,7 +7059,7 @@ function validate30(
6956
7059
  if (data.protocol !== undefined) {
6957
7060
  const _errs6 = errors;
6958
7061
  if (typeof data.protocol !== 'string') {
6959
- validate30.errors = [
7062
+ validate32.errors = [
6960
7063
  {
6961
7064
  instancePath:
6962
7065
  instancePath + '/protocol',
@@ -6978,7 +7081,7 @@ function validate30(
6978
7081
  let data3 = data.method;
6979
7082
  const _errs8 = errors;
6980
7083
  if (typeof data3 !== 'string') {
6981
- validate30.errors = [
7084
+ validate32.errors = [
6982
7085
  {
6983
7086
  instancePath:
6984
7087
  instancePath + '/method',
@@ -7002,7 +7105,7 @@ function validate30(
7002
7105
  data3 === 'DELETE'
7003
7106
  )
7004
7107
  ) {
7005
- validate30.errors = [
7108
+ validate32.errors = [
7006
7109
  {
7007
7110
  instancePath:
7008
7111
  instancePath + '/method',
@@ -7010,7 +7113,7 @@ function validate30(
7010
7113
  '#/definitions/HTTPMethod/enum',
7011
7114
  keyword: 'enum',
7012
7115
  params: {
7013
- allowedValues: schema31.enum,
7116
+ allowedValues: schema32.enum,
7014
7117
  },
7015
7118
  message:
7016
7119
  'must be equal to one of the allowed values',
@@ -7039,7 +7142,7 @@ function validate30(
7039
7142
  typeof data4[key1] !==
7040
7143
  'string'
7041
7144
  ) {
7042
- validate30.errors = [
7145
+ validate32.errors = [
7043
7146
  {
7044
7147
  instancePath:
7045
7148
  instancePath +
@@ -7071,7 +7174,7 @@ function validate30(
7071
7174
  }
7072
7175
  }
7073
7176
  } else {
7074
- validate30.errors = [
7177
+ validate32.errors = [
7075
7178
  {
7076
7179
  instancePath:
7077
7180
  instancePath +
@@ -7709,7 +7812,7 @@ function validate30(
7709
7812
  vErrors.push(err12);
7710
7813
  }
7711
7814
  errors++;
7712
- validate30.errors = vErrors;
7815
+ validate32.errors = vErrors;
7713
7816
  return false;
7714
7817
  } else {
7715
7818
  errors = _errs18;
@@ -7742,7 +7845,7 @@ function validate30(
7742
7845
  key4
7743
7846
  ] !== 'string'
7744
7847
  ) {
7745
- validate30.errors =
7848
+ validate32.errors =
7746
7849
  [
7747
7850
  {
7748
7851
  instancePath:
@@ -7777,7 +7880,7 @@ function validate30(
7777
7880
  }
7778
7881
  }
7779
7882
  } else {
7780
- validate30.errors = [
7883
+ validate32.errors = [
7781
7884
  {
7782
7885
  instancePath:
7783
7886
  instancePath +
@@ -7818,7 +7921,7 @@ function validate30(
7818
7921
  key5
7819
7922
  ] !== 'string'
7820
7923
  ) {
7821
- validate30.errors =
7924
+ validate32.errors =
7822
7925
  [
7823
7926
  {
7824
7927
  instancePath:
@@ -7854,7 +7957,7 @@ function validate30(
7854
7957
  }
7855
7958
  }
7856
7959
  } else {
7857
- validate30.errors = [
7960
+ validate32.errors = [
7858
7961
  {
7859
7962
  instancePath:
7860
7963
  instancePath +
@@ -7883,7 +7986,7 @@ function validate30(
7883
7986
  typeof data.code !==
7884
7987
  'string'
7885
7988
  ) {
7886
- validate30.errors = [
7989
+ validate32.errors = [
7887
7990
  {
7888
7991
  instancePath:
7889
7992
  instancePath +
@@ -7915,7 +8018,7 @@ function validate30(
7915
8018
  }
7916
8019
  }
7917
8020
  } else {
7918
- validate30.errors = [
8021
+ validate32.errors = [
7919
8022
  {
7920
8023
  instancePath,
7921
8024
  schemaPath: '#/type',
@@ -7927,7 +8030,7 @@ function validate30(
7927
8030
  return false;
7928
8031
  }
7929
8032
  }
7930
- validate30.errors = vErrors;
8033
+ validate32.errors = vErrors;
7931
8034
  return errors === 0;
7932
8035
  }
7933
8036
  function validate14(
@@ -13845,7 +13948,7 @@ function validate14(
13845
13948
  ) {
13846
13949
  const _errs266 = errors;
13847
13950
  if (
13848
- !validate28(
13951
+ !validate30(
13849
13952
  data.request,
13850
13953
  {
13851
13954
  instancePath:
@@ -13861,9 +13964,9 @@ function validate14(
13861
13964
  ) {
13862
13965
  vErrors =
13863
13966
  vErrors === null
13864
- ? validate28.errors
13967
+ ? validate30.errors
13865
13968
  : vErrors.concat(
13866
- validate28.errors
13969
+ validate30.errors
13867
13970
  );
13868
13971
  errors = vErrors.length;
13869
13972
  }
@@ -15332,7 +15435,7 @@ function validate14(
15332
15435
  ) {
15333
15436
  const _errs330 = errors;
15334
15437
  if (
15335
- !validate30(
15438
+ !validate32(
15336
15439
  data.options,
15337
15440
  {
15338
15441
  instancePath:
@@ -15348,9 +15451,9 @@ function validate14(
15348
15451
  ) {
15349
15452
  vErrors =
15350
15453
  vErrors === null
15351
- ? validate30.errors
15454
+ ? validate32.errors
15352
15455
  : vErrors.concat(
15353
- validate30.errors
15456
+ validate32.errors
15354
15457
  );
15355
15458
  errors = vErrors.length;
15356
15459
  }