@twin.org/dataspace-models 0.10.1-next.1 → 0.10.1-next.3
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/dist/es/compiled/validators.js +2310 -0
- package/dist/es/compiled/validators.js.map +1 -0
- package/dist/es/dataTypes/dataspaceDataTypes.js +8 -2
- package/dist/es/dataTypes/dataspaceDataTypes.js.map +1 -1
- package/dist/es/entities/dataspaceAppDataset.js +4 -4
- package/dist/es/entities/dataspaceAppDataset.js.map +1 -1
- package/dist/es/entities/transferProcess.js +13 -13
- package/dist/es/entities/transferProcess.js.map +1 -1
- package/dist/es/entities/transferRetrieval.js +1 -1
- package/dist/es/entities/transferRetrieval.js.map +1 -1
- package/dist/es/index.js +1 -0
- package/dist/es/index.js.map +1 -1
- package/dist/types/compiled/validators.d.ts +5 -0
- package/dist/types/index.d.ts +1 -0
- package/docs/changelog.md +14 -0
- package/docs/reference/index.md +1 -0
- package/docs/reference/variables/CompiledDataspaceActivity.md +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,2310 @@
|
|
|
1
|
+
// Copyright 2026 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
// This file is generated by ts-to-schema, do not edit it directly.
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
/* cspell:disable */
|
|
6
|
+
import { JsonSchemaFormats } from "@twin.org/data-core";
|
|
7
|
+
import * as external0 from "@twin.org/standards-w3c-activity-streams";
|
|
8
|
+
import * as external1 from "@twin.org/data-json-ld";
|
|
9
|
+
const MESSAGES = ["must be string", "must match a schema in anyOf", "must be array", "must be object"];
|
|
10
|
+
function createError(instancePath, schemaPath, keyword, params, message) {
|
|
11
|
+
return { instancePath, schemaPath, keyword, params, ["message"]: typeof message === "number" ? MESSAGES[message] : message };
|
|
12
|
+
}
|
|
13
|
+
function pushError(errors, error) {
|
|
14
|
+
if (errors === null) {
|
|
15
|
+
return [error];
|
|
16
|
+
}
|
|
17
|
+
errors.push(error);
|
|
18
|
+
return errors;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Compiled validator for the DataspaceActivity schema.
|
|
22
|
+
*/
|
|
23
|
+
export const CompiledDataspaceActivity = validate52;
|
|
24
|
+
const keyword0 = external0["CompiledActivityStreamsContextType"];
|
|
25
|
+
const keyword1 = external0["CompiledActivityStreamsTypes"];
|
|
26
|
+
const keyword3 = external1["CompiledJsonLdLanguageMap"];
|
|
27
|
+
const keyword9 = external1["CompiledJsonLdNodeObject"];
|
|
28
|
+
const keyword50 = external1["CompiledJsonLdContextDefinitionRoot"];
|
|
29
|
+
const formats0 = JsonSchemaFormats.uri;
|
|
30
|
+
const formats2 = JsonSchemaFormats["date-time"];
|
|
31
|
+
const formats10 = /^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/;
|
|
32
|
+
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
33
|
+
/*# sourceURL="https://schema.twindev.org/dataspace/DataspaceActivity" */ ;
|
|
34
|
+
let vErrors = null;
|
|
35
|
+
let errors = 0;
|
|
36
|
+
const evaluated0 = validate52.evaluated;
|
|
37
|
+
if (evaluated0.dynamicProps) {
|
|
38
|
+
evaluated0.props = undefined;
|
|
39
|
+
}
|
|
40
|
+
if (evaluated0.dynamicItems) {
|
|
41
|
+
evaluated0.items = undefined;
|
|
42
|
+
}
|
|
43
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
44
|
+
if (data["@context"] === undefined) {
|
|
45
|
+
const err0 = createError(instancePath, "#/allOf/0/required", "required", { missingProperty: "@context" }, "must have required property '" + "@context" + "'");
|
|
46
|
+
vErrors = pushError(vErrors, err0);
|
|
47
|
+
errors++;
|
|
48
|
+
}
|
|
49
|
+
if (data.type === undefined) {
|
|
50
|
+
const err1 = createError(instancePath, "#/allOf/0/required", "required", { missingProperty: "type" }, "must have required property '" + "type" + "'");
|
|
51
|
+
vErrors = pushError(vErrors, err1);
|
|
52
|
+
errors++;
|
|
53
|
+
}
|
|
54
|
+
if (data["@context"] !== undefined) {
|
|
55
|
+
if (!(keyword0(data["@context"], { instancePath: instancePath + "/@context", parentData: data, parentDataProperty: "@context", rootData, dynamicAnchors }))) {
|
|
56
|
+
vErrors = vErrors === null ? keyword0.errors : vErrors.concat(keyword0.errors);
|
|
57
|
+
errors = vErrors.length;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
if (data.type !== undefined) {
|
|
61
|
+
let data1 = data.type;
|
|
62
|
+
const _errs8 = errors;
|
|
63
|
+
let valid2 = false;
|
|
64
|
+
const _errs9 = errors;
|
|
65
|
+
if (!(keyword1(data1, { instancePath: instancePath + "/type", parentData: data, parentDataProperty: "type", rootData, dynamicAnchors }))) {
|
|
66
|
+
vErrors = vErrors === null ? keyword1.errors : vErrors.concat(keyword1.errors);
|
|
67
|
+
errors = vErrors.length;
|
|
68
|
+
}
|
|
69
|
+
var _valid0 = _errs9 === errors;
|
|
70
|
+
valid2 = valid2 || _valid0;
|
|
71
|
+
const _errs10 = errors;
|
|
72
|
+
if (typeof data1 !== "string") {
|
|
73
|
+
const err2 = createError(instancePath + "/type", "#/allOf/0/properties/type/anyOf/1/type", "type", { type: "string" }, 0);
|
|
74
|
+
vErrors = pushError(vErrors, err2);
|
|
75
|
+
errors++;
|
|
76
|
+
}
|
|
77
|
+
var _valid0 = _errs10 === errors;
|
|
78
|
+
valid2 = valid2 || _valid0;
|
|
79
|
+
const _errs12 = errors;
|
|
80
|
+
if (Array.isArray(data1)) {
|
|
81
|
+
const len0 = data1.length;
|
|
82
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
83
|
+
let data2 = data1[i0];
|
|
84
|
+
const _errs15 = errors;
|
|
85
|
+
let valid5 = false;
|
|
86
|
+
const _errs16 = errors;
|
|
87
|
+
if (!(keyword1(data2, { instancePath: instancePath + "/type/" + i0, parentData: data1, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
88
|
+
vErrors = vErrors === null ? keyword1.errors : vErrors.concat(keyword1.errors);
|
|
89
|
+
errors = vErrors.length;
|
|
90
|
+
}
|
|
91
|
+
var _valid1 = _errs16 === errors;
|
|
92
|
+
valid5 = valid5 || _valid1;
|
|
93
|
+
const _errs17 = errors;
|
|
94
|
+
if (typeof data2 !== "string") {
|
|
95
|
+
const err3 = createError(instancePath + "/type/" + i0, "#/allOf/0/properties/type/anyOf/2/items/anyOf/1/type", "type", { type: "string" }, 0);
|
|
96
|
+
vErrors = pushError(vErrors, err3);
|
|
97
|
+
errors++;
|
|
98
|
+
}
|
|
99
|
+
var _valid1 = _errs17 === errors;
|
|
100
|
+
valid5 = valid5 || _valid1;
|
|
101
|
+
if (!valid5) {
|
|
102
|
+
const err4 = createError(instancePath + "/type/" + i0, "#/allOf/0/properties/type/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
103
|
+
vErrors = pushError(vErrors, err4);
|
|
104
|
+
errors++;
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
errors = _errs15;
|
|
108
|
+
if (vErrors !== null) {
|
|
109
|
+
if (_errs15) {
|
|
110
|
+
vErrors.length = _errs15;
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
vErrors = null;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
const err5 = createError(instancePath + "/type", "#/allOf/0/properties/type/anyOf/2/type", "type", { type: "array" }, 2);
|
|
121
|
+
vErrors = pushError(vErrors, err5);
|
|
122
|
+
errors++;
|
|
123
|
+
}
|
|
124
|
+
var _valid0 = _errs12 === errors;
|
|
125
|
+
valid2 = valid2 || _valid0;
|
|
126
|
+
if (!valid2) {
|
|
127
|
+
const err6 = createError(instancePath + "/type", "#/allOf/0/properties/type/anyOf", "anyOf", {}, 1);
|
|
128
|
+
vErrors = pushError(vErrors, err6);
|
|
129
|
+
errors++;
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
errors = _errs8;
|
|
133
|
+
if (vErrors !== null) {
|
|
134
|
+
if (_errs8) {
|
|
135
|
+
vErrors.length = _errs8;
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
vErrors = null;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
if (data.id !== undefined) {
|
|
144
|
+
let data3 = data.id;
|
|
145
|
+
if (typeof data3 === "string") {
|
|
146
|
+
if (!(formats0(data3))) {
|
|
147
|
+
const err7 = createError(instancePath + "/id", "#/allOf/0/properties/id/format", "format", { format: "uri" }, "must match format \"" + "uri" + "\"");
|
|
148
|
+
vErrors = pushError(vErrors, err7);
|
|
149
|
+
errors++;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
const err8 = createError(instancePath + "/id", "#/allOf/0/properties/id/type", "type", { type: "string" }, 0);
|
|
154
|
+
vErrors = pushError(vErrors, err8);
|
|
155
|
+
errors++;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
if (data.name !== undefined) {
|
|
159
|
+
let data4 = data.name;
|
|
160
|
+
const _errs24 = errors;
|
|
161
|
+
let valid6 = false;
|
|
162
|
+
const _errs25 = errors;
|
|
163
|
+
if (typeof data4 !== "string") {
|
|
164
|
+
const err9 = createError(instancePath + "/name", "#/allOf/0/properties/name/anyOf/0/type", "type", { type: "string" }, 0);
|
|
165
|
+
vErrors = pushError(vErrors, err9);
|
|
166
|
+
errors++;
|
|
167
|
+
}
|
|
168
|
+
var _valid2 = _errs25 === errors;
|
|
169
|
+
valid6 = valid6 || _valid2;
|
|
170
|
+
const _errs27 = errors;
|
|
171
|
+
if (!(keyword3(data4, { instancePath: instancePath + "/name", parentData: data, parentDataProperty: "name", rootData, dynamicAnchors }))) {
|
|
172
|
+
vErrors = vErrors === null ? keyword3.errors : vErrors.concat(keyword3.errors);
|
|
173
|
+
errors = vErrors.length;
|
|
174
|
+
}
|
|
175
|
+
var _valid2 = _errs27 === errors;
|
|
176
|
+
valid6 = valid6 || _valid2;
|
|
177
|
+
if (!valid6) {
|
|
178
|
+
const err10 = createError(instancePath + "/name", "#/allOf/0/properties/name/anyOf", "anyOf", {}, 1);
|
|
179
|
+
vErrors = pushError(vErrors, err10);
|
|
180
|
+
errors++;
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
errors = _errs24;
|
|
184
|
+
if (vErrors !== null) {
|
|
185
|
+
if (_errs24) {
|
|
186
|
+
vErrors.length = _errs24;
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
vErrors = null;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
if (data.nameMap !== undefined) {
|
|
195
|
+
if (!(keyword3(data.nameMap, { instancePath: instancePath + "/nameMap", parentData: data, parentDataProperty: "nameMap", rootData, dynamicAnchors }))) {
|
|
196
|
+
vErrors = vErrors === null ? keyword3.errors : vErrors.concat(keyword3.errors);
|
|
197
|
+
errors = vErrors.length;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
if (data.summary !== undefined) {
|
|
201
|
+
let data6 = data.summary;
|
|
202
|
+
const _errs32 = errors;
|
|
203
|
+
let valid7 = false;
|
|
204
|
+
const _errs33 = errors;
|
|
205
|
+
if (typeof data6 !== "string") {
|
|
206
|
+
const err11 = createError(instancePath + "/summary", "#/allOf/0/properties/summary/anyOf/0/type", "type", { type: "string" }, 0);
|
|
207
|
+
vErrors = pushError(vErrors, err11);
|
|
208
|
+
errors++;
|
|
209
|
+
}
|
|
210
|
+
var _valid3 = _errs33 === errors;
|
|
211
|
+
valid7 = valid7 || _valid3;
|
|
212
|
+
const _errs35 = errors;
|
|
213
|
+
if (!(keyword3(data6, { instancePath: instancePath + "/summary", parentData: data, parentDataProperty: "summary", rootData, dynamicAnchors }))) {
|
|
214
|
+
vErrors = vErrors === null ? keyword3.errors : vErrors.concat(keyword3.errors);
|
|
215
|
+
errors = vErrors.length;
|
|
216
|
+
}
|
|
217
|
+
var _valid3 = _errs35 === errors;
|
|
218
|
+
valid7 = valid7 || _valid3;
|
|
219
|
+
if (!valid7) {
|
|
220
|
+
const err12 = createError(instancePath + "/summary", "#/allOf/0/properties/summary/anyOf", "anyOf", {}, 1);
|
|
221
|
+
vErrors = pushError(vErrors, err12);
|
|
222
|
+
errors++;
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
errors = _errs32;
|
|
226
|
+
if (vErrors !== null) {
|
|
227
|
+
if (_errs32) {
|
|
228
|
+
vErrors.length = _errs32;
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
vErrors = null;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
if (data.summaryMap !== undefined) {
|
|
237
|
+
if (!(keyword3(data.summaryMap, { instancePath: instancePath + "/summaryMap", parentData: data, parentDataProperty: "summaryMap", rootData, dynamicAnchors }))) {
|
|
238
|
+
vErrors = vErrors === null ? keyword3.errors : vErrors.concat(keyword3.errors);
|
|
239
|
+
errors = vErrors.length;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
if (data.content !== undefined) {
|
|
243
|
+
let data8 = data.content;
|
|
244
|
+
const _errs40 = errors;
|
|
245
|
+
let valid8 = false;
|
|
246
|
+
const _errs41 = errors;
|
|
247
|
+
if (typeof data8 !== "string") {
|
|
248
|
+
const err13 = createError(instancePath + "/content", "#/allOf/0/properties/content/anyOf/0/type", "type", { type: "string" }, 0);
|
|
249
|
+
vErrors = pushError(vErrors, err13);
|
|
250
|
+
errors++;
|
|
251
|
+
}
|
|
252
|
+
var _valid4 = _errs41 === errors;
|
|
253
|
+
valid8 = valid8 || _valid4;
|
|
254
|
+
const _errs43 = errors;
|
|
255
|
+
if (!(keyword3(data8, { instancePath: instancePath + "/content", parentData: data, parentDataProperty: "content", rootData, dynamicAnchors }))) {
|
|
256
|
+
vErrors = vErrors === null ? keyword3.errors : vErrors.concat(keyword3.errors);
|
|
257
|
+
errors = vErrors.length;
|
|
258
|
+
}
|
|
259
|
+
var _valid4 = _errs43 === errors;
|
|
260
|
+
valid8 = valid8 || _valid4;
|
|
261
|
+
if (!valid8) {
|
|
262
|
+
const err14 = createError(instancePath + "/content", "#/allOf/0/properties/content/anyOf", "anyOf", {}, 1);
|
|
263
|
+
vErrors = pushError(vErrors, err14);
|
|
264
|
+
errors++;
|
|
265
|
+
}
|
|
266
|
+
else {
|
|
267
|
+
errors = _errs40;
|
|
268
|
+
if (vErrors !== null) {
|
|
269
|
+
if (_errs40) {
|
|
270
|
+
vErrors.length = _errs40;
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
vErrors = null;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
if (data.contentMap !== undefined) {
|
|
279
|
+
if (!(keyword3(data.contentMap, { instancePath: instancePath + "/contentMap", parentData: data, parentDataProperty: "contentMap", rootData, dynamicAnchors }))) {
|
|
280
|
+
vErrors = vErrors === null ? keyword3.errors : vErrors.concat(keyword3.errors);
|
|
281
|
+
errors = vErrors.length;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
if (data.url !== undefined) {
|
|
285
|
+
let data10 = data.url;
|
|
286
|
+
const _errs48 = errors;
|
|
287
|
+
let valid9 = false;
|
|
288
|
+
const _errs49 = errors;
|
|
289
|
+
if (typeof data10 !== "string") {
|
|
290
|
+
const err15 = createError(instancePath + "/url", "#/allOf/0/properties/url/anyOf/0/type", "type", { type: "string" }, 0);
|
|
291
|
+
vErrors = pushError(vErrors, err15);
|
|
292
|
+
errors++;
|
|
293
|
+
}
|
|
294
|
+
var _valid5 = _errs49 === errors;
|
|
295
|
+
valid9 = valid9 || _valid5;
|
|
296
|
+
const _errs51 = errors;
|
|
297
|
+
if (!(keyword9(data10, { instancePath: instancePath + "/url", parentData: data, parentDataProperty: "url", rootData, dynamicAnchors }))) {
|
|
298
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
299
|
+
errors = vErrors.length;
|
|
300
|
+
}
|
|
301
|
+
var _valid5 = _errs51 === errors;
|
|
302
|
+
valid9 = valid9 || _valid5;
|
|
303
|
+
const _errs52 = errors;
|
|
304
|
+
if (Array.isArray(data10)) {
|
|
305
|
+
const len1 = data10.length;
|
|
306
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
307
|
+
let data11 = data10[i1];
|
|
308
|
+
const _errs55 = errors;
|
|
309
|
+
let valid12 = false;
|
|
310
|
+
const _errs56 = errors;
|
|
311
|
+
if (typeof data11 !== "string") {
|
|
312
|
+
const err16 = createError(instancePath + "/url/" + i1, "#/allOf/0/properties/url/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
313
|
+
vErrors = pushError(vErrors, err16);
|
|
314
|
+
errors++;
|
|
315
|
+
}
|
|
316
|
+
var _valid6 = _errs56 === errors;
|
|
317
|
+
valid12 = valid12 || _valid6;
|
|
318
|
+
const _errs58 = errors;
|
|
319
|
+
if (!(keyword9(data11, { instancePath: instancePath + "/url/" + i1, parentData: data10, parentDataProperty: i1, rootData, dynamicAnchors }))) {
|
|
320
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
321
|
+
errors = vErrors.length;
|
|
322
|
+
}
|
|
323
|
+
var _valid6 = _errs58 === errors;
|
|
324
|
+
valid12 = valid12 || _valid6;
|
|
325
|
+
if (!valid12) {
|
|
326
|
+
const err17 = createError(instancePath + "/url/" + i1, "#/allOf/0/properties/url/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
327
|
+
vErrors = pushError(vErrors, err17);
|
|
328
|
+
errors++;
|
|
329
|
+
}
|
|
330
|
+
else {
|
|
331
|
+
errors = _errs55;
|
|
332
|
+
if (vErrors !== null) {
|
|
333
|
+
if (_errs55) {
|
|
334
|
+
vErrors.length = _errs55;
|
|
335
|
+
}
|
|
336
|
+
else {
|
|
337
|
+
vErrors = null;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
const err18 = createError(instancePath + "/url", "#/allOf/0/properties/url/anyOf/2/type", "type", { type: "array" }, 2);
|
|
345
|
+
vErrors = pushError(vErrors, err18);
|
|
346
|
+
errors++;
|
|
347
|
+
}
|
|
348
|
+
var _valid5 = _errs52 === errors;
|
|
349
|
+
valid9 = valid9 || _valid5;
|
|
350
|
+
if (!valid9) {
|
|
351
|
+
const err19 = createError(instancePath + "/url", "#/allOf/0/properties/url/anyOf", "anyOf", {}, 1);
|
|
352
|
+
vErrors = pushError(vErrors, err19);
|
|
353
|
+
errors++;
|
|
354
|
+
}
|
|
355
|
+
else {
|
|
356
|
+
errors = _errs48;
|
|
357
|
+
if (vErrors !== null) {
|
|
358
|
+
if (_errs48) {
|
|
359
|
+
vErrors.length = _errs48;
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
vErrors = null;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
if (data.image !== undefined) {
|
|
368
|
+
let data12 = data.image;
|
|
369
|
+
const _errs61 = errors;
|
|
370
|
+
let valid13 = false;
|
|
371
|
+
const _errs62 = errors;
|
|
372
|
+
if (typeof data12 !== "string") {
|
|
373
|
+
const err20 = createError(instancePath + "/image", "#/allOf/0/properties/image/anyOf/0/type", "type", { type: "string" }, 0);
|
|
374
|
+
vErrors = pushError(vErrors, err20);
|
|
375
|
+
errors++;
|
|
376
|
+
}
|
|
377
|
+
var _valid7 = _errs62 === errors;
|
|
378
|
+
valid13 = valid13 || _valid7;
|
|
379
|
+
const _errs64 = errors;
|
|
380
|
+
if (!(keyword9(data12, { instancePath: instancePath + "/image", parentData: data, parentDataProperty: "image", rootData, dynamicAnchors }))) {
|
|
381
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
382
|
+
errors = vErrors.length;
|
|
383
|
+
}
|
|
384
|
+
var _valid7 = _errs64 === errors;
|
|
385
|
+
valid13 = valid13 || _valid7;
|
|
386
|
+
const _errs65 = errors;
|
|
387
|
+
if (Array.isArray(data12)) {
|
|
388
|
+
const len2 = data12.length;
|
|
389
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
390
|
+
let data13 = data12[i2];
|
|
391
|
+
const _errs68 = errors;
|
|
392
|
+
let valid16 = false;
|
|
393
|
+
const _errs69 = errors;
|
|
394
|
+
if (typeof data13 !== "string") {
|
|
395
|
+
const err21 = createError(instancePath + "/image/" + i2, "#/allOf/0/properties/image/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
396
|
+
vErrors = pushError(vErrors, err21);
|
|
397
|
+
errors++;
|
|
398
|
+
}
|
|
399
|
+
var _valid8 = _errs69 === errors;
|
|
400
|
+
valid16 = valid16 || _valid8;
|
|
401
|
+
const _errs71 = errors;
|
|
402
|
+
if (!(keyword9(data13, { instancePath: instancePath + "/image/" + i2, parentData: data12, parentDataProperty: i2, rootData, dynamicAnchors }))) {
|
|
403
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
404
|
+
errors = vErrors.length;
|
|
405
|
+
}
|
|
406
|
+
var _valid8 = _errs71 === errors;
|
|
407
|
+
valid16 = valid16 || _valid8;
|
|
408
|
+
if (!valid16) {
|
|
409
|
+
const err22 = createError(instancePath + "/image/" + i2, "#/allOf/0/properties/image/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
410
|
+
vErrors = pushError(vErrors, err22);
|
|
411
|
+
errors++;
|
|
412
|
+
}
|
|
413
|
+
else {
|
|
414
|
+
errors = _errs68;
|
|
415
|
+
if (vErrors !== null) {
|
|
416
|
+
if (_errs68) {
|
|
417
|
+
vErrors.length = _errs68;
|
|
418
|
+
}
|
|
419
|
+
else {
|
|
420
|
+
vErrors = null;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
const err23 = createError(instancePath + "/image", "#/allOf/0/properties/image/anyOf/2/type", "type", { type: "array" }, 2);
|
|
428
|
+
vErrors = pushError(vErrors, err23);
|
|
429
|
+
errors++;
|
|
430
|
+
}
|
|
431
|
+
var _valid7 = _errs65 === errors;
|
|
432
|
+
valid13 = valid13 || _valid7;
|
|
433
|
+
if (!valid13) {
|
|
434
|
+
const err24 = createError(instancePath + "/image", "#/allOf/0/properties/image/anyOf", "anyOf", {}, 1);
|
|
435
|
+
vErrors = pushError(vErrors, err24);
|
|
436
|
+
errors++;
|
|
437
|
+
}
|
|
438
|
+
else {
|
|
439
|
+
errors = _errs61;
|
|
440
|
+
if (vErrors !== null) {
|
|
441
|
+
if (_errs61) {
|
|
442
|
+
vErrors.length = _errs61;
|
|
443
|
+
}
|
|
444
|
+
else {
|
|
445
|
+
vErrors = null;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
if (data.icon !== undefined) {
|
|
451
|
+
let data14 = data.icon;
|
|
452
|
+
const _errs74 = errors;
|
|
453
|
+
let valid17 = false;
|
|
454
|
+
const _errs75 = errors;
|
|
455
|
+
if (typeof data14 !== "string") {
|
|
456
|
+
const err25 = createError(instancePath + "/icon", "#/allOf/0/properties/icon/anyOf/0/type", "type", { type: "string" }, 0);
|
|
457
|
+
vErrors = pushError(vErrors, err25);
|
|
458
|
+
errors++;
|
|
459
|
+
}
|
|
460
|
+
var _valid9 = _errs75 === errors;
|
|
461
|
+
valid17 = valid17 || _valid9;
|
|
462
|
+
const _errs77 = errors;
|
|
463
|
+
if (!(keyword9(data14, { instancePath: instancePath + "/icon", parentData: data, parentDataProperty: "icon", rootData, dynamicAnchors }))) {
|
|
464
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
465
|
+
errors = vErrors.length;
|
|
466
|
+
}
|
|
467
|
+
var _valid9 = _errs77 === errors;
|
|
468
|
+
valid17 = valid17 || _valid9;
|
|
469
|
+
const _errs78 = errors;
|
|
470
|
+
if (Array.isArray(data14)) {
|
|
471
|
+
const len3 = data14.length;
|
|
472
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
473
|
+
let data15 = data14[i3];
|
|
474
|
+
const _errs81 = errors;
|
|
475
|
+
let valid20 = false;
|
|
476
|
+
const _errs82 = errors;
|
|
477
|
+
if (typeof data15 !== "string") {
|
|
478
|
+
const err26 = createError(instancePath + "/icon/" + i3, "#/allOf/0/properties/icon/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
479
|
+
vErrors = pushError(vErrors, err26);
|
|
480
|
+
errors++;
|
|
481
|
+
}
|
|
482
|
+
var _valid10 = _errs82 === errors;
|
|
483
|
+
valid20 = valid20 || _valid10;
|
|
484
|
+
const _errs84 = errors;
|
|
485
|
+
if (!(keyword9(data15, { instancePath: instancePath + "/icon/" + i3, parentData: data14, parentDataProperty: i3, rootData, dynamicAnchors }))) {
|
|
486
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
487
|
+
errors = vErrors.length;
|
|
488
|
+
}
|
|
489
|
+
var _valid10 = _errs84 === errors;
|
|
490
|
+
valid20 = valid20 || _valid10;
|
|
491
|
+
if (!valid20) {
|
|
492
|
+
const err27 = createError(instancePath + "/icon/" + i3, "#/allOf/0/properties/icon/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
493
|
+
vErrors = pushError(vErrors, err27);
|
|
494
|
+
errors++;
|
|
495
|
+
}
|
|
496
|
+
else {
|
|
497
|
+
errors = _errs81;
|
|
498
|
+
if (vErrors !== null) {
|
|
499
|
+
if (_errs81) {
|
|
500
|
+
vErrors.length = _errs81;
|
|
501
|
+
}
|
|
502
|
+
else {
|
|
503
|
+
vErrors = null;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
else {
|
|
510
|
+
const err28 = createError(instancePath + "/icon", "#/allOf/0/properties/icon/anyOf/2/type", "type", { type: "array" }, 2);
|
|
511
|
+
vErrors = pushError(vErrors, err28);
|
|
512
|
+
errors++;
|
|
513
|
+
}
|
|
514
|
+
var _valid9 = _errs78 === errors;
|
|
515
|
+
valid17 = valid17 || _valid9;
|
|
516
|
+
if (!valid17) {
|
|
517
|
+
const err29 = createError(instancePath + "/icon", "#/allOf/0/properties/icon/anyOf", "anyOf", {}, 1);
|
|
518
|
+
vErrors = pushError(vErrors, err29);
|
|
519
|
+
errors++;
|
|
520
|
+
}
|
|
521
|
+
else {
|
|
522
|
+
errors = _errs74;
|
|
523
|
+
if (vErrors !== null) {
|
|
524
|
+
if (_errs74) {
|
|
525
|
+
vErrors.length = _errs74;
|
|
526
|
+
}
|
|
527
|
+
else {
|
|
528
|
+
vErrors = null;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
if (data.published !== undefined) {
|
|
534
|
+
let data16 = data.published;
|
|
535
|
+
if (typeof data16 === "string") {
|
|
536
|
+
if (!(formats2.validate(data16))) {
|
|
537
|
+
const err30 = createError(instancePath + "/published", "#/allOf/0/properties/published/format", "format", { format: "date-time" }, "must match format \"" + "date-time" + "\"");
|
|
538
|
+
vErrors = pushError(vErrors, err30);
|
|
539
|
+
errors++;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
else {
|
|
543
|
+
const err31 = createError(instancePath + "/published", "#/allOf/0/properties/published/type", "type", { type: "string" }, 0);
|
|
544
|
+
vErrors = pushError(vErrors, err31);
|
|
545
|
+
errors++;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
if (data.updated !== undefined) {
|
|
549
|
+
let data17 = data.updated;
|
|
550
|
+
if (typeof data17 === "string") {
|
|
551
|
+
if (!(formats2.validate(data17))) {
|
|
552
|
+
const err32 = createError(instancePath + "/updated", "#/allOf/0/properties/updated/format", "format", { format: "date-time" }, "must match format \"" + "date-time" + "\"");
|
|
553
|
+
vErrors = pushError(vErrors, err32);
|
|
554
|
+
errors++;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
else {
|
|
558
|
+
const err33 = createError(instancePath + "/updated", "#/allOf/0/properties/updated/type", "type", { type: "string" }, 0);
|
|
559
|
+
vErrors = pushError(vErrors, err33);
|
|
560
|
+
errors++;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
if (data.startTime !== undefined) {
|
|
564
|
+
let data18 = data.startTime;
|
|
565
|
+
if (typeof data18 === "string") {
|
|
566
|
+
if (!(formats2.validate(data18))) {
|
|
567
|
+
const err34 = createError(instancePath + "/startTime", "#/allOf/0/properties/startTime/format", "format", { format: "date-time" }, "must match format \"" + "date-time" + "\"");
|
|
568
|
+
vErrors = pushError(vErrors, err34);
|
|
569
|
+
errors++;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
else {
|
|
573
|
+
const err35 = createError(instancePath + "/startTime", "#/allOf/0/properties/startTime/type", "type", { type: "string" }, 0);
|
|
574
|
+
vErrors = pushError(vErrors, err35);
|
|
575
|
+
errors++;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
if (data.endTime !== undefined) {
|
|
579
|
+
let data19 = data.endTime;
|
|
580
|
+
if (typeof data19 === "string") {
|
|
581
|
+
if (!(formats2.validate(data19))) {
|
|
582
|
+
const err36 = createError(instancePath + "/endTime", "#/allOf/0/properties/endTime/format", "format", { format: "date-time" }, "must match format \"" + "date-time" + "\"");
|
|
583
|
+
vErrors = pushError(vErrors, err36);
|
|
584
|
+
errors++;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
else {
|
|
588
|
+
const err37 = createError(instancePath + "/endTime", "#/allOf/0/properties/endTime/type", "type", { type: "string" }, 0);
|
|
589
|
+
vErrors = pushError(vErrors, err37);
|
|
590
|
+
errors++;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
if (data.duration !== undefined) {
|
|
594
|
+
let data20 = data.duration;
|
|
595
|
+
if (typeof data20 === "string") {
|
|
596
|
+
if (!(formats10.test(data20))) {
|
|
597
|
+
const err38 = createError(instancePath + "/duration", "#/allOf/0/properties/duration/format", "format", { format: "duration" }, "must match format \"" + "duration" + "\"");
|
|
598
|
+
vErrors = pushError(vErrors, err38);
|
|
599
|
+
errors++;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
else {
|
|
603
|
+
const err39 = createError(instancePath + "/duration", "#/allOf/0/properties/duration/type", "type", { type: "string" }, 0);
|
|
604
|
+
vErrors = pushError(vErrors, err39);
|
|
605
|
+
errors++;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
if (data.generator !== undefined) {
|
|
609
|
+
let data21 = data.generator;
|
|
610
|
+
const _errs102 = errors;
|
|
611
|
+
let valid21 = false;
|
|
612
|
+
const _errs103 = errors;
|
|
613
|
+
if (typeof data21 !== "string") {
|
|
614
|
+
const err40 = createError(instancePath + "/generator", "#/allOf/0/properties/generator/anyOf/0/type", "type", { type: "string" }, 0);
|
|
615
|
+
vErrors = pushError(vErrors, err40);
|
|
616
|
+
errors++;
|
|
617
|
+
}
|
|
618
|
+
var _valid11 = _errs103 === errors;
|
|
619
|
+
valid21 = valid21 || _valid11;
|
|
620
|
+
const _errs105 = errors;
|
|
621
|
+
if (!(keyword9(data21, { instancePath: instancePath + "/generator", parentData: data, parentDataProperty: "generator", rootData, dynamicAnchors }))) {
|
|
622
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
623
|
+
errors = vErrors.length;
|
|
624
|
+
}
|
|
625
|
+
var _valid11 = _errs105 === errors;
|
|
626
|
+
valid21 = valid21 || _valid11;
|
|
627
|
+
const _errs106 = errors;
|
|
628
|
+
if (Array.isArray(data21)) {
|
|
629
|
+
const len4 = data21.length;
|
|
630
|
+
for (let i4 = 0; i4 < len4; i4++) {
|
|
631
|
+
let data22 = data21[i4];
|
|
632
|
+
const _errs109 = errors;
|
|
633
|
+
let valid24 = false;
|
|
634
|
+
const _errs110 = errors;
|
|
635
|
+
if (typeof data22 !== "string") {
|
|
636
|
+
const err41 = createError(instancePath + "/generator/" + i4, "#/allOf/0/properties/generator/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
637
|
+
vErrors = pushError(vErrors, err41);
|
|
638
|
+
errors++;
|
|
639
|
+
}
|
|
640
|
+
var _valid12 = _errs110 === errors;
|
|
641
|
+
valid24 = valid24 || _valid12;
|
|
642
|
+
const _errs112 = errors;
|
|
643
|
+
if (!(keyword9(data22, { instancePath: instancePath + "/generator/" + i4, parentData: data21, parentDataProperty: i4, rootData, dynamicAnchors }))) {
|
|
644
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
645
|
+
errors = vErrors.length;
|
|
646
|
+
}
|
|
647
|
+
var _valid12 = _errs112 === errors;
|
|
648
|
+
valid24 = valid24 || _valid12;
|
|
649
|
+
if (!valid24) {
|
|
650
|
+
const err42 = createError(instancePath + "/generator/" + i4, "#/allOf/0/properties/generator/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
651
|
+
vErrors = pushError(vErrors, err42);
|
|
652
|
+
errors++;
|
|
653
|
+
}
|
|
654
|
+
else {
|
|
655
|
+
errors = _errs109;
|
|
656
|
+
if (vErrors !== null) {
|
|
657
|
+
if (_errs109) {
|
|
658
|
+
vErrors.length = _errs109;
|
|
659
|
+
}
|
|
660
|
+
else {
|
|
661
|
+
vErrors = null;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
else {
|
|
668
|
+
const err43 = createError(instancePath + "/generator", "#/allOf/0/properties/generator/anyOf/2/type", "type", { type: "array" }, 2);
|
|
669
|
+
vErrors = pushError(vErrors, err43);
|
|
670
|
+
errors++;
|
|
671
|
+
}
|
|
672
|
+
var _valid11 = _errs106 === errors;
|
|
673
|
+
valid21 = valid21 || _valid11;
|
|
674
|
+
if (!valid21) {
|
|
675
|
+
const err44 = createError(instancePath + "/generator", "#/allOf/0/properties/generator/anyOf", "anyOf", {}, 1);
|
|
676
|
+
vErrors = pushError(vErrors, err44);
|
|
677
|
+
errors++;
|
|
678
|
+
}
|
|
679
|
+
else {
|
|
680
|
+
errors = _errs102;
|
|
681
|
+
if (vErrors !== null) {
|
|
682
|
+
if (_errs102) {
|
|
683
|
+
vErrors.length = _errs102;
|
|
684
|
+
}
|
|
685
|
+
else {
|
|
686
|
+
vErrors = null;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
if (data.attachment !== undefined) {
|
|
692
|
+
let data23 = data.attachment;
|
|
693
|
+
const _errs115 = errors;
|
|
694
|
+
let valid25 = false;
|
|
695
|
+
const _errs116 = errors;
|
|
696
|
+
if (typeof data23 !== "string") {
|
|
697
|
+
const err45 = createError(instancePath + "/attachment", "#/allOf/0/properties/attachment/anyOf/0/type", "type", { type: "string" }, 0);
|
|
698
|
+
vErrors = pushError(vErrors, err45);
|
|
699
|
+
errors++;
|
|
700
|
+
}
|
|
701
|
+
var _valid13 = _errs116 === errors;
|
|
702
|
+
valid25 = valid25 || _valid13;
|
|
703
|
+
const _errs118 = errors;
|
|
704
|
+
if (!(keyword9(data23, { instancePath: instancePath + "/attachment", parentData: data, parentDataProperty: "attachment", rootData, dynamicAnchors }))) {
|
|
705
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
706
|
+
errors = vErrors.length;
|
|
707
|
+
}
|
|
708
|
+
var _valid13 = _errs118 === errors;
|
|
709
|
+
valid25 = valid25 || _valid13;
|
|
710
|
+
const _errs119 = errors;
|
|
711
|
+
if (Array.isArray(data23)) {
|
|
712
|
+
const len5 = data23.length;
|
|
713
|
+
for (let i5 = 0; i5 < len5; i5++) {
|
|
714
|
+
let data24 = data23[i5];
|
|
715
|
+
const _errs122 = errors;
|
|
716
|
+
let valid28 = false;
|
|
717
|
+
const _errs123 = errors;
|
|
718
|
+
if (typeof data24 !== "string") {
|
|
719
|
+
const err46 = createError(instancePath + "/attachment/" + i5, "#/allOf/0/properties/attachment/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
720
|
+
vErrors = pushError(vErrors, err46);
|
|
721
|
+
errors++;
|
|
722
|
+
}
|
|
723
|
+
var _valid14 = _errs123 === errors;
|
|
724
|
+
valid28 = valid28 || _valid14;
|
|
725
|
+
const _errs125 = errors;
|
|
726
|
+
if (!(keyword9(data24, { instancePath: instancePath + "/attachment/" + i5, parentData: data23, parentDataProperty: i5, rootData, dynamicAnchors }))) {
|
|
727
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
728
|
+
errors = vErrors.length;
|
|
729
|
+
}
|
|
730
|
+
var _valid14 = _errs125 === errors;
|
|
731
|
+
valid28 = valid28 || _valid14;
|
|
732
|
+
if (!valid28) {
|
|
733
|
+
const err47 = createError(instancePath + "/attachment/" + i5, "#/allOf/0/properties/attachment/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
734
|
+
vErrors = pushError(vErrors, err47);
|
|
735
|
+
errors++;
|
|
736
|
+
}
|
|
737
|
+
else {
|
|
738
|
+
errors = _errs122;
|
|
739
|
+
if (vErrors !== null) {
|
|
740
|
+
if (_errs122) {
|
|
741
|
+
vErrors.length = _errs122;
|
|
742
|
+
}
|
|
743
|
+
else {
|
|
744
|
+
vErrors = null;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
else {
|
|
751
|
+
const err48 = createError(instancePath + "/attachment", "#/allOf/0/properties/attachment/anyOf/2/type", "type", { type: "array" }, 2);
|
|
752
|
+
vErrors = pushError(vErrors, err48);
|
|
753
|
+
errors++;
|
|
754
|
+
}
|
|
755
|
+
var _valid13 = _errs119 === errors;
|
|
756
|
+
valid25 = valid25 || _valid13;
|
|
757
|
+
if (!valid25) {
|
|
758
|
+
const err49 = createError(instancePath + "/attachment", "#/allOf/0/properties/attachment/anyOf", "anyOf", {}, 1);
|
|
759
|
+
vErrors = pushError(vErrors, err49);
|
|
760
|
+
errors++;
|
|
761
|
+
}
|
|
762
|
+
else {
|
|
763
|
+
errors = _errs115;
|
|
764
|
+
if (vErrors !== null) {
|
|
765
|
+
if (_errs115) {
|
|
766
|
+
vErrors.length = _errs115;
|
|
767
|
+
}
|
|
768
|
+
else {
|
|
769
|
+
vErrors = null;
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
if (data.attributedTo !== undefined) {
|
|
775
|
+
let data25 = data.attributedTo;
|
|
776
|
+
const _errs128 = errors;
|
|
777
|
+
let valid29 = false;
|
|
778
|
+
const _errs129 = errors;
|
|
779
|
+
if (typeof data25 !== "string") {
|
|
780
|
+
const err50 = createError(instancePath + "/attributedTo", "#/allOf/0/properties/attributedTo/anyOf/0/type", "type", { type: "string" }, 0);
|
|
781
|
+
vErrors = pushError(vErrors, err50);
|
|
782
|
+
errors++;
|
|
783
|
+
}
|
|
784
|
+
var _valid15 = _errs129 === errors;
|
|
785
|
+
valid29 = valid29 || _valid15;
|
|
786
|
+
const _errs131 = errors;
|
|
787
|
+
if (!(keyword9(data25, { instancePath: instancePath + "/attributedTo", parentData: data, parentDataProperty: "attributedTo", rootData, dynamicAnchors }))) {
|
|
788
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
789
|
+
errors = vErrors.length;
|
|
790
|
+
}
|
|
791
|
+
var _valid15 = _errs131 === errors;
|
|
792
|
+
valid29 = valid29 || _valid15;
|
|
793
|
+
const _errs132 = errors;
|
|
794
|
+
if (Array.isArray(data25)) {
|
|
795
|
+
const len6 = data25.length;
|
|
796
|
+
for (let i6 = 0; i6 < len6; i6++) {
|
|
797
|
+
let data26 = data25[i6];
|
|
798
|
+
const _errs135 = errors;
|
|
799
|
+
let valid32 = false;
|
|
800
|
+
const _errs136 = errors;
|
|
801
|
+
if (typeof data26 !== "string") {
|
|
802
|
+
const err51 = createError(instancePath + "/attributedTo/" + i6, "#/allOf/0/properties/attributedTo/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
803
|
+
vErrors = pushError(vErrors, err51);
|
|
804
|
+
errors++;
|
|
805
|
+
}
|
|
806
|
+
var _valid16 = _errs136 === errors;
|
|
807
|
+
valid32 = valid32 || _valid16;
|
|
808
|
+
const _errs138 = errors;
|
|
809
|
+
if (!(keyword9(data26, { instancePath: instancePath + "/attributedTo/" + i6, parentData: data25, parentDataProperty: i6, rootData, dynamicAnchors }))) {
|
|
810
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
811
|
+
errors = vErrors.length;
|
|
812
|
+
}
|
|
813
|
+
var _valid16 = _errs138 === errors;
|
|
814
|
+
valid32 = valid32 || _valid16;
|
|
815
|
+
if (!valid32) {
|
|
816
|
+
const err52 = createError(instancePath + "/attributedTo/" + i6, "#/allOf/0/properties/attributedTo/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
817
|
+
vErrors = pushError(vErrors, err52);
|
|
818
|
+
errors++;
|
|
819
|
+
}
|
|
820
|
+
else {
|
|
821
|
+
errors = _errs135;
|
|
822
|
+
if (vErrors !== null) {
|
|
823
|
+
if (_errs135) {
|
|
824
|
+
vErrors.length = _errs135;
|
|
825
|
+
}
|
|
826
|
+
else {
|
|
827
|
+
vErrors = null;
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
else {
|
|
834
|
+
const err53 = createError(instancePath + "/attributedTo", "#/allOf/0/properties/attributedTo/anyOf/2/type", "type", { type: "array" }, 2);
|
|
835
|
+
vErrors = pushError(vErrors, err53);
|
|
836
|
+
errors++;
|
|
837
|
+
}
|
|
838
|
+
var _valid15 = _errs132 === errors;
|
|
839
|
+
valid29 = valid29 || _valid15;
|
|
840
|
+
if (!valid29) {
|
|
841
|
+
const err54 = createError(instancePath + "/attributedTo", "#/allOf/0/properties/attributedTo/anyOf", "anyOf", {}, 1);
|
|
842
|
+
vErrors = pushError(vErrors, err54);
|
|
843
|
+
errors++;
|
|
844
|
+
}
|
|
845
|
+
else {
|
|
846
|
+
errors = _errs128;
|
|
847
|
+
if (vErrors !== null) {
|
|
848
|
+
if (_errs128) {
|
|
849
|
+
vErrors.length = _errs128;
|
|
850
|
+
}
|
|
851
|
+
else {
|
|
852
|
+
vErrors = null;
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
if (data.audience !== undefined) {
|
|
858
|
+
let data27 = data.audience;
|
|
859
|
+
const _errs141 = errors;
|
|
860
|
+
let valid33 = false;
|
|
861
|
+
const _errs142 = errors;
|
|
862
|
+
if (typeof data27 !== "string") {
|
|
863
|
+
const err55 = createError(instancePath + "/audience", "#/allOf/0/properties/audience/anyOf/0/type", "type", { type: "string" }, 0);
|
|
864
|
+
vErrors = pushError(vErrors, err55);
|
|
865
|
+
errors++;
|
|
866
|
+
}
|
|
867
|
+
var _valid17 = _errs142 === errors;
|
|
868
|
+
valid33 = valid33 || _valid17;
|
|
869
|
+
const _errs144 = errors;
|
|
870
|
+
if (!(keyword9(data27, { instancePath: instancePath + "/audience", parentData: data, parentDataProperty: "audience", rootData, dynamicAnchors }))) {
|
|
871
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
872
|
+
errors = vErrors.length;
|
|
873
|
+
}
|
|
874
|
+
var _valid17 = _errs144 === errors;
|
|
875
|
+
valid33 = valid33 || _valid17;
|
|
876
|
+
const _errs145 = errors;
|
|
877
|
+
if (Array.isArray(data27)) {
|
|
878
|
+
const len7 = data27.length;
|
|
879
|
+
for (let i7 = 0; i7 < len7; i7++) {
|
|
880
|
+
let data28 = data27[i7];
|
|
881
|
+
const _errs148 = errors;
|
|
882
|
+
let valid36 = false;
|
|
883
|
+
const _errs149 = errors;
|
|
884
|
+
if (typeof data28 !== "string") {
|
|
885
|
+
const err56 = createError(instancePath + "/audience/" + i7, "#/allOf/0/properties/audience/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
886
|
+
vErrors = pushError(vErrors, err56);
|
|
887
|
+
errors++;
|
|
888
|
+
}
|
|
889
|
+
var _valid18 = _errs149 === errors;
|
|
890
|
+
valid36 = valid36 || _valid18;
|
|
891
|
+
const _errs151 = errors;
|
|
892
|
+
if (!(keyword9(data28, { instancePath: instancePath + "/audience/" + i7, parentData: data27, parentDataProperty: i7, rootData, dynamicAnchors }))) {
|
|
893
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
894
|
+
errors = vErrors.length;
|
|
895
|
+
}
|
|
896
|
+
var _valid18 = _errs151 === errors;
|
|
897
|
+
valid36 = valid36 || _valid18;
|
|
898
|
+
if (!valid36) {
|
|
899
|
+
const err57 = createError(instancePath + "/audience/" + i7, "#/allOf/0/properties/audience/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
900
|
+
vErrors = pushError(vErrors, err57);
|
|
901
|
+
errors++;
|
|
902
|
+
}
|
|
903
|
+
else {
|
|
904
|
+
errors = _errs148;
|
|
905
|
+
if (vErrors !== null) {
|
|
906
|
+
if (_errs148) {
|
|
907
|
+
vErrors.length = _errs148;
|
|
908
|
+
}
|
|
909
|
+
else {
|
|
910
|
+
vErrors = null;
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
else {
|
|
917
|
+
const err58 = createError(instancePath + "/audience", "#/allOf/0/properties/audience/anyOf/2/type", "type", { type: "array" }, 2);
|
|
918
|
+
vErrors = pushError(vErrors, err58);
|
|
919
|
+
errors++;
|
|
920
|
+
}
|
|
921
|
+
var _valid17 = _errs145 === errors;
|
|
922
|
+
valid33 = valid33 || _valid17;
|
|
923
|
+
if (!valid33) {
|
|
924
|
+
const err59 = createError(instancePath + "/audience", "#/allOf/0/properties/audience/anyOf", "anyOf", {}, 1);
|
|
925
|
+
vErrors = pushError(vErrors, err59);
|
|
926
|
+
errors++;
|
|
927
|
+
}
|
|
928
|
+
else {
|
|
929
|
+
errors = _errs141;
|
|
930
|
+
if (vErrors !== null) {
|
|
931
|
+
if (_errs141) {
|
|
932
|
+
vErrors.length = _errs141;
|
|
933
|
+
}
|
|
934
|
+
else {
|
|
935
|
+
vErrors = null;
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
if (data.context !== undefined) {
|
|
941
|
+
let data29 = data.context;
|
|
942
|
+
const _errs154 = errors;
|
|
943
|
+
let valid37 = false;
|
|
944
|
+
const _errs155 = errors;
|
|
945
|
+
if (typeof data29 !== "string") {
|
|
946
|
+
const err60 = createError(instancePath + "/context", "#/allOf/0/properties/context/anyOf/0/type", "type", { type: "string" }, 0);
|
|
947
|
+
vErrors = pushError(vErrors, err60);
|
|
948
|
+
errors++;
|
|
949
|
+
}
|
|
950
|
+
var _valid19 = _errs155 === errors;
|
|
951
|
+
valid37 = valid37 || _valid19;
|
|
952
|
+
const _errs157 = errors;
|
|
953
|
+
if (!(keyword9(data29, { instancePath: instancePath + "/context", parentData: data, parentDataProperty: "context", rootData, dynamicAnchors }))) {
|
|
954
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
955
|
+
errors = vErrors.length;
|
|
956
|
+
}
|
|
957
|
+
var _valid19 = _errs157 === errors;
|
|
958
|
+
valid37 = valid37 || _valid19;
|
|
959
|
+
const _errs158 = errors;
|
|
960
|
+
if (Array.isArray(data29)) {
|
|
961
|
+
const len8 = data29.length;
|
|
962
|
+
for (let i8 = 0; i8 < len8; i8++) {
|
|
963
|
+
let data30 = data29[i8];
|
|
964
|
+
const _errs161 = errors;
|
|
965
|
+
let valid40 = false;
|
|
966
|
+
const _errs162 = errors;
|
|
967
|
+
if (typeof data30 !== "string") {
|
|
968
|
+
const err61 = createError(instancePath + "/context/" + i8, "#/allOf/0/properties/context/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
969
|
+
vErrors = pushError(vErrors, err61);
|
|
970
|
+
errors++;
|
|
971
|
+
}
|
|
972
|
+
var _valid20 = _errs162 === errors;
|
|
973
|
+
valid40 = valid40 || _valid20;
|
|
974
|
+
const _errs164 = errors;
|
|
975
|
+
if (!(keyword9(data30, { instancePath: instancePath + "/context/" + i8, parentData: data29, parentDataProperty: i8, rootData, dynamicAnchors }))) {
|
|
976
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
977
|
+
errors = vErrors.length;
|
|
978
|
+
}
|
|
979
|
+
var _valid20 = _errs164 === errors;
|
|
980
|
+
valid40 = valid40 || _valid20;
|
|
981
|
+
if (!valid40) {
|
|
982
|
+
const err62 = createError(instancePath + "/context/" + i8, "#/allOf/0/properties/context/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
983
|
+
vErrors = pushError(vErrors, err62);
|
|
984
|
+
errors++;
|
|
985
|
+
}
|
|
986
|
+
else {
|
|
987
|
+
errors = _errs161;
|
|
988
|
+
if (vErrors !== null) {
|
|
989
|
+
if (_errs161) {
|
|
990
|
+
vErrors.length = _errs161;
|
|
991
|
+
}
|
|
992
|
+
else {
|
|
993
|
+
vErrors = null;
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
else {
|
|
1000
|
+
const err63 = createError(instancePath + "/context", "#/allOf/0/properties/context/anyOf/2/type", "type", { type: "array" }, 2);
|
|
1001
|
+
vErrors = pushError(vErrors, err63);
|
|
1002
|
+
errors++;
|
|
1003
|
+
}
|
|
1004
|
+
var _valid19 = _errs158 === errors;
|
|
1005
|
+
valid37 = valid37 || _valid19;
|
|
1006
|
+
if (!valid37) {
|
|
1007
|
+
const err64 = createError(instancePath + "/context", "#/allOf/0/properties/context/anyOf", "anyOf", {}, 1);
|
|
1008
|
+
vErrors = pushError(vErrors, err64);
|
|
1009
|
+
errors++;
|
|
1010
|
+
}
|
|
1011
|
+
else {
|
|
1012
|
+
errors = _errs154;
|
|
1013
|
+
if (vErrors !== null) {
|
|
1014
|
+
if (_errs154) {
|
|
1015
|
+
vErrors.length = _errs154;
|
|
1016
|
+
}
|
|
1017
|
+
else {
|
|
1018
|
+
vErrors = null;
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
if (data.location !== undefined) {
|
|
1024
|
+
let data31 = data.location;
|
|
1025
|
+
const _errs167 = errors;
|
|
1026
|
+
let valid41 = false;
|
|
1027
|
+
const _errs168 = errors;
|
|
1028
|
+
if (typeof data31 !== "string") {
|
|
1029
|
+
const err65 = createError(instancePath + "/location", "#/allOf/0/properties/location/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1030
|
+
vErrors = pushError(vErrors, err65);
|
|
1031
|
+
errors++;
|
|
1032
|
+
}
|
|
1033
|
+
var _valid21 = _errs168 === errors;
|
|
1034
|
+
valid41 = valid41 || _valid21;
|
|
1035
|
+
const _errs170 = errors;
|
|
1036
|
+
if (!(keyword9(data31, { instancePath: instancePath + "/location", parentData: data, parentDataProperty: "location", rootData, dynamicAnchors }))) {
|
|
1037
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1038
|
+
errors = vErrors.length;
|
|
1039
|
+
}
|
|
1040
|
+
var _valid21 = _errs170 === errors;
|
|
1041
|
+
valid41 = valid41 || _valid21;
|
|
1042
|
+
const _errs171 = errors;
|
|
1043
|
+
if (Array.isArray(data31)) {
|
|
1044
|
+
const len9 = data31.length;
|
|
1045
|
+
for (let i9 = 0; i9 < len9; i9++) {
|
|
1046
|
+
let data32 = data31[i9];
|
|
1047
|
+
const _errs174 = errors;
|
|
1048
|
+
let valid44 = false;
|
|
1049
|
+
const _errs175 = errors;
|
|
1050
|
+
if (typeof data32 !== "string") {
|
|
1051
|
+
const err66 = createError(instancePath + "/location/" + i9, "#/allOf/0/properties/location/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1052
|
+
vErrors = pushError(vErrors, err66);
|
|
1053
|
+
errors++;
|
|
1054
|
+
}
|
|
1055
|
+
var _valid22 = _errs175 === errors;
|
|
1056
|
+
valid44 = valid44 || _valid22;
|
|
1057
|
+
const _errs177 = errors;
|
|
1058
|
+
if (!(keyword9(data32, { instancePath: instancePath + "/location/" + i9, parentData: data31, parentDataProperty: i9, rootData, dynamicAnchors }))) {
|
|
1059
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1060
|
+
errors = vErrors.length;
|
|
1061
|
+
}
|
|
1062
|
+
var _valid22 = _errs177 === errors;
|
|
1063
|
+
valid44 = valid44 || _valid22;
|
|
1064
|
+
if (!valid44) {
|
|
1065
|
+
const err67 = createError(instancePath + "/location/" + i9, "#/allOf/0/properties/location/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
1066
|
+
vErrors = pushError(vErrors, err67);
|
|
1067
|
+
errors++;
|
|
1068
|
+
}
|
|
1069
|
+
else {
|
|
1070
|
+
errors = _errs174;
|
|
1071
|
+
if (vErrors !== null) {
|
|
1072
|
+
if (_errs174) {
|
|
1073
|
+
vErrors.length = _errs174;
|
|
1074
|
+
}
|
|
1075
|
+
else {
|
|
1076
|
+
vErrors = null;
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
else {
|
|
1083
|
+
const err68 = createError(instancePath + "/location", "#/allOf/0/properties/location/anyOf/2/type", "type", { type: "array" }, 2);
|
|
1084
|
+
vErrors = pushError(vErrors, err68);
|
|
1085
|
+
errors++;
|
|
1086
|
+
}
|
|
1087
|
+
var _valid21 = _errs171 === errors;
|
|
1088
|
+
valid41 = valid41 || _valid21;
|
|
1089
|
+
if (!valid41) {
|
|
1090
|
+
const err69 = createError(instancePath + "/location", "#/allOf/0/properties/location/anyOf", "anyOf", {}, 1);
|
|
1091
|
+
vErrors = pushError(vErrors, err69);
|
|
1092
|
+
errors++;
|
|
1093
|
+
}
|
|
1094
|
+
else {
|
|
1095
|
+
errors = _errs167;
|
|
1096
|
+
if (vErrors !== null) {
|
|
1097
|
+
if (_errs167) {
|
|
1098
|
+
vErrors.length = _errs167;
|
|
1099
|
+
}
|
|
1100
|
+
else {
|
|
1101
|
+
vErrors = null;
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
if (data.tag !== undefined) {
|
|
1107
|
+
let data33 = data.tag;
|
|
1108
|
+
const _errs180 = errors;
|
|
1109
|
+
let valid45 = false;
|
|
1110
|
+
const _errs181 = errors;
|
|
1111
|
+
if (typeof data33 !== "string") {
|
|
1112
|
+
const err70 = createError(instancePath + "/tag", "#/allOf/0/properties/tag/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1113
|
+
vErrors = pushError(vErrors, err70);
|
|
1114
|
+
errors++;
|
|
1115
|
+
}
|
|
1116
|
+
var _valid23 = _errs181 === errors;
|
|
1117
|
+
valid45 = valid45 || _valid23;
|
|
1118
|
+
const _errs183 = errors;
|
|
1119
|
+
if (!(keyword9(data33, { instancePath: instancePath + "/tag", parentData: data, parentDataProperty: "tag", rootData, dynamicAnchors }))) {
|
|
1120
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1121
|
+
errors = vErrors.length;
|
|
1122
|
+
}
|
|
1123
|
+
var _valid23 = _errs183 === errors;
|
|
1124
|
+
valid45 = valid45 || _valid23;
|
|
1125
|
+
const _errs184 = errors;
|
|
1126
|
+
if (Array.isArray(data33)) {
|
|
1127
|
+
const len10 = data33.length;
|
|
1128
|
+
for (let i10 = 0; i10 < len10; i10++) {
|
|
1129
|
+
let data34 = data33[i10];
|
|
1130
|
+
const _errs187 = errors;
|
|
1131
|
+
let valid48 = false;
|
|
1132
|
+
const _errs188 = errors;
|
|
1133
|
+
if (typeof data34 !== "string") {
|
|
1134
|
+
const err71 = createError(instancePath + "/tag/" + i10, "#/allOf/0/properties/tag/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1135
|
+
vErrors = pushError(vErrors, err71);
|
|
1136
|
+
errors++;
|
|
1137
|
+
}
|
|
1138
|
+
var _valid24 = _errs188 === errors;
|
|
1139
|
+
valid48 = valid48 || _valid24;
|
|
1140
|
+
const _errs190 = errors;
|
|
1141
|
+
if (!(keyword9(data34, { instancePath: instancePath + "/tag/" + i10, parentData: data33, parentDataProperty: i10, rootData, dynamicAnchors }))) {
|
|
1142
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1143
|
+
errors = vErrors.length;
|
|
1144
|
+
}
|
|
1145
|
+
var _valid24 = _errs190 === errors;
|
|
1146
|
+
valid48 = valid48 || _valid24;
|
|
1147
|
+
if (!valid48) {
|
|
1148
|
+
const err72 = createError(instancePath + "/tag/" + i10, "#/allOf/0/properties/tag/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
1149
|
+
vErrors = pushError(vErrors, err72);
|
|
1150
|
+
errors++;
|
|
1151
|
+
}
|
|
1152
|
+
else {
|
|
1153
|
+
errors = _errs187;
|
|
1154
|
+
if (vErrors !== null) {
|
|
1155
|
+
if (_errs187) {
|
|
1156
|
+
vErrors.length = _errs187;
|
|
1157
|
+
}
|
|
1158
|
+
else {
|
|
1159
|
+
vErrors = null;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
else {
|
|
1166
|
+
const err73 = createError(instancePath + "/tag", "#/allOf/0/properties/tag/anyOf/2/type", "type", { type: "array" }, 2);
|
|
1167
|
+
vErrors = pushError(vErrors, err73);
|
|
1168
|
+
errors++;
|
|
1169
|
+
}
|
|
1170
|
+
var _valid23 = _errs184 === errors;
|
|
1171
|
+
valid45 = valid45 || _valid23;
|
|
1172
|
+
if (!valid45) {
|
|
1173
|
+
const err74 = createError(instancePath + "/tag", "#/allOf/0/properties/tag/anyOf", "anyOf", {}, 1);
|
|
1174
|
+
vErrors = pushError(vErrors, err74);
|
|
1175
|
+
errors++;
|
|
1176
|
+
}
|
|
1177
|
+
else {
|
|
1178
|
+
errors = _errs180;
|
|
1179
|
+
if (vErrors !== null) {
|
|
1180
|
+
if (_errs180) {
|
|
1181
|
+
vErrors.length = _errs180;
|
|
1182
|
+
}
|
|
1183
|
+
else {
|
|
1184
|
+
vErrors = null;
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
if (data.inReplyTo !== undefined) {
|
|
1190
|
+
let data35 = data.inReplyTo;
|
|
1191
|
+
const _errs193 = errors;
|
|
1192
|
+
let valid49 = false;
|
|
1193
|
+
const _errs194 = errors;
|
|
1194
|
+
if (typeof data35 !== "string") {
|
|
1195
|
+
const err75 = createError(instancePath + "/inReplyTo", "#/allOf/0/properties/inReplyTo/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1196
|
+
vErrors = pushError(vErrors, err75);
|
|
1197
|
+
errors++;
|
|
1198
|
+
}
|
|
1199
|
+
var _valid25 = _errs194 === errors;
|
|
1200
|
+
valid49 = valid49 || _valid25;
|
|
1201
|
+
const _errs196 = errors;
|
|
1202
|
+
if (!(keyword9(data35, { instancePath: instancePath + "/inReplyTo", parentData: data, parentDataProperty: "inReplyTo", rootData, dynamicAnchors }))) {
|
|
1203
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1204
|
+
errors = vErrors.length;
|
|
1205
|
+
}
|
|
1206
|
+
var _valid25 = _errs196 === errors;
|
|
1207
|
+
valid49 = valid49 || _valid25;
|
|
1208
|
+
const _errs197 = errors;
|
|
1209
|
+
if (Array.isArray(data35)) {
|
|
1210
|
+
const len11 = data35.length;
|
|
1211
|
+
for (let i11 = 0; i11 < len11; i11++) {
|
|
1212
|
+
let data36 = data35[i11];
|
|
1213
|
+
const _errs200 = errors;
|
|
1214
|
+
let valid52 = false;
|
|
1215
|
+
const _errs201 = errors;
|
|
1216
|
+
if (typeof data36 !== "string") {
|
|
1217
|
+
const err76 = createError(instancePath + "/inReplyTo/" + i11, "#/allOf/0/properties/inReplyTo/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1218
|
+
vErrors = pushError(vErrors, err76);
|
|
1219
|
+
errors++;
|
|
1220
|
+
}
|
|
1221
|
+
var _valid26 = _errs201 === errors;
|
|
1222
|
+
valid52 = valid52 || _valid26;
|
|
1223
|
+
const _errs203 = errors;
|
|
1224
|
+
if (!(keyword9(data36, { instancePath: instancePath + "/inReplyTo/" + i11, parentData: data35, parentDataProperty: i11, rootData, dynamicAnchors }))) {
|
|
1225
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1226
|
+
errors = vErrors.length;
|
|
1227
|
+
}
|
|
1228
|
+
var _valid26 = _errs203 === errors;
|
|
1229
|
+
valid52 = valid52 || _valid26;
|
|
1230
|
+
if (!valid52) {
|
|
1231
|
+
const err77 = createError(instancePath + "/inReplyTo/" + i11, "#/allOf/0/properties/inReplyTo/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
1232
|
+
vErrors = pushError(vErrors, err77);
|
|
1233
|
+
errors++;
|
|
1234
|
+
}
|
|
1235
|
+
else {
|
|
1236
|
+
errors = _errs200;
|
|
1237
|
+
if (vErrors !== null) {
|
|
1238
|
+
if (_errs200) {
|
|
1239
|
+
vErrors.length = _errs200;
|
|
1240
|
+
}
|
|
1241
|
+
else {
|
|
1242
|
+
vErrors = null;
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
else {
|
|
1249
|
+
const err78 = createError(instancePath + "/inReplyTo", "#/allOf/0/properties/inReplyTo/anyOf/2/type", "type", { type: "array" }, 2);
|
|
1250
|
+
vErrors = pushError(vErrors, err78);
|
|
1251
|
+
errors++;
|
|
1252
|
+
}
|
|
1253
|
+
var _valid25 = _errs197 === errors;
|
|
1254
|
+
valid49 = valid49 || _valid25;
|
|
1255
|
+
if (!valid49) {
|
|
1256
|
+
const err79 = createError(instancePath + "/inReplyTo", "#/allOf/0/properties/inReplyTo/anyOf", "anyOf", {}, 1);
|
|
1257
|
+
vErrors = pushError(vErrors, err79);
|
|
1258
|
+
errors++;
|
|
1259
|
+
}
|
|
1260
|
+
else {
|
|
1261
|
+
errors = _errs193;
|
|
1262
|
+
if (vErrors !== null) {
|
|
1263
|
+
if (_errs193) {
|
|
1264
|
+
vErrors.length = _errs193;
|
|
1265
|
+
}
|
|
1266
|
+
else {
|
|
1267
|
+
vErrors = null;
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
if (data.replies !== undefined) {
|
|
1273
|
+
if (!(keyword9(data.replies, { instancePath: instancePath + "/replies", parentData: data, parentDataProperty: "replies", rootData, dynamicAnchors }))) {
|
|
1274
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1275
|
+
errors = vErrors.length;
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
if (data.preview !== undefined) {
|
|
1279
|
+
let data38 = data.preview;
|
|
1280
|
+
const _errs208 = errors;
|
|
1281
|
+
let valid53 = false;
|
|
1282
|
+
const _errs209 = errors;
|
|
1283
|
+
if (typeof data38 !== "string") {
|
|
1284
|
+
const err80 = createError(instancePath + "/preview", "#/allOf/0/properties/preview/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1285
|
+
vErrors = pushError(vErrors, err80);
|
|
1286
|
+
errors++;
|
|
1287
|
+
}
|
|
1288
|
+
var _valid27 = _errs209 === errors;
|
|
1289
|
+
valid53 = valid53 || _valid27;
|
|
1290
|
+
const _errs211 = errors;
|
|
1291
|
+
if (!(keyword9(data38, { instancePath: instancePath + "/preview", parentData: data, parentDataProperty: "preview", rootData, dynamicAnchors }))) {
|
|
1292
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1293
|
+
errors = vErrors.length;
|
|
1294
|
+
}
|
|
1295
|
+
var _valid27 = _errs211 === errors;
|
|
1296
|
+
valid53 = valid53 || _valid27;
|
|
1297
|
+
const _errs212 = errors;
|
|
1298
|
+
if (Array.isArray(data38)) {
|
|
1299
|
+
const len12 = data38.length;
|
|
1300
|
+
for (let i12 = 0; i12 < len12; i12++) {
|
|
1301
|
+
let data39 = data38[i12];
|
|
1302
|
+
const _errs215 = errors;
|
|
1303
|
+
let valid56 = false;
|
|
1304
|
+
const _errs216 = errors;
|
|
1305
|
+
if (typeof data39 !== "string") {
|
|
1306
|
+
const err81 = createError(instancePath + "/preview/" + i12, "#/allOf/0/properties/preview/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1307
|
+
vErrors = pushError(vErrors, err81);
|
|
1308
|
+
errors++;
|
|
1309
|
+
}
|
|
1310
|
+
var _valid28 = _errs216 === errors;
|
|
1311
|
+
valid56 = valid56 || _valid28;
|
|
1312
|
+
const _errs218 = errors;
|
|
1313
|
+
if (!(keyword9(data39, { instancePath: instancePath + "/preview/" + i12, parentData: data38, parentDataProperty: i12, rootData, dynamicAnchors }))) {
|
|
1314
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1315
|
+
errors = vErrors.length;
|
|
1316
|
+
}
|
|
1317
|
+
var _valid28 = _errs218 === errors;
|
|
1318
|
+
valid56 = valid56 || _valid28;
|
|
1319
|
+
if (!valid56) {
|
|
1320
|
+
const err82 = createError(instancePath + "/preview/" + i12, "#/allOf/0/properties/preview/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
1321
|
+
vErrors = pushError(vErrors, err82);
|
|
1322
|
+
errors++;
|
|
1323
|
+
}
|
|
1324
|
+
else {
|
|
1325
|
+
errors = _errs215;
|
|
1326
|
+
if (vErrors !== null) {
|
|
1327
|
+
if (_errs215) {
|
|
1328
|
+
vErrors.length = _errs215;
|
|
1329
|
+
}
|
|
1330
|
+
else {
|
|
1331
|
+
vErrors = null;
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
else {
|
|
1338
|
+
const err83 = createError(instancePath + "/preview", "#/allOf/0/properties/preview/anyOf/2/type", "type", { type: "array" }, 2);
|
|
1339
|
+
vErrors = pushError(vErrors, err83);
|
|
1340
|
+
errors++;
|
|
1341
|
+
}
|
|
1342
|
+
var _valid27 = _errs212 === errors;
|
|
1343
|
+
valid53 = valid53 || _valid27;
|
|
1344
|
+
if (!valid53) {
|
|
1345
|
+
const err84 = createError(instancePath + "/preview", "#/allOf/0/properties/preview/anyOf", "anyOf", {}, 1);
|
|
1346
|
+
vErrors = pushError(vErrors, err84);
|
|
1347
|
+
errors++;
|
|
1348
|
+
}
|
|
1349
|
+
else {
|
|
1350
|
+
errors = _errs208;
|
|
1351
|
+
if (vErrors !== null) {
|
|
1352
|
+
if (_errs208) {
|
|
1353
|
+
vErrors.length = _errs208;
|
|
1354
|
+
}
|
|
1355
|
+
else {
|
|
1356
|
+
vErrors = null;
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
if (data.to !== undefined) {
|
|
1362
|
+
let data40 = data.to;
|
|
1363
|
+
const _errs221 = errors;
|
|
1364
|
+
let valid57 = false;
|
|
1365
|
+
const _errs222 = errors;
|
|
1366
|
+
if (typeof data40 !== "string") {
|
|
1367
|
+
const err85 = createError(instancePath + "/to", "#/allOf/0/properties/to/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1368
|
+
vErrors = pushError(vErrors, err85);
|
|
1369
|
+
errors++;
|
|
1370
|
+
}
|
|
1371
|
+
var _valid29 = _errs222 === errors;
|
|
1372
|
+
valid57 = valid57 || _valid29;
|
|
1373
|
+
const _errs224 = errors;
|
|
1374
|
+
if (!(keyword9(data40, { instancePath: instancePath + "/to", parentData: data, parentDataProperty: "to", rootData, dynamicAnchors }))) {
|
|
1375
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1376
|
+
errors = vErrors.length;
|
|
1377
|
+
}
|
|
1378
|
+
var _valid29 = _errs224 === errors;
|
|
1379
|
+
valid57 = valid57 || _valid29;
|
|
1380
|
+
const _errs225 = errors;
|
|
1381
|
+
if (Array.isArray(data40)) {
|
|
1382
|
+
const len13 = data40.length;
|
|
1383
|
+
for (let i13 = 0; i13 < len13; i13++) {
|
|
1384
|
+
let data41 = data40[i13];
|
|
1385
|
+
const _errs228 = errors;
|
|
1386
|
+
let valid60 = false;
|
|
1387
|
+
const _errs229 = errors;
|
|
1388
|
+
if (typeof data41 !== "string") {
|
|
1389
|
+
const err86 = createError(instancePath + "/to/" + i13, "#/allOf/0/properties/to/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1390
|
+
vErrors = pushError(vErrors, err86);
|
|
1391
|
+
errors++;
|
|
1392
|
+
}
|
|
1393
|
+
var _valid30 = _errs229 === errors;
|
|
1394
|
+
valid60 = valid60 || _valid30;
|
|
1395
|
+
const _errs231 = errors;
|
|
1396
|
+
if (!(keyword9(data41, { instancePath: instancePath + "/to/" + i13, parentData: data40, parentDataProperty: i13, rootData, dynamicAnchors }))) {
|
|
1397
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1398
|
+
errors = vErrors.length;
|
|
1399
|
+
}
|
|
1400
|
+
var _valid30 = _errs231 === errors;
|
|
1401
|
+
valid60 = valid60 || _valid30;
|
|
1402
|
+
if (!valid60) {
|
|
1403
|
+
const err87 = createError(instancePath + "/to/" + i13, "#/allOf/0/properties/to/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
1404
|
+
vErrors = pushError(vErrors, err87);
|
|
1405
|
+
errors++;
|
|
1406
|
+
}
|
|
1407
|
+
else {
|
|
1408
|
+
errors = _errs228;
|
|
1409
|
+
if (vErrors !== null) {
|
|
1410
|
+
if (_errs228) {
|
|
1411
|
+
vErrors.length = _errs228;
|
|
1412
|
+
}
|
|
1413
|
+
else {
|
|
1414
|
+
vErrors = null;
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
else {
|
|
1421
|
+
const err88 = createError(instancePath + "/to", "#/allOf/0/properties/to/anyOf/2/type", "type", { type: "array" }, 2);
|
|
1422
|
+
vErrors = pushError(vErrors, err88);
|
|
1423
|
+
errors++;
|
|
1424
|
+
}
|
|
1425
|
+
var _valid29 = _errs225 === errors;
|
|
1426
|
+
valid57 = valid57 || _valid29;
|
|
1427
|
+
if (!valid57) {
|
|
1428
|
+
const err89 = createError(instancePath + "/to", "#/allOf/0/properties/to/anyOf", "anyOf", {}, 1);
|
|
1429
|
+
vErrors = pushError(vErrors, err89);
|
|
1430
|
+
errors++;
|
|
1431
|
+
}
|
|
1432
|
+
else {
|
|
1433
|
+
errors = _errs221;
|
|
1434
|
+
if (vErrors !== null) {
|
|
1435
|
+
if (_errs221) {
|
|
1436
|
+
vErrors.length = _errs221;
|
|
1437
|
+
}
|
|
1438
|
+
else {
|
|
1439
|
+
vErrors = null;
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
if (data.bto !== undefined) {
|
|
1445
|
+
let data42 = data.bto;
|
|
1446
|
+
const _errs234 = errors;
|
|
1447
|
+
let valid61 = false;
|
|
1448
|
+
const _errs235 = errors;
|
|
1449
|
+
if (typeof data42 !== "string") {
|
|
1450
|
+
const err90 = createError(instancePath + "/bto", "#/allOf/0/properties/bto/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1451
|
+
vErrors = pushError(vErrors, err90);
|
|
1452
|
+
errors++;
|
|
1453
|
+
}
|
|
1454
|
+
var _valid31 = _errs235 === errors;
|
|
1455
|
+
valid61 = valid61 || _valid31;
|
|
1456
|
+
const _errs237 = errors;
|
|
1457
|
+
if (!(keyword9(data42, { instancePath: instancePath + "/bto", parentData: data, parentDataProperty: "bto", rootData, dynamicAnchors }))) {
|
|
1458
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1459
|
+
errors = vErrors.length;
|
|
1460
|
+
}
|
|
1461
|
+
var _valid31 = _errs237 === errors;
|
|
1462
|
+
valid61 = valid61 || _valid31;
|
|
1463
|
+
const _errs238 = errors;
|
|
1464
|
+
if (Array.isArray(data42)) {
|
|
1465
|
+
const len14 = data42.length;
|
|
1466
|
+
for (let i14 = 0; i14 < len14; i14++) {
|
|
1467
|
+
let data43 = data42[i14];
|
|
1468
|
+
const _errs241 = errors;
|
|
1469
|
+
let valid64 = false;
|
|
1470
|
+
const _errs242 = errors;
|
|
1471
|
+
if (typeof data43 !== "string") {
|
|
1472
|
+
const err91 = createError(instancePath + "/bto/" + i14, "#/allOf/0/properties/bto/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1473
|
+
vErrors = pushError(vErrors, err91);
|
|
1474
|
+
errors++;
|
|
1475
|
+
}
|
|
1476
|
+
var _valid32 = _errs242 === errors;
|
|
1477
|
+
valid64 = valid64 || _valid32;
|
|
1478
|
+
const _errs244 = errors;
|
|
1479
|
+
if (!(keyword9(data43, { instancePath: instancePath + "/bto/" + i14, parentData: data42, parentDataProperty: i14, rootData, dynamicAnchors }))) {
|
|
1480
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1481
|
+
errors = vErrors.length;
|
|
1482
|
+
}
|
|
1483
|
+
var _valid32 = _errs244 === errors;
|
|
1484
|
+
valid64 = valid64 || _valid32;
|
|
1485
|
+
if (!valid64) {
|
|
1486
|
+
const err92 = createError(instancePath + "/bto/" + i14, "#/allOf/0/properties/bto/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
1487
|
+
vErrors = pushError(vErrors, err92);
|
|
1488
|
+
errors++;
|
|
1489
|
+
}
|
|
1490
|
+
else {
|
|
1491
|
+
errors = _errs241;
|
|
1492
|
+
if (vErrors !== null) {
|
|
1493
|
+
if (_errs241) {
|
|
1494
|
+
vErrors.length = _errs241;
|
|
1495
|
+
}
|
|
1496
|
+
else {
|
|
1497
|
+
vErrors = null;
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
else {
|
|
1504
|
+
const err93 = createError(instancePath + "/bto", "#/allOf/0/properties/bto/anyOf/2/type", "type", { type: "array" }, 2);
|
|
1505
|
+
vErrors = pushError(vErrors, err93);
|
|
1506
|
+
errors++;
|
|
1507
|
+
}
|
|
1508
|
+
var _valid31 = _errs238 === errors;
|
|
1509
|
+
valid61 = valid61 || _valid31;
|
|
1510
|
+
if (!valid61) {
|
|
1511
|
+
const err94 = createError(instancePath + "/bto", "#/allOf/0/properties/bto/anyOf", "anyOf", {}, 1);
|
|
1512
|
+
vErrors = pushError(vErrors, err94);
|
|
1513
|
+
errors++;
|
|
1514
|
+
}
|
|
1515
|
+
else {
|
|
1516
|
+
errors = _errs234;
|
|
1517
|
+
if (vErrors !== null) {
|
|
1518
|
+
if (_errs234) {
|
|
1519
|
+
vErrors.length = _errs234;
|
|
1520
|
+
}
|
|
1521
|
+
else {
|
|
1522
|
+
vErrors = null;
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
if (data.cc !== undefined) {
|
|
1528
|
+
let data44 = data.cc;
|
|
1529
|
+
const _errs247 = errors;
|
|
1530
|
+
let valid65 = false;
|
|
1531
|
+
const _errs248 = errors;
|
|
1532
|
+
if (typeof data44 !== "string") {
|
|
1533
|
+
const err95 = createError(instancePath + "/cc", "#/allOf/0/properties/cc/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1534
|
+
vErrors = pushError(vErrors, err95);
|
|
1535
|
+
errors++;
|
|
1536
|
+
}
|
|
1537
|
+
var _valid33 = _errs248 === errors;
|
|
1538
|
+
valid65 = valid65 || _valid33;
|
|
1539
|
+
const _errs250 = errors;
|
|
1540
|
+
if (!(keyword9(data44, { instancePath: instancePath + "/cc", parentData: data, parentDataProperty: "cc", rootData, dynamicAnchors }))) {
|
|
1541
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1542
|
+
errors = vErrors.length;
|
|
1543
|
+
}
|
|
1544
|
+
var _valid33 = _errs250 === errors;
|
|
1545
|
+
valid65 = valid65 || _valid33;
|
|
1546
|
+
const _errs251 = errors;
|
|
1547
|
+
if (Array.isArray(data44)) {
|
|
1548
|
+
const len15 = data44.length;
|
|
1549
|
+
for (let i15 = 0; i15 < len15; i15++) {
|
|
1550
|
+
let data45 = data44[i15];
|
|
1551
|
+
const _errs254 = errors;
|
|
1552
|
+
let valid68 = false;
|
|
1553
|
+
const _errs255 = errors;
|
|
1554
|
+
if (typeof data45 !== "string") {
|
|
1555
|
+
const err96 = createError(instancePath + "/cc/" + i15, "#/allOf/0/properties/cc/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1556
|
+
vErrors = pushError(vErrors, err96);
|
|
1557
|
+
errors++;
|
|
1558
|
+
}
|
|
1559
|
+
var _valid34 = _errs255 === errors;
|
|
1560
|
+
valid68 = valid68 || _valid34;
|
|
1561
|
+
const _errs257 = errors;
|
|
1562
|
+
if (!(keyword9(data45, { instancePath: instancePath + "/cc/" + i15, parentData: data44, parentDataProperty: i15, rootData, dynamicAnchors }))) {
|
|
1563
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1564
|
+
errors = vErrors.length;
|
|
1565
|
+
}
|
|
1566
|
+
var _valid34 = _errs257 === errors;
|
|
1567
|
+
valid68 = valid68 || _valid34;
|
|
1568
|
+
if (!valid68) {
|
|
1569
|
+
const err97 = createError(instancePath + "/cc/" + i15, "#/allOf/0/properties/cc/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
1570
|
+
vErrors = pushError(vErrors, err97);
|
|
1571
|
+
errors++;
|
|
1572
|
+
}
|
|
1573
|
+
else {
|
|
1574
|
+
errors = _errs254;
|
|
1575
|
+
if (vErrors !== null) {
|
|
1576
|
+
if (_errs254) {
|
|
1577
|
+
vErrors.length = _errs254;
|
|
1578
|
+
}
|
|
1579
|
+
else {
|
|
1580
|
+
vErrors = null;
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
else {
|
|
1587
|
+
const err98 = createError(instancePath + "/cc", "#/allOf/0/properties/cc/anyOf/2/type", "type", { type: "array" }, 2);
|
|
1588
|
+
vErrors = pushError(vErrors, err98);
|
|
1589
|
+
errors++;
|
|
1590
|
+
}
|
|
1591
|
+
var _valid33 = _errs251 === errors;
|
|
1592
|
+
valid65 = valid65 || _valid33;
|
|
1593
|
+
if (!valid65) {
|
|
1594
|
+
const err99 = createError(instancePath + "/cc", "#/allOf/0/properties/cc/anyOf", "anyOf", {}, 1);
|
|
1595
|
+
vErrors = pushError(vErrors, err99);
|
|
1596
|
+
errors++;
|
|
1597
|
+
}
|
|
1598
|
+
else {
|
|
1599
|
+
errors = _errs247;
|
|
1600
|
+
if (vErrors !== null) {
|
|
1601
|
+
if (_errs247) {
|
|
1602
|
+
vErrors.length = _errs247;
|
|
1603
|
+
}
|
|
1604
|
+
else {
|
|
1605
|
+
vErrors = null;
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
if (data.bcc !== undefined) {
|
|
1611
|
+
let data46 = data.bcc;
|
|
1612
|
+
const _errs260 = errors;
|
|
1613
|
+
let valid69 = false;
|
|
1614
|
+
const _errs261 = errors;
|
|
1615
|
+
if (typeof data46 !== "string") {
|
|
1616
|
+
const err100 = createError(instancePath + "/bcc", "#/allOf/0/properties/bcc/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1617
|
+
vErrors = pushError(vErrors, err100);
|
|
1618
|
+
errors++;
|
|
1619
|
+
}
|
|
1620
|
+
var _valid35 = _errs261 === errors;
|
|
1621
|
+
valid69 = valid69 || _valid35;
|
|
1622
|
+
const _errs263 = errors;
|
|
1623
|
+
if (!(keyword9(data46, { instancePath: instancePath + "/bcc", parentData: data, parentDataProperty: "bcc", rootData, dynamicAnchors }))) {
|
|
1624
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1625
|
+
errors = vErrors.length;
|
|
1626
|
+
}
|
|
1627
|
+
var _valid35 = _errs263 === errors;
|
|
1628
|
+
valid69 = valid69 || _valid35;
|
|
1629
|
+
const _errs264 = errors;
|
|
1630
|
+
if (Array.isArray(data46)) {
|
|
1631
|
+
const len16 = data46.length;
|
|
1632
|
+
for (let i16 = 0; i16 < len16; i16++) {
|
|
1633
|
+
let data47 = data46[i16];
|
|
1634
|
+
const _errs267 = errors;
|
|
1635
|
+
let valid72 = false;
|
|
1636
|
+
const _errs268 = errors;
|
|
1637
|
+
if (typeof data47 !== "string") {
|
|
1638
|
+
const err101 = createError(instancePath + "/bcc/" + i16, "#/allOf/0/properties/bcc/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1639
|
+
vErrors = pushError(vErrors, err101);
|
|
1640
|
+
errors++;
|
|
1641
|
+
}
|
|
1642
|
+
var _valid36 = _errs268 === errors;
|
|
1643
|
+
valid72 = valid72 || _valid36;
|
|
1644
|
+
const _errs270 = errors;
|
|
1645
|
+
if (!(keyword9(data47, { instancePath: instancePath + "/bcc/" + i16, parentData: data46, parentDataProperty: i16, rootData, dynamicAnchors }))) {
|
|
1646
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1647
|
+
errors = vErrors.length;
|
|
1648
|
+
}
|
|
1649
|
+
var _valid36 = _errs270 === errors;
|
|
1650
|
+
valid72 = valid72 || _valid36;
|
|
1651
|
+
if (!valid72) {
|
|
1652
|
+
const err102 = createError(instancePath + "/bcc/" + i16, "#/allOf/0/properties/bcc/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
1653
|
+
vErrors = pushError(vErrors, err102);
|
|
1654
|
+
errors++;
|
|
1655
|
+
}
|
|
1656
|
+
else {
|
|
1657
|
+
errors = _errs267;
|
|
1658
|
+
if (vErrors !== null) {
|
|
1659
|
+
if (_errs267) {
|
|
1660
|
+
vErrors.length = _errs267;
|
|
1661
|
+
}
|
|
1662
|
+
else {
|
|
1663
|
+
vErrors = null;
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
else {
|
|
1670
|
+
const err103 = createError(instancePath + "/bcc", "#/allOf/0/properties/bcc/anyOf/2/type", "type", { type: "array" }, 2);
|
|
1671
|
+
vErrors = pushError(vErrors, err103);
|
|
1672
|
+
errors++;
|
|
1673
|
+
}
|
|
1674
|
+
var _valid35 = _errs264 === errors;
|
|
1675
|
+
valid69 = valid69 || _valid35;
|
|
1676
|
+
if (!valid69) {
|
|
1677
|
+
const err104 = createError(instancePath + "/bcc", "#/allOf/0/properties/bcc/anyOf", "anyOf", {}, 1);
|
|
1678
|
+
vErrors = pushError(vErrors, err104);
|
|
1679
|
+
errors++;
|
|
1680
|
+
}
|
|
1681
|
+
else {
|
|
1682
|
+
errors = _errs260;
|
|
1683
|
+
if (vErrors !== null) {
|
|
1684
|
+
if (_errs260) {
|
|
1685
|
+
vErrors.length = _errs260;
|
|
1686
|
+
}
|
|
1687
|
+
else {
|
|
1688
|
+
vErrors = null;
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
if (data.mediaType !== undefined) {
|
|
1694
|
+
if (typeof data.mediaType !== "string") {
|
|
1695
|
+
const err105 = createError(instancePath + "/mediaType", "#/allOf/0/properties/mediaType/type", "type", { type: "string" }, 0);
|
|
1696
|
+
vErrors = pushError(vErrors, err105);
|
|
1697
|
+
errors++;
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
if (data.actor !== undefined) {
|
|
1701
|
+
let data49 = data.actor;
|
|
1702
|
+
const _errs276 = errors;
|
|
1703
|
+
let valid73 = false;
|
|
1704
|
+
const _errs277 = errors;
|
|
1705
|
+
if (typeof data49 !== "string") {
|
|
1706
|
+
const err106 = createError(instancePath + "/actor", "#/allOf/0/properties/actor/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1707
|
+
vErrors = pushError(vErrors, err106);
|
|
1708
|
+
errors++;
|
|
1709
|
+
}
|
|
1710
|
+
var _valid37 = _errs277 === errors;
|
|
1711
|
+
valid73 = valid73 || _valid37;
|
|
1712
|
+
const _errs279 = errors;
|
|
1713
|
+
if (!(keyword9(data49, { instancePath: instancePath + "/actor", parentData: data, parentDataProperty: "actor", rootData, dynamicAnchors }))) {
|
|
1714
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1715
|
+
errors = vErrors.length;
|
|
1716
|
+
}
|
|
1717
|
+
var _valid37 = _errs279 === errors;
|
|
1718
|
+
valid73 = valid73 || _valid37;
|
|
1719
|
+
const _errs280 = errors;
|
|
1720
|
+
if (Array.isArray(data49)) {
|
|
1721
|
+
const len17 = data49.length;
|
|
1722
|
+
for (let i17 = 0; i17 < len17; i17++) {
|
|
1723
|
+
let data50 = data49[i17];
|
|
1724
|
+
const _errs283 = errors;
|
|
1725
|
+
let valid76 = false;
|
|
1726
|
+
const _errs284 = errors;
|
|
1727
|
+
if (typeof data50 !== "string") {
|
|
1728
|
+
const err107 = createError(instancePath + "/actor/" + i17, "#/allOf/0/properties/actor/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1729
|
+
vErrors = pushError(vErrors, err107);
|
|
1730
|
+
errors++;
|
|
1731
|
+
}
|
|
1732
|
+
var _valid38 = _errs284 === errors;
|
|
1733
|
+
valid76 = valid76 || _valid38;
|
|
1734
|
+
const _errs286 = errors;
|
|
1735
|
+
if (!(keyword9(data50, { instancePath: instancePath + "/actor/" + i17, parentData: data49, parentDataProperty: i17, rootData, dynamicAnchors }))) {
|
|
1736
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1737
|
+
errors = vErrors.length;
|
|
1738
|
+
}
|
|
1739
|
+
var _valid38 = _errs286 === errors;
|
|
1740
|
+
valid76 = valid76 || _valid38;
|
|
1741
|
+
if (!valid76) {
|
|
1742
|
+
const err108 = createError(instancePath + "/actor/" + i17, "#/allOf/0/properties/actor/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
1743
|
+
vErrors = pushError(vErrors, err108);
|
|
1744
|
+
errors++;
|
|
1745
|
+
}
|
|
1746
|
+
else {
|
|
1747
|
+
errors = _errs283;
|
|
1748
|
+
if (vErrors !== null) {
|
|
1749
|
+
if (_errs283) {
|
|
1750
|
+
vErrors.length = _errs283;
|
|
1751
|
+
}
|
|
1752
|
+
else {
|
|
1753
|
+
vErrors = null;
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
else {
|
|
1760
|
+
const err109 = createError(instancePath + "/actor", "#/allOf/0/properties/actor/anyOf/2/type", "type", { type: "array" }, 2);
|
|
1761
|
+
vErrors = pushError(vErrors, err109);
|
|
1762
|
+
errors++;
|
|
1763
|
+
}
|
|
1764
|
+
var _valid37 = _errs280 === errors;
|
|
1765
|
+
valid73 = valid73 || _valid37;
|
|
1766
|
+
if (!valid73) {
|
|
1767
|
+
const err110 = createError(instancePath + "/actor", "#/allOf/0/properties/actor/anyOf", "anyOf", {}, 1);
|
|
1768
|
+
vErrors = pushError(vErrors, err110);
|
|
1769
|
+
errors++;
|
|
1770
|
+
}
|
|
1771
|
+
else {
|
|
1772
|
+
errors = _errs276;
|
|
1773
|
+
if (vErrors !== null) {
|
|
1774
|
+
if (_errs276) {
|
|
1775
|
+
vErrors.length = _errs276;
|
|
1776
|
+
}
|
|
1777
|
+
else {
|
|
1778
|
+
vErrors = null;
|
|
1779
|
+
}
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
if (data.result !== undefined) {
|
|
1784
|
+
let data51 = data.result;
|
|
1785
|
+
const _errs289 = errors;
|
|
1786
|
+
let valid77 = false;
|
|
1787
|
+
const _errs290 = errors;
|
|
1788
|
+
if (typeof data51 !== "string") {
|
|
1789
|
+
const err111 = createError(instancePath + "/result", "#/allOf/0/properties/result/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1790
|
+
vErrors = pushError(vErrors, err111);
|
|
1791
|
+
errors++;
|
|
1792
|
+
}
|
|
1793
|
+
var _valid39 = _errs290 === errors;
|
|
1794
|
+
valid77 = valid77 || _valid39;
|
|
1795
|
+
const _errs292 = errors;
|
|
1796
|
+
if (!(keyword9(data51, { instancePath: instancePath + "/result", parentData: data, parentDataProperty: "result", rootData, dynamicAnchors }))) {
|
|
1797
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1798
|
+
errors = vErrors.length;
|
|
1799
|
+
}
|
|
1800
|
+
var _valid39 = _errs292 === errors;
|
|
1801
|
+
valid77 = valid77 || _valid39;
|
|
1802
|
+
const _errs293 = errors;
|
|
1803
|
+
if (Array.isArray(data51)) {
|
|
1804
|
+
const len18 = data51.length;
|
|
1805
|
+
for (let i18 = 0; i18 < len18; i18++) {
|
|
1806
|
+
let data52 = data51[i18];
|
|
1807
|
+
const _errs296 = errors;
|
|
1808
|
+
let valid80 = false;
|
|
1809
|
+
const _errs297 = errors;
|
|
1810
|
+
if (typeof data52 !== "string") {
|
|
1811
|
+
const err112 = createError(instancePath + "/result/" + i18, "#/allOf/0/properties/result/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1812
|
+
vErrors = pushError(vErrors, err112);
|
|
1813
|
+
errors++;
|
|
1814
|
+
}
|
|
1815
|
+
var _valid40 = _errs297 === errors;
|
|
1816
|
+
valid80 = valid80 || _valid40;
|
|
1817
|
+
const _errs299 = errors;
|
|
1818
|
+
if (!(keyword9(data52, { instancePath: instancePath + "/result/" + i18, parentData: data51, parentDataProperty: i18, rootData, dynamicAnchors }))) {
|
|
1819
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1820
|
+
errors = vErrors.length;
|
|
1821
|
+
}
|
|
1822
|
+
var _valid40 = _errs299 === errors;
|
|
1823
|
+
valid80 = valid80 || _valid40;
|
|
1824
|
+
if (!valid80) {
|
|
1825
|
+
const err113 = createError(instancePath + "/result/" + i18, "#/allOf/0/properties/result/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
1826
|
+
vErrors = pushError(vErrors, err113);
|
|
1827
|
+
errors++;
|
|
1828
|
+
}
|
|
1829
|
+
else {
|
|
1830
|
+
errors = _errs296;
|
|
1831
|
+
if (vErrors !== null) {
|
|
1832
|
+
if (_errs296) {
|
|
1833
|
+
vErrors.length = _errs296;
|
|
1834
|
+
}
|
|
1835
|
+
else {
|
|
1836
|
+
vErrors = null;
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
else {
|
|
1843
|
+
const err114 = createError(instancePath + "/result", "#/allOf/0/properties/result/anyOf/2/type", "type", { type: "array" }, 2);
|
|
1844
|
+
vErrors = pushError(vErrors, err114);
|
|
1845
|
+
errors++;
|
|
1846
|
+
}
|
|
1847
|
+
var _valid39 = _errs293 === errors;
|
|
1848
|
+
valid77 = valid77 || _valid39;
|
|
1849
|
+
if (!valid77) {
|
|
1850
|
+
const err115 = createError(instancePath + "/result", "#/allOf/0/properties/result/anyOf", "anyOf", {}, 1);
|
|
1851
|
+
vErrors = pushError(vErrors, err115);
|
|
1852
|
+
errors++;
|
|
1853
|
+
}
|
|
1854
|
+
else {
|
|
1855
|
+
errors = _errs289;
|
|
1856
|
+
if (vErrors !== null) {
|
|
1857
|
+
if (_errs289) {
|
|
1858
|
+
vErrors.length = _errs289;
|
|
1859
|
+
}
|
|
1860
|
+
else {
|
|
1861
|
+
vErrors = null;
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
if (data.origin !== undefined) {
|
|
1867
|
+
let data53 = data.origin;
|
|
1868
|
+
const _errs302 = errors;
|
|
1869
|
+
let valid81 = false;
|
|
1870
|
+
const _errs303 = errors;
|
|
1871
|
+
if (typeof data53 !== "string") {
|
|
1872
|
+
const err116 = createError(instancePath + "/origin", "#/allOf/0/properties/origin/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1873
|
+
vErrors = pushError(vErrors, err116);
|
|
1874
|
+
errors++;
|
|
1875
|
+
}
|
|
1876
|
+
var _valid41 = _errs303 === errors;
|
|
1877
|
+
valid81 = valid81 || _valid41;
|
|
1878
|
+
const _errs305 = errors;
|
|
1879
|
+
if (!(keyword9(data53, { instancePath: instancePath + "/origin", parentData: data, parentDataProperty: "origin", rootData, dynamicAnchors }))) {
|
|
1880
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1881
|
+
errors = vErrors.length;
|
|
1882
|
+
}
|
|
1883
|
+
var _valid41 = _errs305 === errors;
|
|
1884
|
+
valid81 = valid81 || _valid41;
|
|
1885
|
+
const _errs306 = errors;
|
|
1886
|
+
if (Array.isArray(data53)) {
|
|
1887
|
+
const len19 = data53.length;
|
|
1888
|
+
for (let i19 = 0; i19 < len19; i19++) {
|
|
1889
|
+
let data54 = data53[i19];
|
|
1890
|
+
const _errs309 = errors;
|
|
1891
|
+
let valid84 = false;
|
|
1892
|
+
const _errs310 = errors;
|
|
1893
|
+
if (typeof data54 !== "string") {
|
|
1894
|
+
const err117 = createError(instancePath + "/origin/" + i19, "#/allOf/0/properties/origin/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1895
|
+
vErrors = pushError(vErrors, err117);
|
|
1896
|
+
errors++;
|
|
1897
|
+
}
|
|
1898
|
+
var _valid42 = _errs310 === errors;
|
|
1899
|
+
valid84 = valid84 || _valid42;
|
|
1900
|
+
const _errs312 = errors;
|
|
1901
|
+
if (!(keyword9(data54, { instancePath: instancePath + "/origin/" + i19, parentData: data53, parentDataProperty: i19, rootData, dynamicAnchors }))) {
|
|
1902
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1903
|
+
errors = vErrors.length;
|
|
1904
|
+
}
|
|
1905
|
+
var _valid42 = _errs312 === errors;
|
|
1906
|
+
valid84 = valid84 || _valid42;
|
|
1907
|
+
if (!valid84) {
|
|
1908
|
+
const err118 = createError(instancePath + "/origin/" + i19, "#/allOf/0/properties/origin/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
1909
|
+
vErrors = pushError(vErrors, err118);
|
|
1910
|
+
errors++;
|
|
1911
|
+
}
|
|
1912
|
+
else {
|
|
1913
|
+
errors = _errs309;
|
|
1914
|
+
if (vErrors !== null) {
|
|
1915
|
+
if (_errs309) {
|
|
1916
|
+
vErrors.length = _errs309;
|
|
1917
|
+
}
|
|
1918
|
+
else {
|
|
1919
|
+
vErrors = null;
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
else {
|
|
1926
|
+
const err119 = createError(instancePath + "/origin", "#/allOf/0/properties/origin/anyOf/2/type", "type", { type: "array" }, 2);
|
|
1927
|
+
vErrors = pushError(vErrors, err119);
|
|
1928
|
+
errors++;
|
|
1929
|
+
}
|
|
1930
|
+
var _valid41 = _errs306 === errors;
|
|
1931
|
+
valid81 = valid81 || _valid41;
|
|
1932
|
+
if (!valid81) {
|
|
1933
|
+
const err120 = createError(instancePath + "/origin", "#/allOf/0/properties/origin/anyOf", "anyOf", {}, 1);
|
|
1934
|
+
vErrors = pushError(vErrors, err120);
|
|
1935
|
+
errors++;
|
|
1936
|
+
}
|
|
1937
|
+
else {
|
|
1938
|
+
errors = _errs302;
|
|
1939
|
+
if (vErrors !== null) {
|
|
1940
|
+
if (_errs302) {
|
|
1941
|
+
vErrors.length = _errs302;
|
|
1942
|
+
}
|
|
1943
|
+
else {
|
|
1944
|
+
vErrors = null;
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
if (data.instrument !== undefined) {
|
|
1950
|
+
let data55 = data.instrument;
|
|
1951
|
+
const _errs315 = errors;
|
|
1952
|
+
let valid85 = false;
|
|
1953
|
+
const _errs316 = errors;
|
|
1954
|
+
if (typeof data55 !== "string") {
|
|
1955
|
+
const err121 = createError(instancePath + "/instrument", "#/allOf/0/properties/instrument/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1956
|
+
vErrors = pushError(vErrors, err121);
|
|
1957
|
+
errors++;
|
|
1958
|
+
}
|
|
1959
|
+
var _valid43 = _errs316 === errors;
|
|
1960
|
+
valid85 = valid85 || _valid43;
|
|
1961
|
+
const _errs318 = errors;
|
|
1962
|
+
if (!(keyword9(data55, { instancePath: instancePath + "/instrument", parentData: data, parentDataProperty: "instrument", rootData, dynamicAnchors }))) {
|
|
1963
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1964
|
+
errors = vErrors.length;
|
|
1965
|
+
}
|
|
1966
|
+
var _valid43 = _errs318 === errors;
|
|
1967
|
+
valid85 = valid85 || _valid43;
|
|
1968
|
+
const _errs319 = errors;
|
|
1969
|
+
if (Array.isArray(data55)) {
|
|
1970
|
+
const len20 = data55.length;
|
|
1971
|
+
for (let i20 = 0; i20 < len20; i20++) {
|
|
1972
|
+
let data56 = data55[i20];
|
|
1973
|
+
const _errs322 = errors;
|
|
1974
|
+
let valid88 = false;
|
|
1975
|
+
const _errs323 = errors;
|
|
1976
|
+
if (typeof data56 !== "string") {
|
|
1977
|
+
const err122 = createError(instancePath + "/instrument/" + i20, "#/allOf/0/properties/instrument/anyOf/2/items/anyOf/0/type", "type", { type: "string" }, 0);
|
|
1978
|
+
vErrors = pushError(vErrors, err122);
|
|
1979
|
+
errors++;
|
|
1980
|
+
}
|
|
1981
|
+
var _valid44 = _errs323 === errors;
|
|
1982
|
+
valid88 = valid88 || _valid44;
|
|
1983
|
+
const _errs325 = errors;
|
|
1984
|
+
if (!(keyword9(data56, { instancePath: instancePath + "/instrument/" + i20, parentData: data55, parentDataProperty: i20, rootData, dynamicAnchors }))) {
|
|
1985
|
+
vErrors = vErrors === null ? keyword9.errors : vErrors.concat(keyword9.errors);
|
|
1986
|
+
errors = vErrors.length;
|
|
1987
|
+
}
|
|
1988
|
+
var _valid44 = _errs325 === errors;
|
|
1989
|
+
valid88 = valid88 || _valid44;
|
|
1990
|
+
if (!valid88) {
|
|
1991
|
+
const err123 = createError(instancePath + "/instrument/" + i20, "#/allOf/0/properties/instrument/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
1992
|
+
vErrors = pushError(vErrors, err123);
|
|
1993
|
+
errors++;
|
|
1994
|
+
}
|
|
1995
|
+
else {
|
|
1996
|
+
errors = _errs322;
|
|
1997
|
+
if (vErrors !== null) {
|
|
1998
|
+
if (_errs322) {
|
|
1999
|
+
vErrors.length = _errs322;
|
|
2000
|
+
}
|
|
2001
|
+
else {
|
|
2002
|
+
vErrors = null;
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
else {
|
|
2009
|
+
const err124 = createError(instancePath + "/instrument", "#/allOf/0/properties/instrument/anyOf/2/type", "type", { type: "array" }, 2);
|
|
2010
|
+
vErrors = pushError(vErrors, err124);
|
|
2011
|
+
errors++;
|
|
2012
|
+
}
|
|
2013
|
+
var _valid43 = _errs319 === errors;
|
|
2014
|
+
valid85 = valid85 || _valid43;
|
|
2015
|
+
if (!valid85) {
|
|
2016
|
+
const err125 = createError(instancePath + "/instrument", "#/allOf/0/properties/instrument/anyOf", "anyOf", {}, 1);
|
|
2017
|
+
vErrors = pushError(vErrors, err125);
|
|
2018
|
+
errors++;
|
|
2019
|
+
}
|
|
2020
|
+
else {
|
|
2021
|
+
errors = _errs315;
|
|
2022
|
+
if (vErrors !== null) {
|
|
2023
|
+
if (_errs315) {
|
|
2024
|
+
vErrors.length = _errs315;
|
|
2025
|
+
}
|
|
2026
|
+
else {
|
|
2027
|
+
vErrors = null;
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
else {
|
|
2034
|
+
const err126 = createError(instancePath, "#/allOf/0/type", "type", { type: "object" }, 3);
|
|
2035
|
+
vErrors = pushError(vErrors, err126);
|
|
2036
|
+
errors++;
|
|
2037
|
+
}
|
|
2038
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2039
|
+
if (data.object === undefined) {
|
|
2040
|
+
const err127 = createError(instancePath, "#/required", "required", { missingProperty: "object" }, "must have required property '" + "object" + "'");
|
|
2041
|
+
vErrors = pushError(vErrors, err127);
|
|
2042
|
+
errors++;
|
|
2043
|
+
}
|
|
2044
|
+
if (data.object !== undefined) {
|
|
2045
|
+
let data57 = data.object;
|
|
2046
|
+
const _errs327 = errors;
|
|
2047
|
+
let valid90 = false;
|
|
2048
|
+
const _errs328 = errors;
|
|
2049
|
+
if (data57 && typeof data57 == "object" && !Array.isArray(data57)) {
|
|
2050
|
+
if (data57.type === undefined) {
|
|
2051
|
+
const err128 = createError(instancePath + "/object", "#/properties/object/anyOf/0/required", "required", { missingProperty: "type" }, "must have required property '" + "type" + "'");
|
|
2052
|
+
vErrors = pushError(vErrors, err128);
|
|
2053
|
+
errors++;
|
|
2054
|
+
}
|
|
2055
|
+
if (data57["@context"] === undefined) {
|
|
2056
|
+
const err129 = createError(instancePath + "/object", "#/properties/object/anyOf/0/required", "required", { missingProperty: "@context" }, "must have required property '" + "@context" + "'");
|
|
2057
|
+
vErrors = pushError(vErrors, err129);
|
|
2058
|
+
errors++;
|
|
2059
|
+
}
|
|
2060
|
+
if (data57.type !== undefined) {
|
|
2061
|
+
let data58 = data57.type;
|
|
2062
|
+
const _errs332 = errors;
|
|
2063
|
+
let valid92 = false;
|
|
2064
|
+
const _errs333 = errors;
|
|
2065
|
+
if (typeof data58 !== "string") {
|
|
2066
|
+
const err130 = createError(instancePath + "/object/type", "#/properties/object/anyOf/0/properties/type/anyOf/0/type", "type", { type: "string" }, 0);
|
|
2067
|
+
vErrors = pushError(vErrors, err130);
|
|
2068
|
+
errors++;
|
|
2069
|
+
}
|
|
2070
|
+
var _valid46 = _errs333 === errors;
|
|
2071
|
+
valid92 = valid92 || _valid46;
|
|
2072
|
+
const _errs335 = errors;
|
|
2073
|
+
if (Array.isArray(data58)) {
|
|
2074
|
+
const len21 = data58.length;
|
|
2075
|
+
for (let i21 = 0; i21 < len21; i21++) {
|
|
2076
|
+
if (typeof data58[i21] !== "string") {
|
|
2077
|
+
const err131 = createError(instancePath + "/object/type/" + i21, "#/properties/object/anyOf/0/properties/type/anyOf/1/items/type", "type", { type: "string" }, 0);
|
|
2078
|
+
vErrors = pushError(vErrors, err131);
|
|
2079
|
+
errors++;
|
|
2080
|
+
}
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
else {
|
|
2084
|
+
const err132 = createError(instancePath + "/object/type", "#/properties/object/anyOf/0/properties/type/anyOf/1/type", "type", { type: "array" }, 2);
|
|
2085
|
+
vErrors = pushError(vErrors, err132);
|
|
2086
|
+
errors++;
|
|
2087
|
+
}
|
|
2088
|
+
var _valid46 = _errs335 === errors;
|
|
2089
|
+
valid92 = valid92 || _valid46;
|
|
2090
|
+
if (!valid92) {
|
|
2091
|
+
const err133 = createError(instancePath + "/object/type", "#/properties/object/anyOf/0/properties/type/anyOf", "anyOf", {}, 1);
|
|
2092
|
+
vErrors = pushError(vErrors, err133);
|
|
2093
|
+
errors++;
|
|
2094
|
+
}
|
|
2095
|
+
else {
|
|
2096
|
+
errors = _errs332;
|
|
2097
|
+
if (vErrors !== null) {
|
|
2098
|
+
if (_errs332) {
|
|
2099
|
+
vErrors.length = _errs332;
|
|
2100
|
+
}
|
|
2101
|
+
else {
|
|
2102
|
+
vErrors = null;
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
if (data57["@context"] !== undefined) {
|
|
2108
|
+
if (!(keyword50(data57["@context"], { instancePath: instancePath + "/object/@context", parentData: data57, parentDataProperty: "@context", rootData, dynamicAnchors }))) {
|
|
2109
|
+
vErrors = vErrors === null ? keyword50.errors : vErrors.concat(keyword50.errors);
|
|
2110
|
+
errors = vErrors.length;
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
else {
|
|
2115
|
+
const err134 = createError(instancePath + "/object", "#/properties/object/anyOf/0/type", "type", { type: "object" }, 3);
|
|
2116
|
+
vErrors = pushError(vErrors, err134);
|
|
2117
|
+
errors++;
|
|
2118
|
+
}
|
|
2119
|
+
var _valid45 = _errs328 === errors;
|
|
2120
|
+
valid90 = valid90 || _valid45;
|
|
2121
|
+
if (_valid45) {
|
|
2122
|
+
var props44 = {};
|
|
2123
|
+
props44.type = true;
|
|
2124
|
+
props44["@context"] = true;
|
|
2125
|
+
}
|
|
2126
|
+
const _errs340 = errors;
|
|
2127
|
+
if (Array.isArray(data57)) {
|
|
2128
|
+
const len22 = data57.length;
|
|
2129
|
+
for (let i22 = 0; i22 < len22; i22++) {
|
|
2130
|
+
let data61 = data57[i22];
|
|
2131
|
+
if (data61 && typeof data61 == "object" && !Array.isArray(data61)) {
|
|
2132
|
+
if (data61.type === undefined) {
|
|
2133
|
+
const err135 = createError(instancePath + "/object/" + i22, "#/properties/object/anyOf/1/items/required", "required", { missingProperty: "type" }, "must have required property '" + "type" + "'");
|
|
2134
|
+
vErrors = pushError(vErrors, err135);
|
|
2135
|
+
errors++;
|
|
2136
|
+
}
|
|
2137
|
+
if (data61["@context"] === undefined) {
|
|
2138
|
+
const err136 = createError(instancePath + "/object/" + i22, "#/properties/object/anyOf/1/items/required", "required", { missingProperty: "@context" }, "must have required property '" + "@context" + "'");
|
|
2139
|
+
vErrors = pushError(vErrors, err136);
|
|
2140
|
+
errors++;
|
|
2141
|
+
}
|
|
2142
|
+
if (data61.type !== undefined) {
|
|
2143
|
+
let data62 = data61.type;
|
|
2144
|
+
const _errs346 = errors;
|
|
2145
|
+
let valid98 = false;
|
|
2146
|
+
const _errs347 = errors;
|
|
2147
|
+
if (typeof data62 !== "string") {
|
|
2148
|
+
const err137 = createError(instancePath + "/object/" + i22 + "/type", "#/properties/object/anyOf/1/items/properties/type/anyOf/0/type", "type", { type: "string" }, 0);
|
|
2149
|
+
vErrors = pushError(vErrors, err137);
|
|
2150
|
+
errors++;
|
|
2151
|
+
}
|
|
2152
|
+
var _valid47 = _errs347 === errors;
|
|
2153
|
+
valid98 = valid98 || _valid47;
|
|
2154
|
+
const _errs349 = errors;
|
|
2155
|
+
if (Array.isArray(data62)) {
|
|
2156
|
+
const len23 = data62.length;
|
|
2157
|
+
for (let i23 = 0; i23 < len23; i23++) {
|
|
2158
|
+
if (typeof data62[i23] !== "string") {
|
|
2159
|
+
const err138 = createError(instancePath + "/object/" + i22 + "/type/" + i23, "#/properties/object/anyOf/1/items/properties/type/anyOf/1/items/type", "type", { type: "string" }, 0);
|
|
2160
|
+
vErrors = pushError(vErrors, err138);
|
|
2161
|
+
errors++;
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
else {
|
|
2166
|
+
const err139 = createError(instancePath + "/object/" + i22 + "/type", "#/properties/object/anyOf/1/items/properties/type/anyOf/1/type", "type", { type: "array" }, 2);
|
|
2167
|
+
vErrors = pushError(vErrors, err139);
|
|
2168
|
+
errors++;
|
|
2169
|
+
}
|
|
2170
|
+
var _valid47 = _errs349 === errors;
|
|
2171
|
+
valid98 = valid98 || _valid47;
|
|
2172
|
+
if (!valid98) {
|
|
2173
|
+
const err140 = createError(instancePath + "/object/" + i22 + "/type", "#/properties/object/anyOf/1/items/properties/type/anyOf", "anyOf", {}, 1);
|
|
2174
|
+
vErrors = pushError(vErrors, err140);
|
|
2175
|
+
errors++;
|
|
2176
|
+
}
|
|
2177
|
+
else {
|
|
2178
|
+
errors = _errs346;
|
|
2179
|
+
if (vErrors !== null) {
|
|
2180
|
+
if (_errs346) {
|
|
2181
|
+
vErrors.length = _errs346;
|
|
2182
|
+
}
|
|
2183
|
+
else {
|
|
2184
|
+
vErrors = null;
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
if (data61["@context"] !== undefined) {
|
|
2190
|
+
if (!(keyword50(data61["@context"], { instancePath: instancePath + "/object/" + i22 + "/@context", parentData: data61, parentDataProperty: "@context", rootData, dynamicAnchors }))) {
|
|
2191
|
+
vErrors = vErrors === null ? keyword50.errors : vErrors.concat(keyword50.errors);
|
|
2192
|
+
errors = vErrors.length;
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
else {
|
|
2197
|
+
const err141 = createError(instancePath + "/object/" + i22, "#/properties/object/anyOf/1/items/type", "type", { type: "object" }, 3);
|
|
2198
|
+
vErrors = pushError(vErrors, err141);
|
|
2199
|
+
errors++;
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
else {
|
|
2204
|
+
const err142 = createError(instancePath + "/object", "#/properties/object/anyOf/1/type", "type", { type: "array" }, 2);
|
|
2205
|
+
vErrors = pushError(vErrors, err142);
|
|
2206
|
+
errors++;
|
|
2207
|
+
}
|
|
2208
|
+
var _valid45 = _errs340 === errors;
|
|
2209
|
+
valid90 = valid90 || _valid45;
|
|
2210
|
+
if (!valid90) {
|
|
2211
|
+
const err143 = createError(instancePath + "/object", "#/properties/object/anyOf", "anyOf", {}, 1);
|
|
2212
|
+
vErrors = pushError(vErrors, err143);
|
|
2213
|
+
errors++;
|
|
2214
|
+
}
|
|
2215
|
+
else {
|
|
2216
|
+
errors = _errs327;
|
|
2217
|
+
if (vErrors !== null) {
|
|
2218
|
+
if (_errs327) {
|
|
2219
|
+
vErrors.length = _errs327;
|
|
2220
|
+
}
|
|
2221
|
+
else {
|
|
2222
|
+
vErrors = null;
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
if (data.target !== undefined) {
|
|
2228
|
+
let data65 = data.target;
|
|
2229
|
+
if (data65 && typeof data65 == "object" && !Array.isArray(data65)) {
|
|
2230
|
+
if (data65.type === undefined) {
|
|
2231
|
+
const err144 = createError(instancePath + "/target", "#/properties/target/required", "required", { missingProperty: "type" }, "must have required property '" + "type" + "'");
|
|
2232
|
+
vErrors = pushError(vErrors, err144);
|
|
2233
|
+
errors++;
|
|
2234
|
+
}
|
|
2235
|
+
if (data65["@context"] === undefined) {
|
|
2236
|
+
const err145 = createError(instancePath + "/target", "#/properties/target/required", "required", { missingProperty: "@context" }, "must have required property '" + "@context" + "'");
|
|
2237
|
+
vErrors = pushError(vErrors, err145);
|
|
2238
|
+
errors++;
|
|
2239
|
+
}
|
|
2240
|
+
if (data65.type !== undefined) {
|
|
2241
|
+
let data66 = data65.type;
|
|
2242
|
+
const _errs358 = errors;
|
|
2243
|
+
let valid102 = false;
|
|
2244
|
+
const _errs359 = errors;
|
|
2245
|
+
if (typeof data66 !== "string") {
|
|
2246
|
+
const err146 = createError(instancePath + "/target/type", "#/properties/target/properties/type/anyOf/0/type", "type", { type: "string" }, 0);
|
|
2247
|
+
vErrors = pushError(vErrors, err146);
|
|
2248
|
+
errors++;
|
|
2249
|
+
}
|
|
2250
|
+
var _valid48 = _errs359 === errors;
|
|
2251
|
+
valid102 = valid102 || _valid48;
|
|
2252
|
+
const _errs361 = errors;
|
|
2253
|
+
if (Array.isArray(data66)) {
|
|
2254
|
+
const len24 = data66.length;
|
|
2255
|
+
for (let i24 = 0; i24 < len24; i24++) {
|
|
2256
|
+
if (typeof data66[i24] !== "string") {
|
|
2257
|
+
const err147 = createError(instancePath + "/target/type/" + i24, "#/properties/target/properties/type/anyOf/1/items/type", "type", { type: "string" }, 0);
|
|
2258
|
+
vErrors = pushError(vErrors, err147);
|
|
2259
|
+
errors++;
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
else {
|
|
2264
|
+
const err148 = createError(instancePath + "/target/type", "#/properties/target/properties/type/anyOf/1/type", "type", { type: "array" }, 2);
|
|
2265
|
+
vErrors = pushError(vErrors, err148);
|
|
2266
|
+
errors++;
|
|
2267
|
+
}
|
|
2268
|
+
var _valid48 = _errs361 === errors;
|
|
2269
|
+
valid102 = valid102 || _valid48;
|
|
2270
|
+
if (!valid102) {
|
|
2271
|
+
const err149 = createError(instancePath + "/target/type", "#/properties/target/properties/type/anyOf", "anyOf", {}, 1);
|
|
2272
|
+
vErrors = pushError(vErrors, err149);
|
|
2273
|
+
errors++;
|
|
2274
|
+
}
|
|
2275
|
+
else {
|
|
2276
|
+
errors = _errs358;
|
|
2277
|
+
if (vErrors !== null) {
|
|
2278
|
+
if (_errs358) {
|
|
2279
|
+
vErrors.length = _errs358;
|
|
2280
|
+
}
|
|
2281
|
+
else {
|
|
2282
|
+
vErrors = null;
|
|
2283
|
+
}
|
|
2284
|
+
}
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
if (data65["@context"] !== undefined) {
|
|
2288
|
+
if (!(keyword50(data65["@context"], { instancePath: instancePath + "/target/@context", parentData: data65, parentDataProperty: "@context", rootData, dynamicAnchors }))) {
|
|
2289
|
+
vErrors = vErrors === null ? keyword50.errors : vErrors.concat(keyword50.errors);
|
|
2290
|
+
errors = vErrors.length;
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
}
|
|
2294
|
+
else {
|
|
2295
|
+
const err150 = createError(instancePath + "/target", "#/properties/target/type", "type", { type: "object" }, 3);
|
|
2296
|
+
vErrors = pushError(vErrors, err150);
|
|
2297
|
+
errors++;
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
else {
|
|
2302
|
+
const err151 = createError(instancePath, "#/type", "type", { type: "object" }, 3);
|
|
2303
|
+
vErrors = pushError(vErrors, err151);
|
|
2304
|
+
errors++;
|
|
2305
|
+
}
|
|
2306
|
+
validate52.errors = vErrors;
|
|
2307
|
+
return errors === 0;
|
|
2308
|
+
}
|
|
2309
|
+
validate52.evaluated = { "props": { "object": true, "target": true, "@context": true, "type": true, "id": true, "name": true, "nameMap": true, "summary": true, "summaryMap": true, "content": true, "contentMap": true, "url": true, "image": true, "icon": true, "published": true, "updated": true, "startTime": true, "endTime": true, "duration": true, "generator": true, "attachment": true, "attributedTo": true, "audience": true, "context": true, "location": true, "tag": true, "inReplyTo": true, "replies": true, "preview": true, "to": true, "bto": true, "cc": true, "bcc": true, "mediaType": true, "actor": true, "result": true, "origin": true, "instrument": true }, "dynamicProps": false, "dynamicItems": false };
|
|
2310
|
+
//# sourceMappingURL=validators.js.map
|