@wp-playground/blueprints 3.0.6 → 3.0.12
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 +320 -257
- package/blueprint-schema.json +11 -3
- package/index.cjs +48 -48
- package/index.cjs.map +1 -1
- package/index.js +2588 -2548
- package/index.js.map +1 -1
- package/lib/steps/run-php.d.ts +2 -2
- package/lib/v1/resources.d.ts +6 -3
- package/package.json +19 -15
|
@@ -1089,17 +1089,27 @@ const schema11 = {
|
|
|
1089
1089
|
},
|
|
1090
1090
|
ref: {
|
|
1091
1091
|
type: 'string',
|
|
1092
|
-
description:
|
|
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.',
|
|
1098
1104
|
},
|
|
1099
1105
|
},
|
|
1100
|
-
required: ['resource', 'url', 'ref'
|
|
1106
|
+
required: ['resource', 'url', 'ref'],
|
|
1101
1107
|
additionalProperties: false,
|
|
1102
1108
|
},
|
|
1109
|
+
GitDirectoryRefType: {
|
|
1110
|
+
type: 'string',
|
|
1111
|
+
enum: ['branch', 'tag', 'commit', 'refname'],
|
|
1112
|
+
},
|
|
1103
1113
|
DirectoryLiteralReference: {
|
|
1104
1114
|
type: 'object',
|
|
1105
1115
|
additionalProperties: false,
|
|
@@ -3945,7 +3955,7 @@ const schema23 = {
|
|
|
3945
3955
|
},
|
|
3946
3956
|
],
|
|
3947
3957
|
};
|
|
3948
|
-
const
|
|
3958
|
+
const schema29 = {
|
|
3949
3959
|
type: 'object',
|
|
3950
3960
|
properties: {
|
|
3951
3961
|
activate: {
|
|
@@ -3960,7 +3970,7 @@ const schema28 = {
|
|
|
3960
3970
|
},
|
|
3961
3971
|
additionalProperties: false,
|
|
3962
3972
|
};
|
|
3963
|
-
const
|
|
3973
|
+
const schema30 = {
|
|
3964
3974
|
type: 'object',
|
|
3965
3975
|
properties: {
|
|
3966
3976
|
activate: {
|
|
@@ -3980,7 +3990,7 @@ const schema29 = {
|
|
|
3980
3990
|
},
|
|
3981
3991
|
additionalProperties: false,
|
|
3982
3992
|
};
|
|
3983
|
-
const
|
|
3993
|
+
const schema37 = {
|
|
3984
3994
|
type: 'object',
|
|
3985
3995
|
properties: {
|
|
3986
3996
|
adminUsername: { type: 'string' },
|
|
@@ -4005,17 +4015,238 @@ const schema25 = {
|
|
|
4005
4015
|
url: { type: 'string', description: 'The URL of the git repository' },
|
|
4006
4016
|
ref: {
|
|
4007
4017
|
type: 'string',
|
|
4008
|
-
description:
|
|
4018
|
+
description:
|
|
4019
|
+
'The ref (branch, tag, or commit) of the git repository',
|
|
4020
|
+
},
|
|
4021
|
+
refType: {
|
|
4022
|
+
$ref: '#/definitions/GitDirectoryRefType',
|
|
4023
|
+
description:
|
|
4024
|
+
'Explicit hint about the ref type (branch, tag, commit, refname)',
|
|
4009
4025
|
},
|
|
4010
4026
|
path: {
|
|
4011
4027
|
type: 'string',
|
|
4012
|
-
description:
|
|
4028
|
+
description:
|
|
4029
|
+
'The path to the directory in the git repository. Defaults to the repo root.',
|
|
4013
4030
|
},
|
|
4014
4031
|
},
|
|
4015
|
-
required: ['resource', 'url', 'ref'
|
|
4032
|
+
required: ['resource', 'url', 'ref'],
|
|
4016
4033
|
additionalProperties: false,
|
|
4017
4034
|
};
|
|
4018
4035
|
const schema26 = {
|
|
4036
|
+
type: 'string',
|
|
4037
|
+
enum: ['branch', 'tag', 'commit', 'refname'],
|
|
4038
|
+
};
|
|
4039
|
+
function validate19(
|
|
4040
|
+
data,
|
|
4041
|
+
{ instancePath = '', parentData, parentDataProperty, rootData = data } = {}
|
|
4042
|
+
) {
|
|
4043
|
+
let vErrors = null;
|
|
4044
|
+
let errors = 0;
|
|
4045
|
+
if (errors === 0) {
|
|
4046
|
+
if (data && typeof data == 'object' && !Array.isArray(data)) {
|
|
4047
|
+
let missing0;
|
|
4048
|
+
if (
|
|
4049
|
+
(data.resource === undefined && (missing0 = 'resource')) ||
|
|
4050
|
+
(data.url === undefined && (missing0 = 'url')) ||
|
|
4051
|
+
(data.ref === undefined && (missing0 = 'ref'))
|
|
4052
|
+
) {
|
|
4053
|
+
validate19.errors = [
|
|
4054
|
+
{
|
|
4055
|
+
instancePath,
|
|
4056
|
+
schemaPath: '#/required',
|
|
4057
|
+
keyword: 'required',
|
|
4058
|
+
params: { missingProperty: missing0 },
|
|
4059
|
+
message:
|
|
4060
|
+
"must have required property '" + missing0 + "'",
|
|
4061
|
+
},
|
|
4062
|
+
];
|
|
4063
|
+
return false;
|
|
4064
|
+
} else {
|
|
4065
|
+
const _errs1 = errors;
|
|
4066
|
+
for (const key0 in data) {
|
|
4067
|
+
if (
|
|
4068
|
+
!(
|
|
4069
|
+
key0 === 'resource' ||
|
|
4070
|
+
key0 === 'url' ||
|
|
4071
|
+
key0 === 'ref' ||
|
|
4072
|
+
key0 === 'refType' ||
|
|
4073
|
+
key0 === 'path'
|
|
4074
|
+
)
|
|
4075
|
+
) {
|
|
4076
|
+
validate19.errors = [
|
|
4077
|
+
{
|
|
4078
|
+
instancePath,
|
|
4079
|
+
schemaPath: '#/additionalProperties',
|
|
4080
|
+
keyword: 'additionalProperties',
|
|
4081
|
+
params: { additionalProperty: key0 },
|
|
4082
|
+
message: 'must NOT have additional properties',
|
|
4083
|
+
},
|
|
4084
|
+
];
|
|
4085
|
+
return false;
|
|
4086
|
+
break;
|
|
4087
|
+
}
|
|
4088
|
+
}
|
|
4089
|
+
if (_errs1 === errors) {
|
|
4090
|
+
if (data.resource !== undefined) {
|
|
4091
|
+
let data0 = data.resource;
|
|
4092
|
+
const _errs2 = errors;
|
|
4093
|
+
if (typeof data0 !== 'string') {
|
|
4094
|
+
validate19.errors = [
|
|
4095
|
+
{
|
|
4096
|
+
instancePath: instancePath + '/resource',
|
|
4097
|
+
schemaPath: '#/properties/resource/type',
|
|
4098
|
+
keyword: 'type',
|
|
4099
|
+
params: { type: 'string' },
|
|
4100
|
+
message: 'must be string',
|
|
4101
|
+
},
|
|
4102
|
+
];
|
|
4103
|
+
return false;
|
|
4104
|
+
}
|
|
4105
|
+
if ('git:directory' !== data0) {
|
|
4106
|
+
validate19.errors = [
|
|
4107
|
+
{
|
|
4108
|
+
instancePath: instancePath + '/resource',
|
|
4109
|
+
schemaPath: '#/properties/resource/const',
|
|
4110
|
+
keyword: 'const',
|
|
4111
|
+
params: { allowedValue: 'git:directory' },
|
|
4112
|
+
message: 'must be equal to constant',
|
|
4113
|
+
},
|
|
4114
|
+
];
|
|
4115
|
+
return false;
|
|
4116
|
+
}
|
|
4117
|
+
var valid0 = _errs2 === errors;
|
|
4118
|
+
} else {
|
|
4119
|
+
var valid0 = true;
|
|
4120
|
+
}
|
|
4121
|
+
if (valid0) {
|
|
4122
|
+
if (data.url !== undefined) {
|
|
4123
|
+
const _errs4 = errors;
|
|
4124
|
+
if (typeof data.url !== 'string') {
|
|
4125
|
+
validate19.errors = [
|
|
4126
|
+
{
|
|
4127
|
+
instancePath: instancePath + '/url',
|
|
4128
|
+
schemaPath: '#/properties/url/type',
|
|
4129
|
+
keyword: 'type',
|
|
4130
|
+
params: { type: 'string' },
|
|
4131
|
+
message: 'must be string',
|
|
4132
|
+
},
|
|
4133
|
+
];
|
|
4134
|
+
return false;
|
|
4135
|
+
}
|
|
4136
|
+
var valid0 = _errs4 === errors;
|
|
4137
|
+
} else {
|
|
4138
|
+
var valid0 = true;
|
|
4139
|
+
}
|
|
4140
|
+
if (valid0) {
|
|
4141
|
+
if (data.ref !== undefined) {
|
|
4142
|
+
const _errs6 = errors;
|
|
4143
|
+
if (typeof data.ref !== 'string') {
|
|
4144
|
+
validate19.errors = [
|
|
4145
|
+
{
|
|
4146
|
+
instancePath: instancePath + '/ref',
|
|
4147
|
+
schemaPath: '#/properties/ref/type',
|
|
4148
|
+
keyword: 'type',
|
|
4149
|
+
params: { type: 'string' },
|
|
4150
|
+
message: 'must be string',
|
|
4151
|
+
},
|
|
4152
|
+
];
|
|
4153
|
+
return false;
|
|
4154
|
+
}
|
|
4155
|
+
var valid0 = _errs6 === errors;
|
|
4156
|
+
} else {
|
|
4157
|
+
var valid0 = true;
|
|
4158
|
+
}
|
|
4159
|
+
if (valid0) {
|
|
4160
|
+
if (data.refType !== undefined) {
|
|
4161
|
+
let data3 = data.refType;
|
|
4162
|
+
const _errs8 = errors;
|
|
4163
|
+
if (typeof data3 !== 'string') {
|
|
4164
|
+
validate19.errors = [
|
|
4165
|
+
{
|
|
4166
|
+
instancePath:
|
|
4167
|
+
instancePath + '/refType',
|
|
4168
|
+
schemaPath:
|
|
4169
|
+
'#/definitions/GitDirectoryRefType/type',
|
|
4170
|
+
keyword: 'type',
|
|
4171
|
+
params: { type: 'string' },
|
|
4172
|
+
message: 'must be string',
|
|
4173
|
+
},
|
|
4174
|
+
];
|
|
4175
|
+
return false;
|
|
4176
|
+
}
|
|
4177
|
+
if (
|
|
4178
|
+
!(
|
|
4179
|
+
data3 === 'branch' ||
|
|
4180
|
+
data3 === 'tag' ||
|
|
4181
|
+
data3 === 'commit' ||
|
|
4182
|
+
data3 === 'refname'
|
|
4183
|
+
)
|
|
4184
|
+
) {
|
|
4185
|
+
validate19.errors = [
|
|
4186
|
+
{
|
|
4187
|
+
instancePath:
|
|
4188
|
+
instancePath + '/refType',
|
|
4189
|
+
schemaPath:
|
|
4190
|
+
'#/definitions/GitDirectoryRefType/enum',
|
|
4191
|
+
keyword: 'enum',
|
|
4192
|
+
params: {
|
|
4193
|
+
allowedValues:
|
|
4194
|
+
schema26.enum,
|
|
4195
|
+
},
|
|
4196
|
+
message:
|
|
4197
|
+
'must be equal to one of the allowed values',
|
|
4198
|
+
},
|
|
4199
|
+
];
|
|
4200
|
+
return false;
|
|
4201
|
+
}
|
|
4202
|
+
var valid0 = _errs8 === errors;
|
|
4203
|
+
} else {
|
|
4204
|
+
var valid0 = true;
|
|
4205
|
+
}
|
|
4206
|
+
if (valid0) {
|
|
4207
|
+
if (data.path !== undefined) {
|
|
4208
|
+
const _errs11 = errors;
|
|
4209
|
+
if (typeof data.path !== 'string') {
|
|
4210
|
+
validate19.errors = [
|
|
4211
|
+
{
|
|
4212
|
+
instancePath:
|
|
4213
|
+
instancePath + '/path',
|
|
4214
|
+
schemaPath:
|
|
4215
|
+
'#/properties/path/type',
|
|
4216
|
+
keyword: 'type',
|
|
4217
|
+
params: { type: 'string' },
|
|
4218
|
+
message: 'must be string',
|
|
4219
|
+
},
|
|
4220
|
+
];
|
|
4221
|
+
return false;
|
|
4222
|
+
}
|
|
4223
|
+
var valid0 = _errs11 === errors;
|
|
4224
|
+
} else {
|
|
4225
|
+
var valid0 = true;
|
|
4226
|
+
}
|
|
4227
|
+
}
|
|
4228
|
+
}
|
|
4229
|
+
}
|
|
4230
|
+
}
|
|
4231
|
+
}
|
|
4232
|
+
}
|
|
4233
|
+
} else {
|
|
4234
|
+
validate19.errors = [
|
|
4235
|
+
{
|
|
4236
|
+
instancePath,
|
|
4237
|
+
schemaPath: '#/type',
|
|
4238
|
+
keyword: 'type',
|
|
4239
|
+
params: { type: 'object' },
|
|
4240
|
+
message: 'must be object',
|
|
4241
|
+
},
|
|
4242
|
+
];
|
|
4243
|
+
return false;
|
|
4244
|
+
}
|
|
4245
|
+
}
|
|
4246
|
+
validate19.errors = vErrors;
|
|
4247
|
+
return errors === 0;
|
|
4248
|
+
}
|
|
4249
|
+
const schema27 = {
|
|
4019
4250
|
type: 'object',
|
|
4020
4251
|
additionalProperties: false,
|
|
4021
4252
|
properties: {
|
|
@@ -4029,7 +4260,7 @@ const schema26 = {
|
|
|
4029
4260
|
},
|
|
4030
4261
|
required: ['files', 'name', 'resource'],
|
|
4031
4262
|
};
|
|
4032
|
-
const
|
|
4263
|
+
const schema28 = {
|
|
4033
4264
|
type: 'object',
|
|
4034
4265
|
additionalProperties: {
|
|
4035
4266
|
anyOf: [
|
|
@@ -4039,8 +4270,8 @@ const schema27 = {
|
|
|
4039
4270
|
},
|
|
4040
4271
|
properties: {},
|
|
4041
4272
|
};
|
|
4042
|
-
const wrapper0 = { validate:
|
|
4043
|
-
function
|
|
4273
|
+
const wrapper0 = { validate: validate22 };
|
|
4274
|
+
function validate22(
|
|
4044
4275
|
data,
|
|
4045
4276
|
{ instancePath = '', parentData, parentDataProperty, rootData = data } = {}
|
|
4046
4277
|
) {
|
|
@@ -4091,7 +4322,7 @@ function validate20(
|
|
|
4091
4322
|
schemaPath: '#/additionalProperties/anyOf/1/type',
|
|
4092
4323
|
keyword: 'type',
|
|
4093
4324
|
params: {
|
|
4094
|
-
type:
|
|
4325
|
+
type: schema28.additionalProperties.anyOf[1]
|
|
4095
4326
|
.type,
|
|
4096
4327
|
},
|
|
4097
4328
|
message: 'must be object,string',
|
|
@@ -4123,7 +4354,7 @@ function validate20(
|
|
|
4123
4354
|
vErrors.push(err1);
|
|
4124
4355
|
}
|
|
4125
4356
|
errors++;
|
|
4126
|
-
|
|
4357
|
+
validate22.errors = vErrors;
|
|
4127
4358
|
return false;
|
|
4128
4359
|
} else {
|
|
4129
4360
|
errors = _errs3;
|
|
@@ -4141,7 +4372,7 @@ function validate20(
|
|
|
4141
4372
|
}
|
|
4142
4373
|
}
|
|
4143
4374
|
} else {
|
|
4144
|
-
|
|
4375
|
+
validate22.errors = [
|
|
4145
4376
|
{
|
|
4146
4377
|
instancePath,
|
|
4147
4378
|
schemaPath: '#/type',
|
|
@@ -4153,10 +4384,10 @@ function validate20(
|
|
|
4153
4384
|
return false;
|
|
4154
4385
|
}
|
|
4155
4386
|
}
|
|
4156
|
-
|
|
4387
|
+
validate22.errors = vErrors;
|
|
4157
4388
|
return errors === 0;
|
|
4158
4389
|
}
|
|
4159
|
-
function
|
|
4390
|
+
function validate21(
|
|
4160
4391
|
data,
|
|
4161
4392
|
{ instancePath = '', parentData, parentDataProperty, rootData = data } = {}
|
|
4162
4393
|
) {
|
|
@@ -4170,7 +4401,7 @@ function validate19(
|
|
|
4170
4401
|
(data.name === undefined && (missing0 = 'name')) ||
|
|
4171
4402
|
(data.resource === undefined && (missing0 = 'resource'))
|
|
4172
4403
|
) {
|
|
4173
|
-
|
|
4404
|
+
validate21.errors = [
|
|
4174
4405
|
{
|
|
4175
4406
|
instancePath,
|
|
4176
4407
|
schemaPath: '#/required',
|
|
@@ -4191,7 +4422,7 @@ function validate19(
|
|
|
4191
4422
|
key0 === 'name'
|
|
4192
4423
|
)
|
|
4193
4424
|
) {
|
|
4194
|
-
|
|
4425
|
+
validate21.errors = [
|
|
4195
4426
|
{
|
|
4196
4427
|
instancePath,
|
|
4197
4428
|
schemaPath: '#/additionalProperties',
|
|
@@ -4209,7 +4440,7 @@ function validate19(
|
|
|
4209
4440
|
let data0 = data.resource;
|
|
4210
4441
|
const _errs2 = errors;
|
|
4211
4442
|
if (typeof data0 !== 'string') {
|
|
4212
|
-
|
|
4443
|
+
validate21.errors = [
|
|
4213
4444
|
{
|
|
4214
4445
|
instancePath: instancePath + '/resource',
|
|
4215
4446
|
schemaPath: '#/properties/resource/type',
|
|
@@ -4221,7 +4452,7 @@ function validate19(
|
|
|
4221
4452
|
return false;
|
|
4222
4453
|
}
|
|
4223
4454
|
if ('literal:directory' !== data0) {
|
|
4224
|
-
|
|
4455
|
+
validate21.errors = [
|
|
4225
4456
|
{
|
|
4226
4457
|
instancePath: instancePath + '/resource',
|
|
4227
4458
|
schemaPath: '#/properties/resource/const',
|
|
@@ -4242,7 +4473,7 @@ function validate19(
|
|
|
4242
4473
|
if (data.files !== undefined) {
|
|
4243
4474
|
const _errs4 = errors;
|
|
4244
4475
|
if (
|
|
4245
|
-
!
|
|
4476
|
+
!validate22(data.files, {
|
|
4246
4477
|
instancePath: instancePath + '/files',
|
|
4247
4478
|
parentData: data,
|
|
4248
4479
|
parentDataProperty: 'files',
|
|
@@ -4251,8 +4482,8 @@ function validate19(
|
|
|
4251
4482
|
) {
|
|
4252
4483
|
vErrors =
|
|
4253
4484
|
vErrors === null
|
|
4254
|
-
?
|
|
4255
|
-
: vErrors.concat(
|
|
4485
|
+
? validate22.errors
|
|
4486
|
+
: vErrors.concat(validate22.errors);
|
|
4256
4487
|
errors = vErrors.length;
|
|
4257
4488
|
}
|
|
4258
4489
|
var valid0 = _errs4 === errors;
|
|
@@ -4263,7 +4494,7 @@ function validate19(
|
|
|
4263
4494
|
if (data.name !== undefined) {
|
|
4264
4495
|
const _errs5 = errors;
|
|
4265
4496
|
if (typeof data.name !== 'string') {
|
|
4266
|
-
|
|
4497
|
+
validate21.errors = [
|
|
4267
4498
|
{
|
|
4268
4499
|
instancePath:
|
|
4269
4500
|
instancePath + '/name',
|
|
@@ -4285,7 +4516,7 @@ function validate19(
|
|
|
4285
4516
|
}
|
|
4286
4517
|
}
|
|
4287
4518
|
} else {
|
|
4288
|
-
|
|
4519
|
+
validate21.errors = [
|
|
4289
4520
|
{
|
|
4290
4521
|
instancePath,
|
|
4291
4522
|
schemaPath: '#/type',
|
|
@@ -4297,7 +4528,7 @@ function validate19(
|
|
|
4297
4528
|
return false;
|
|
4298
4529
|
}
|
|
4299
4530
|
}
|
|
4300
|
-
|
|
4531
|
+
validate21.errors = vErrors;
|
|
4301
4532
|
return errors === 0;
|
|
4302
4533
|
}
|
|
4303
4534
|
function validate18(
|
|
@@ -4309,194 +4540,26 @@ function validate18(
|
|
|
4309
4540
|
const _errs0 = errors;
|
|
4310
4541
|
let valid0 = false;
|
|
4311
4542
|
const _errs1 = errors;
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
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
|
-
}
|
|
4543
|
+
if (
|
|
4544
|
+
!validate19(data, {
|
|
4545
|
+
instancePath,
|
|
4546
|
+
parentData,
|
|
4547
|
+
parentDataProperty,
|
|
4548
|
+
rootData,
|
|
4549
|
+
})
|
|
4550
|
+
) {
|
|
4551
|
+
vErrors =
|
|
4552
|
+
vErrors === null
|
|
4553
|
+
? validate19.errors
|
|
4554
|
+
: vErrors.concat(validate19.errors);
|
|
4555
|
+
errors = vErrors.length;
|
|
4493
4556
|
}
|
|
4494
4557
|
var _valid0 = _errs1 === errors;
|
|
4495
4558
|
valid0 = valid0 || _valid0;
|
|
4496
4559
|
if (!valid0) {
|
|
4497
|
-
const
|
|
4560
|
+
const _errs2 = errors;
|
|
4498
4561
|
if (
|
|
4499
|
-
!
|
|
4562
|
+
!validate21(data, {
|
|
4500
4563
|
instancePath,
|
|
4501
4564
|
parentData,
|
|
4502
4565
|
parentDataProperty,
|
|
@@ -4505,15 +4568,15 @@ function validate18(
|
|
|
4505
4568
|
) {
|
|
4506
4569
|
vErrors =
|
|
4507
4570
|
vErrors === null
|
|
4508
|
-
?
|
|
4509
|
-
: vErrors.concat(
|
|
4571
|
+
? validate21.errors
|
|
4572
|
+
: vErrors.concat(validate21.errors);
|
|
4510
4573
|
errors = vErrors.length;
|
|
4511
4574
|
}
|
|
4512
|
-
var _valid0 =
|
|
4575
|
+
var _valid0 = _errs2 === errors;
|
|
4513
4576
|
valid0 = valid0 || _valid0;
|
|
4514
4577
|
}
|
|
4515
4578
|
if (!valid0) {
|
|
4516
|
-
const
|
|
4579
|
+
const err0 = {
|
|
4517
4580
|
instancePath,
|
|
4518
4581
|
schemaPath: '#/anyOf',
|
|
4519
4582
|
keyword: 'anyOf',
|
|
@@ -4521,9 +4584,9 @@ function validate18(
|
|
|
4521
4584
|
message: 'must match a schema in anyOf',
|
|
4522
4585
|
};
|
|
4523
4586
|
if (vErrors === null) {
|
|
4524
|
-
vErrors = [
|
|
4587
|
+
vErrors = [err0];
|
|
4525
4588
|
} else {
|
|
4526
|
-
vErrors.push(
|
|
4589
|
+
vErrors.push(err0);
|
|
4527
4590
|
}
|
|
4528
4591
|
errors++;
|
|
4529
4592
|
validate18.errors = vErrors;
|
|
@@ -4541,7 +4604,7 @@ function validate18(
|
|
|
4541
4604
|
validate18.errors = vErrors;
|
|
4542
4605
|
return errors === 0;
|
|
4543
4606
|
}
|
|
4544
|
-
const
|
|
4607
|
+
const schema31 = {
|
|
4545
4608
|
type: 'object',
|
|
4546
4609
|
properties: {
|
|
4547
4610
|
method: {
|
|
@@ -4638,12 +4701,12 @@ const schema30 = {
|
|
|
4638
4701
|
required: ['url'],
|
|
4639
4702
|
additionalProperties: false,
|
|
4640
4703
|
};
|
|
4641
|
-
const
|
|
4704
|
+
const schema32 = {
|
|
4642
4705
|
type: 'string',
|
|
4643
4706
|
enum: ['GET', 'POST', 'HEAD', 'OPTIONS', 'PATCH', 'PUT', 'DELETE'],
|
|
4644
4707
|
};
|
|
4645
|
-
const
|
|
4646
|
-
function
|
|
4708
|
+
const schema33 = { type: 'object', additionalProperties: { type: 'string' } };
|
|
4709
|
+
function validate30(
|
|
4647
4710
|
data,
|
|
4648
4711
|
{ instancePath = '', parentData, parentDataProperty, rootData = data } = {}
|
|
4649
4712
|
) {
|
|
@@ -4653,7 +4716,7 @@ function validate28(
|
|
|
4653
4716
|
if (data && typeof data == 'object' && !Array.isArray(data)) {
|
|
4654
4717
|
let missing0;
|
|
4655
4718
|
if (data.url === undefined && (missing0 = 'url')) {
|
|
4656
|
-
|
|
4719
|
+
validate30.errors = [
|
|
4657
4720
|
{
|
|
4658
4721
|
instancePath,
|
|
4659
4722
|
schemaPath: '#/required',
|
|
@@ -4675,7 +4738,7 @@ function validate28(
|
|
|
4675
4738
|
key0 === 'body'
|
|
4676
4739
|
)
|
|
4677
4740
|
) {
|
|
4678
|
-
|
|
4741
|
+
validate30.errors = [
|
|
4679
4742
|
{
|
|
4680
4743
|
instancePath,
|
|
4681
4744
|
schemaPath: '#/additionalProperties',
|
|
@@ -4693,7 +4756,7 @@ function validate28(
|
|
|
4693
4756
|
let data0 = data.method;
|
|
4694
4757
|
const _errs2 = errors;
|
|
4695
4758
|
if (typeof data0 !== 'string') {
|
|
4696
|
-
|
|
4759
|
+
validate30.errors = [
|
|
4697
4760
|
{
|
|
4698
4761
|
instancePath: instancePath + '/method',
|
|
4699
4762
|
schemaPath: '#/definitions/HTTPMethod/type',
|
|
@@ -4715,12 +4778,12 @@ function validate28(
|
|
|
4715
4778
|
data0 === 'DELETE'
|
|
4716
4779
|
)
|
|
4717
4780
|
) {
|
|
4718
|
-
|
|
4781
|
+
validate30.errors = [
|
|
4719
4782
|
{
|
|
4720
4783
|
instancePath: instancePath + '/method',
|
|
4721
4784
|
schemaPath: '#/definitions/HTTPMethod/enum',
|
|
4722
4785
|
keyword: 'enum',
|
|
4723
|
-
params: { allowedValues:
|
|
4786
|
+
params: { allowedValues: schema32.enum },
|
|
4724
4787
|
message:
|
|
4725
4788
|
'must be equal to one of the allowed values',
|
|
4726
4789
|
},
|
|
@@ -4735,7 +4798,7 @@ function validate28(
|
|
|
4735
4798
|
if (data.url !== undefined) {
|
|
4736
4799
|
const _errs5 = errors;
|
|
4737
4800
|
if (typeof data.url !== 'string') {
|
|
4738
|
-
|
|
4801
|
+
validate30.errors = [
|
|
4739
4802
|
{
|
|
4740
4803
|
instancePath: instancePath + '/url',
|
|
4741
4804
|
schemaPath: '#/properties/url/type',
|
|
@@ -4766,7 +4829,7 @@ function validate28(
|
|
|
4766
4829
|
if (
|
|
4767
4830
|
typeof data2[key1] !== 'string'
|
|
4768
4831
|
) {
|
|
4769
|
-
|
|
4832
|
+
validate30.errors = [
|
|
4770
4833
|
{
|
|
4771
4834
|
instancePath:
|
|
4772
4835
|
instancePath +
|
|
@@ -4798,7 +4861,7 @@ function validate28(
|
|
|
4798
4861
|
}
|
|
4799
4862
|
}
|
|
4800
4863
|
} else {
|
|
4801
|
-
|
|
4864
|
+
validate30.errors = [
|
|
4802
4865
|
{
|
|
4803
4866
|
instancePath:
|
|
4804
4867
|
instancePath + '/headers',
|
|
@@ -6787,7 +6850,7 @@ function validate28(
|
|
|
6787
6850
|
vErrors.push(err34);
|
|
6788
6851
|
}
|
|
6789
6852
|
errors++;
|
|
6790
|
-
|
|
6853
|
+
validate30.errors = vErrors;
|
|
6791
6854
|
return false;
|
|
6792
6855
|
} else {
|
|
6793
6856
|
errors = _errs14;
|
|
@@ -6809,7 +6872,7 @@ function validate28(
|
|
|
6809
6872
|
}
|
|
6810
6873
|
}
|
|
6811
6874
|
} else {
|
|
6812
|
-
|
|
6875
|
+
validate30.errors = [
|
|
6813
6876
|
{
|
|
6814
6877
|
instancePath,
|
|
6815
6878
|
schemaPath: '#/type',
|
|
@@ -6821,10 +6884,10 @@ function validate28(
|
|
|
6821
6884
|
return false;
|
|
6822
6885
|
}
|
|
6823
6886
|
}
|
|
6824
|
-
|
|
6887
|
+
validate30.errors = vErrors;
|
|
6825
6888
|
return errors === 0;
|
|
6826
6889
|
}
|
|
6827
|
-
const
|
|
6890
|
+
const schema34 = {
|
|
6828
6891
|
type: 'object',
|
|
6829
6892
|
properties: {
|
|
6830
6893
|
relativeUri: {
|
|
@@ -6890,7 +6953,7 @@ const schema33 = {
|
|
|
6890
6953
|
},
|
|
6891
6954
|
additionalProperties: false,
|
|
6892
6955
|
};
|
|
6893
|
-
function
|
|
6956
|
+
function validate32(
|
|
6894
6957
|
data,
|
|
6895
6958
|
{ instancePath = '', parentData, parentDataProperty, rootData = data } = {}
|
|
6896
6959
|
) {
|
|
@@ -6900,8 +6963,8 @@ function validate30(
|
|
|
6900
6963
|
if (data && typeof data == 'object' && !Array.isArray(data)) {
|
|
6901
6964
|
const _errs1 = errors;
|
|
6902
6965
|
for (const key0 in data) {
|
|
6903
|
-
if (!func2.call(
|
|
6904
|
-
|
|
6966
|
+
if (!func2.call(schema34.properties, key0)) {
|
|
6967
|
+
validate32.errors = [
|
|
6905
6968
|
{
|
|
6906
6969
|
instancePath,
|
|
6907
6970
|
schemaPath: '#/additionalProperties',
|
|
@@ -6918,7 +6981,7 @@ function validate30(
|
|
|
6918
6981
|
if (data.relativeUri !== undefined) {
|
|
6919
6982
|
const _errs2 = errors;
|
|
6920
6983
|
if (typeof data.relativeUri !== 'string') {
|
|
6921
|
-
|
|
6984
|
+
validate32.errors = [
|
|
6922
6985
|
{
|
|
6923
6986
|
instancePath: instancePath + '/relativeUri',
|
|
6924
6987
|
schemaPath: '#/properties/relativeUri/type',
|
|
@@ -6937,7 +7000,7 @@ function validate30(
|
|
|
6937
7000
|
if (data.scriptPath !== undefined) {
|
|
6938
7001
|
const _errs4 = errors;
|
|
6939
7002
|
if (typeof data.scriptPath !== 'string') {
|
|
6940
|
-
|
|
7003
|
+
validate32.errors = [
|
|
6941
7004
|
{
|
|
6942
7005
|
instancePath: instancePath + '/scriptPath',
|
|
6943
7006
|
schemaPath: '#/properties/scriptPath/type',
|
|
@@ -6956,7 +7019,7 @@ function validate30(
|
|
|
6956
7019
|
if (data.protocol !== undefined) {
|
|
6957
7020
|
const _errs6 = errors;
|
|
6958
7021
|
if (typeof data.protocol !== 'string') {
|
|
6959
|
-
|
|
7022
|
+
validate32.errors = [
|
|
6960
7023
|
{
|
|
6961
7024
|
instancePath:
|
|
6962
7025
|
instancePath + '/protocol',
|
|
@@ -6978,7 +7041,7 @@ function validate30(
|
|
|
6978
7041
|
let data3 = data.method;
|
|
6979
7042
|
const _errs8 = errors;
|
|
6980
7043
|
if (typeof data3 !== 'string') {
|
|
6981
|
-
|
|
7044
|
+
validate32.errors = [
|
|
6982
7045
|
{
|
|
6983
7046
|
instancePath:
|
|
6984
7047
|
instancePath + '/method',
|
|
@@ -7002,7 +7065,7 @@ function validate30(
|
|
|
7002
7065
|
data3 === 'DELETE'
|
|
7003
7066
|
)
|
|
7004
7067
|
) {
|
|
7005
|
-
|
|
7068
|
+
validate32.errors = [
|
|
7006
7069
|
{
|
|
7007
7070
|
instancePath:
|
|
7008
7071
|
instancePath + '/method',
|
|
@@ -7010,7 +7073,7 @@ function validate30(
|
|
|
7010
7073
|
'#/definitions/HTTPMethod/enum',
|
|
7011
7074
|
keyword: 'enum',
|
|
7012
7075
|
params: {
|
|
7013
|
-
allowedValues:
|
|
7076
|
+
allowedValues: schema32.enum,
|
|
7014
7077
|
},
|
|
7015
7078
|
message:
|
|
7016
7079
|
'must be equal to one of the allowed values',
|
|
@@ -7039,7 +7102,7 @@ function validate30(
|
|
|
7039
7102
|
typeof data4[key1] !==
|
|
7040
7103
|
'string'
|
|
7041
7104
|
) {
|
|
7042
|
-
|
|
7105
|
+
validate32.errors = [
|
|
7043
7106
|
{
|
|
7044
7107
|
instancePath:
|
|
7045
7108
|
instancePath +
|
|
@@ -7071,7 +7134,7 @@ function validate30(
|
|
|
7071
7134
|
}
|
|
7072
7135
|
}
|
|
7073
7136
|
} else {
|
|
7074
|
-
|
|
7137
|
+
validate32.errors = [
|
|
7075
7138
|
{
|
|
7076
7139
|
instancePath:
|
|
7077
7140
|
instancePath +
|
|
@@ -7709,7 +7772,7 @@ function validate30(
|
|
|
7709
7772
|
vErrors.push(err12);
|
|
7710
7773
|
}
|
|
7711
7774
|
errors++;
|
|
7712
|
-
|
|
7775
|
+
validate32.errors = vErrors;
|
|
7713
7776
|
return false;
|
|
7714
7777
|
} else {
|
|
7715
7778
|
errors = _errs18;
|
|
@@ -7742,7 +7805,7 @@ function validate30(
|
|
|
7742
7805
|
key4
|
|
7743
7806
|
] !== 'string'
|
|
7744
7807
|
) {
|
|
7745
|
-
|
|
7808
|
+
validate32.errors =
|
|
7746
7809
|
[
|
|
7747
7810
|
{
|
|
7748
7811
|
instancePath:
|
|
@@ -7777,7 +7840,7 @@ function validate30(
|
|
|
7777
7840
|
}
|
|
7778
7841
|
}
|
|
7779
7842
|
} else {
|
|
7780
|
-
|
|
7843
|
+
validate32.errors = [
|
|
7781
7844
|
{
|
|
7782
7845
|
instancePath:
|
|
7783
7846
|
instancePath +
|
|
@@ -7818,7 +7881,7 @@ function validate30(
|
|
|
7818
7881
|
key5
|
|
7819
7882
|
] !== 'string'
|
|
7820
7883
|
) {
|
|
7821
|
-
|
|
7884
|
+
validate32.errors =
|
|
7822
7885
|
[
|
|
7823
7886
|
{
|
|
7824
7887
|
instancePath:
|
|
@@ -7854,7 +7917,7 @@ function validate30(
|
|
|
7854
7917
|
}
|
|
7855
7918
|
}
|
|
7856
7919
|
} else {
|
|
7857
|
-
|
|
7920
|
+
validate32.errors = [
|
|
7858
7921
|
{
|
|
7859
7922
|
instancePath:
|
|
7860
7923
|
instancePath +
|
|
@@ -7883,7 +7946,7 @@ function validate30(
|
|
|
7883
7946
|
typeof data.code !==
|
|
7884
7947
|
'string'
|
|
7885
7948
|
) {
|
|
7886
|
-
|
|
7949
|
+
validate32.errors = [
|
|
7887
7950
|
{
|
|
7888
7951
|
instancePath:
|
|
7889
7952
|
instancePath +
|
|
@@ -7915,7 +7978,7 @@ function validate30(
|
|
|
7915
7978
|
}
|
|
7916
7979
|
}
|
|
7917
7980
|
} else {
|
|
7918
|
-
|
|
7981
|
+
validate32.errors = [
|
|
7919
7982
|
{
|
|
7920
7983
|
instancePath,
|
|
7921
7984
|
schemaPath: '#/type',
|
|
@@ -7927,7 +7990,7 @@ function validate30(
|
|
|
7927
7990
|
return false;
|
|
7928
7991
|
}
|
|
7929
7992
|
}
|
|
7930
|
-
|
|
7993
|
+
validate32.errors = vErrors;
|
|
7931
7994
|
return errors === 0;
|
|
7932
7995
|
}
|
|
7933
7996
|
function validate14(
|
|
@@ -13845,7 +13908,7 @@ function validate14(
|
|
|
13845
13908
|
) {
|
|
13846
13909
|
const _errs266 = errors;
|
|
13847
13910
|
if (
|
|
13848
|
-
!
|
|
13911
|
+
!validate30(
|
|
13849
13912
|
data.request,
|
|
13850
13913
|
{
|
|
13851
13914
|
instancePath:
|
|
@@ -13861,9 +13924,9 @@ function validate14(
|
|
|
13861
13924
|
) {
|
|
13862
13925
|
vErrors =
|
|
13863
13926
|
vErrors === null
|
|
13864
|
-
?
|
|
13927
|
+
? validate30.errors
|
|
13865
13928
|
: vErrors.concat(
|
|
13866
|
-
|
|
13929
|
+
validate30.errors
|
|
13867
13930
|
);
|
|
13868
13931
|
errors = vErrors.length;
|
|
13869
13932
|
}
|
|
@@ -15332,7 +15395,7 @@ function validate14(
|
|
|
15332
15395
|
) {
|
|
15333
15396
|
const _errs330 = errors;
|
|
15334
15397
|
if (
|
|
15335
|
-
!
|
|
15398
|
+
!validate32(
|
|
15336
15399
|
data.options,
|
|
15337
15400
|
{
|
|
15338
15401
|
instancePath:
|
|
@@ -15348,9 +15411,9 @@ function validate14(
|
|
|
15348
15411
|
) {
|
|
15349
15412
|
vErrors =
|
|
15350
15413
|
vErrors === null
|
|
15351
|
-
?
|
|
15414
|
+
? validate32.errors
|
|
15352
15415
|
: vErrors.concat(
|
|
15353
|
-
|
|
15416
|
+
validate32.errors
|
|
15354
15417
|
);
|
|
15355
15418
|
errors = vErrors.length;
|
|
15356
15419
|
}
|