@xube/kit-aws-data-schema 0.0.91 → 0.0.92
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/decode/aggregate.d.ts +8 -4
- package/dist/decode/reading.d.ts +7 -4
- package/dist/generated/validators/aggregateMetadata.js +7 -14
- package/dist/generated/validators/aggregateMetadataTypes.js +42 -63
- package/dist/generated/validators/aggregateMetadataV1.js +42 -63
- package/dist/generated/validators/dataMessage.js +19 -26
- package/dist/generated/validators/deviceReadingMetadataV1.js +10 -17
- package/dist/generated/validators/deviceReadingV1.js +23 -37
- package/dist/generated/validators/readingMetadataV1.js +10 -17
- package/dist/generated/validators/readingV1.js +10 -1
- package/package.json +8 -8
- package/src/generated/validators/aggregateMetadata.js +1 -1
- package/src/generated/validators/aggregateMetadataTypes.js +1 -1
- package/src/generated/validators/aggregateMetadataV1.js +1 -1
- package/src/generated/validators/dataMessage.js +1 -1
- package/src/generated/validators/deviceReadingMetadataV1.js +1 -1
- package/src/generated/validators/deviceReadingV1.js +1 -1
- package/src/generated/validators/readingMetadataV1.js +1 -1
- package/src/generated/validators/readingV1.js +1 -1
|
@@ -7,7 +7,9 @@ export declare const AggregateMetadataSchema: z.ZodObject<{
|
|
|
7
7
|
v: number;
|
|
8
8
|
}>;
|
|
9
9
|
export declare const AggregateMetaDataV1Version: number;
|
|
10
|
-
export declare const AggregateMetadataV1Schema: z.ZodObject<{
|
|
10
|
+
export declare const AggregateMetadataV1Schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
11
|
+
v: z.ZodNumber;
|
|
12
|
+
}, {
|
|
11
13
|
v: z.ZodLiteral<number>;
|
|
12
14
|
s: z.ZodNumber;
|
|
13
15
|
m: z.ZodArray<z.ZodObject<{
|
|
@@ -35,7 +37,7 @@ export declare const AggregateMetadataV1Schema: z.ZodObject<{
|
|
|
35
37
|
};
|
|
36
38
|
s?: number | undefined;
|
|
37
39
|
}>, "many">;
|
|
38
|
-
}
|
|
40
|
+
}>, "strip", z.ZodTypeAny, {
|
|
39
41
|
s: number;
|
|
40
42
|
m: {
|
|
41
43
|
m: {
|
|
@@ -56,7 +58,9 @@ export declare const AggregateMetadataV1Schema: z.ZodObject<{
|
|
|
56
58
|
}[];
|
|
57
59
|
v: number;
|
|
58
60
|
}>;
|
|
59
|
-
export declare const AggregateMetadataSchemas: z.ZodObject<{
|
|
61
|
+
export declare const AggregateMetadataSchemas: z.ZodObject<z.objectUtil.extendShape<{
|
|
62
|
+
v: z.ZodNumber;
|
|
63
|
+
}, {
|
|
60
64
|
v: z.ZodLiteral<number>;
|
|
61
65
|
s: z.ZodNumber;
|
|
62
66
|
m: z.ZodArray<z.ZodObject<{
|
|
@@ -84,7 +88,7 @@ export declare const AggregateMetadataSchemas: z.ZodObject<{
|
|
|
84
88
|
};
|
|
85
89
|
s?: number | undefined;
|
|
86
90
|
}>, "many">;
|
|
87
|
-
}
|
|
91
|
+
}>, "strip", z.ZodTypeAny, {
|
|
88
92
|
s: number;
|
|
89
93
|
m: {
|
|
90
94
|
m: {
|
package/dist/decode/reading.d.ts
CHANGED
|
@@ -70,25 +70,28 @@ export declare const ReadingMetadataV1Schema: z.ZodObject<{
|
|
|
70
70
|
s: number;
|
|
71
71
|
us: number;
|
|
72
72
|
}>;
|
|
73
|
-
export declare const ReadingV1Schema: z.ZodObject<{
|
|
73
|
+
export declare const ReadingV1Schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
74
74
|
data: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>]>;
|
|
75
75
|
component: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, {
|
|
76
77
|
s: z.ZodNumber;
|
|
77
78
|
us: z.ZodOptional<z.ZodNumber>;
|
|
78
79
|
type: z.ZodString;
|
|
79
80
|
id: z.ZodString;
|
|
80
|
-
}
|
|
81
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
81
82
|
data: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>]>;
|
|
82
83
|
component: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, {
|
|
83
85
|
s: z.ZodNumber;
|
|
84
86
|
us: z.ZodOptional<z.ZodNumber>;
|
|
85
87
|
type: z.ZodString;
|
|
86
88
|
id: z.ZodString;
|
|
87
|
-
}
|
|
89
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
88
90
|
data: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>]>;
|
|
89
91
|
component: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, {
|
|
90
93
|
s: z.ZodNumber;
|
|
91
94
|
us: z.ZodOptional<z.ZodNumber>;
|
|
92
95
|
type: z.ZodString;
|
|
93
96
|
id: z.ZodString;
|
|
94
|
-
}
|
|
97
|
+
}>, z.ZodTypeAny, "passthrough">>;
|
|
@@ -18,37 +18,30 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18
18
|
}
|
|
19
19
|
for (const key0 in data) {
|
|
20
20
|
if (!(key0 === "v")) {
|
|
21
|
-
|
|
22
|
-
if (vErrors === null) {
|
|
23
|
-
vErrors = [err1];
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
vErrors.push(err1);
|
|
27
|
-
}
|
|
28
|
-
errors++;
|
|
21
|
+
delete data[key0];
|
|
29
22
|
}
|
|
30
23
|
}
|
|
31
24
|
if (data.v !== undefined) {
|
|
32
25
|
let data0 = data.v;
|
|
33
26
|
if (!((typeof data0 == "number") && (isFinite(data0)))) {
|
|
34
|
-
const
|
|
27
|
+
const err1 = { instancePath: instancePath + "/v", schemaPath: "#/definitions/aggregatemetadataJsonSchema/properties/v/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
35
28
|
if (vErrors === null) {
|
|
36
|
-
vErrors = [
|
|
29
|
+
vErrors = [err1];
|
|
37
30
|
}
|
|
38
31
|
else {
|
|
39
|
-
vErrors.push(
|
|
32
|
+
vErrors.push(err1);
|
|
40
33
|
}
|
|
41
34
|
errors++;
|
|
42
35
|
}
|
|
43
36
|
}
|
|
44
37
|
}
|
|
45
38
|
else {
|
|
46
|
-
const
|
|
39
|
+
const err2 = { instancePath, schemaPath: "#/definitions/aggregatemetadataJsonSchema/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
47
40
|
if (vErrors === null) {
|
|
48
|
-
vErrors = [
|
|
41
|
+
vErrors = [err2];
|
|
49
42
|
}
|
|
50
43
|
else {
|
|
51
|
-
vErrors.push(
|
|
44
|
+
vErrors.push(err2);
|
|
52
45
|
}
|
|
53
46
|
errors++;
|
|
54
47
|
} validate10.errors = vErrors; return errors === 0; }
|
|
@@ -38,35 +38,28 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
38
38
|
}
|
|
39
39
|
for (const key0 in data) {
|
|
40
40
|
if (!(((key0 === "v") || (key0 === "s")) || (key0 === "m"))) {
|
|
41
|
-
|
|
42
|
-
if (vErrors === null) {
|
|
43
|
-
vErrors = [err3];
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
vErrors.push(err3);
|
|
47
|
-
}
|
|
48
|
-
errors++;
|
|
41
|
+
delete data[key0];
|
|
49
42
|
}
|
|
50
43
|
}
|
|
51
44
|
if (data.v !== undefined) {
|
|
52
45
|
let data0 = data.v;
|
|
53
46
|
if (!((typeof data0 == "number") && (isFinite(data0)))) {
|
|
54
|
-
const
|
|
47
|
+
const err3 = { instancePath: instancePath + "/v", schemaPath: "#/definitions/aggregatemetadatatypesJsonSchema/properties/v/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
55
48
|
if (vErrors === null) {
|
|
56
|
-
vErrors = [
|
|
49
|
+
vErrors = [err3];
|
|
57
50
|
}
|
|
58
51
|
else {
|
|
59
|
-
vErrors.push(
|
|
52
|
+
vErrors.push(err3);
|
|
60
53
|
}
|
|
61
54
|
errors++;
|
|
62
55
|
}
|
|
63
56
|
if (1 !== data0) {
|
|
64
|
-
const
|
|
57
|
+
const err4 = { instancePath: instancePath + "/v", schemaPath: "#/definitions/aggregatemetadatatypesJsonSchema/properties/v/const", keyword: "const", params: { allowedValue: 1 }, message: "must be equal to constant" };
|
|
65
58
|
if (vErrors === null) {
|
|
66
|
-
vErrors = [
|
|
59
|
+
vErrors = [err4];
|
|
67
60
|
}
|
|
68
61
|
else {
|
|
69
|
-
vErrors.push(
|
|
62
|
+
vErrors.push(err4);
|
|
70
63
|
}
|
|
71
64
|
errors++;
|
|
72
65
|
}
|
|
@@ -74,12 +67,12 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
74
67
|
if (data.s !== undefined) {
|
|
75
68
|
let data1 = data.s;
|
|
76
69
|
if (!((typeof data1 == "number") && (isFinite(data1)))) {
|
|
77
|
-
const
|
|
70
|
+
const err5 = { instancePath: instancePath + "/s", schemaPath: "#/definitions/aggregatemetadatatypesJsonSchema/properties/s/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
78
71
|
if (vErrors === null) {
|
|
79
|
-
vErrors = [
|
|
72
|
+
vErrors = [err5];
|
|
80
73
|
}
|
|
81
74
|
else {
|
|
82
|
-
vErrors.push(
|
|
75
|
+
vErrors.push(err5);
|
|
83
76
|
}
|
|
84
77
|
errors++;
|
|
85
78
|
}
|
|
@@ -92,71 +85,57 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
92
85
|
let data3 = data2[i0];
|
|
93
86
|
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
|
|
94
87
|
if (data3.m === undefined) {
|
|
95
|
-
const
|
|
88
|
+
const err6 = { instancePath: instancePath + "/m/" + i0, schemaPath: "#/definitions/aggregatemetadatatypesJsonSchema/properties/m/items/required", keyword: "required", params: { missingProperty: "m" }, message: "must have required property '" + "m" + "'" };
|
|
96
89
|
if (vErrors === null) {
|
|
97
|
-
vErrors = [
|
|
90
|
+
vErrors = [err6];
|
|
98
91
|
}
|
|
99
92
|
else {
|
|
100
|
-
vErrors.push(
|
|
93
|
+
vErrors.push(err6);
|
|
101
94
|
}
|
|
102
95
|
errors++;
|
|
103
96
|
}
|
|
104
97
|
for (const key1 in data3) {
|
|
105
98
|
if (!((key1 === "m") || (key1 === "s"))) {
|
|
106
|
-
|
|
107
|
-
if (vErrors === null) {
|
|
108
|
-
vErrors = [err8];
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
vErrors.push(err8);
|
|
112
|
-
}
|
|
113
|
-
errors++;
|
|
99
|
+
delete data3[key1];
|
|
114
100
|
}
|
|
115
101
|
}
|
|
116
102
|
if (data3.m !== undefined) {
|
|
117
103
|
let data4 = data3.m;
|
|
118
104
|
if (data4 && typeof data4 == "object" && !Array.isArray(data4)) {
|
|
119
105
|
if (data4.s === undefined) {
|
|
120
|
-
const
|
|
106
|
+
const err7 = { instancePath: instancePath + "/m/" + i0 + "/m", schemaPath: "#/definitions/aggregatemetadatatypesJsonSchema/properties/m/items/properties/m/required", keyword: "required", params: { missingProperty: "s" }, message: "must have required property '" + "s" + "'" };
|
|
121
107
|
if (vErrors === null) {
|
|
122
|
-
vErrors = [
|
|
108
|
+
vErrors = [err7];
|
|
123
109
|
}
|
|
124
110
|
else {
|
|
125
|
-
vErrors.push(
|
|
111
|
+
vErrors.push(err7);
|
|
126
112
|
}
|
|
127
113
|
errors++;
|
|
128
114
|
}
|
|
129
115
|
if (data4.us === undefined) {
|
|
130
|
-
const
|
|
116
|
+
const err8 = { instancePath: instancePath + "/m/" + i0 + "/m", schemaPath: "#/definitions/aggregatemetadatatypesJsonSchema/properties/m/items/properties/m/required", keyword: "required", params: { missingProperty: "us" }, message: "must have required property '" + "us" + "'" };
|
|
131
117
|
if (vErrors === null) {
|
|
132
|
-
vErrors = [
|
|
118
|
+
vErrors = [err8];
|
|
133
119
|
}
|
|
134
120
|
else {
|
|
135
|
-
vErrors.push(
|
|
121
|
+
vErrors.push(err8);
|
|
136
122
|
}
|
|
137
123
|
errors++;
|
|
138
124
|
}
|
|
139
125
|
for (const key2 in data4) {
|
|
140
126
|
if (!((key2 === "s") || (key2 === "us"))) {
|
|
141
|
-
|
|
142
|
-
if (vErrors === null) {
|
|
143
|
-
vErrors = [err11];
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
vErrors.push(err11);
|
|
147
|
-
}
|
|
148
|
-
errors++;
|
|
127
|
+
delete data4[key2];
|
|
149
128
|
}
|
|
150
129
|
}
|
|
151
130
|
if (data4.s !== undefined) {
|
|
152
131
|
let data5 = data4.s;
|
|
153
132
|
if (!((typeof data5 == "number") && (isFinite(data5)))) {
|
|
154
|
-
const
|
|
133
|
+
const err9 = { instancePath: instancePath + "/m/" + i0 + "/m/s", schemaPath: "#/definitions/aggregatemetadatatypesJsonSchema/properties/m/items/properties/m/properties/s/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
155
134
|
if (vErrors === null) {
|
|
156
|
-
vErrors = [
|
|
135
|
+
vErrors = [err9];
|
|
157
136
|
}
|
|
158
137
|
else {
|
|
159
|
-
vErrors.push(
|
|
138
|
+
vErrors.push(err9);
|
|
160
139
|
}
|
|
161
140
|
errors++;
|
|
162
141
|
}
|
|
@@ -164,24 +143,24 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
164
143
|
if (data4.us !== undefined) {
|
|
165
144
|
let data6 = data4.us;
|
|
166
145
|
if (!((typeof data6 == "number") && (isFinite(data6)))) {
|
|
167
|
-
const
|
|
146
|
+
const err10 = { instancePath: instancePath + "/m/" + i0 + "/m/us", schemaPath: "#/definitions/aggregatemetadatatypesJsonSchema/properties/m/items/properties/m/properties/us/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
168
147
|
if (vErrors === null) {
|
|
169
|
-
vErrors = [
|
|
148
|
+
vErrors = [err10];
|
|
170
149
|
}
|
|
171
150
|
else {
|
|
172
|
-
vErrors.push(
|
|
151
|
+
vErrors.push(err10);
|
|
173
152
|
}
|
|
174
153
|
errors++;
|
|
175
154
|
}
|
|
176
155
|
}
|
|
177
156
|
}
|
|
178
157
|
else {
|
|
179
|
-
const
|
|
158
|
+
const err11 = { instancePath: instancePath + "/m/" + i0 + "/m", schemaPath: "#/definitions/aggregatemetadatatypesJsonSchema/properties/m/items/properties/m/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
180
159
|
if (vErrors === null) {
|
|
181
|
-
vErrors = [
|
|
160
|
+
vErrors = [err11];
|
|
182
161
|
}
|
|
183
162
|
else {
|
|
184
|
-
vErrors.push(
|
|
163
|
+
vErrors.push(err11);
|
|
185
164
|
}
|
|
186
165
|
errors++;
|
|
187
166
|
}
|
|
@@ -189,48 +168,48 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
189
168
|
if (data3.s !== undefined) {
|
|
190
169
|
let data7 = data3.s;
|
|
191
170
|
if (!((typeof data7 == "number") && (isFinite(data7)))) {
|
|
192
|
-
const
|
|
171
|
+
const err12 = { instancePath: instancePath + "/m/" + i0 + "/s", schemaPath: "#/definitions/aggregatemetadatatypesJsonSchema/properties/m/items/properties/s/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
193
172
|
if (vErrors === null) {
|
|
194
|
-
vErrors = [
|
|
173
|
+
vErrors = [err12];
|
|
195
174
|
}
|
|
196
175
|
else {
|
|
197
|
-
vErrors.push(
|
|
176
|
+
vErrors.push(err12);
|
|
198
177
|
}
|
|
199
178
|
errors++;
|
|
200
179
|
}
|
|
201
180
|
}
|
|
202
181
|
}
|
|
203
182
|
else {
|
|
204
|
-
const
|
|
183
|
+
const err13 = { instancePath: instancePath + "/m/" + i0, schemaPath: "#/definitions/aggregatemetadatatypesJsonSchema/properties/m/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
205
184
|
if (vErrors === null) {
|
|
206
|
-
vErrors = [
|
|
185
|
+
vErrors = [err13];
|
|
207
186
|
}
|
|
208
187
|
else {
|
|
209
|
-
vErrors.push(
|
|
188
|
+
vErrors.push(err13);
|
|
210
189
|
}
|
|
211
190
|
errors++;
|
|
212
191
|
}
|
|
213
192
|
}
|
|
214
193
|
}
|
|
215
194
|
else {
|
|
216
|
-
const
|
|
195
|
+
const err14 = { instancePath: instancePath + "/m", schemaPath: "#/definitions/aggregatemetadatatypesJsonSchema/properties/m/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
217
196
|
if (vErrors === null) {
|
|
218
|
-
vErrors = [
|
|
197
|
+
vErrors = [err14];
|
|
219
198
|
}
|
|
220
199
|
else {
|
|
221
|
-
vErrors.push(
|
|
200
|
+
vErrors.push(err14);
|
|
222
201
|
}
|
|
223
202
|
errors++;
|
|
224
203
|
}
|
|
225
204
|
}
|
|
226
205
|
}
|
|
227
206
|
else {
|
|
228
|
-
const
|
|
207
|
+
const err15 = { instancePath, schemaPath: "#/definitions/aggregatemetadatatypesJsonSchema/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
229
208
|
if (vErrors === null) {
|
|
230
|
-
vErrors = [
|
|
209
|
+
vErrors = [err15];
|
|
231
210
|
}
|
|
232
211
|
else {
|
|
233
|
-
vErrors.push(
|
|
212
|
+
vErrors.push(err15);
|
|
234
213
|
}
|
|
235
214
|
errors++;
|
|
236
215
|
} validate10.errors = vErrors; return errors === 0; }
|
|
@@ -38,35 +38,28 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
38
38
|
}
|
|
39
39
|
for (const key0 in data) {
|
|
40
40
|
if (!(((key0 === "v") || (key0 === "s")) || (key0 === "m"))) {
|
|
41
|
-
|
|
42
|
-
if (vErrors === null) {
|
|
43
|
-
vErrors = [err3];
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
vErrors.push(err3);
|
|
47
|
-
}
|
|
48
|
-
errors++;
|
|
41
|
+
delete data[key0];
|
|
49
42
|
}
|
|
50
43
|
}
|
|
51
44
|
if (data.v !== undefined) {
|
|
52
45
|
let data0 = data.v;
|
|
53
46
|
if (!((typeof data0 == "number") && (isFinite(data0)))) {
|
|
54
|
-
const
|
|
47
|
+
const err3 = { instancePath: instancePath + "/v", schemaPath: "#/definitions/aggregatemetadatav1JsonSchema/properties/v/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
55
48
|
if (vErrors === null) {
|
|
56
|
-
vErrors = [
|
|
49
|
+
vErrors = [err3];
|
|
57
50
|
}
|
|
58
51
|
else {
|
|
59
|
-
vErrors.push(
|
|
52
|
+
vErrors.push(err3);
|
|
60
53
|
}
|
|
61
54
|
errors++;
|
|
62
55
|
}
|
|
63
56
|
if (1 !== data0) {
|
|
64
|
-
const
|
|
57
|
+
const err4 = { instancePath: instancePath + "/v", schemaPath: "#/definitions/aggregatemetadatav1JsonSchema/properties/v/const", keyword: "const", params: { allowedValue: 1 }, message: "must be equal to constant" };
|
|
65
58
|
if (vErrors === null) {
|
|
66
|
-
vErrors = [
|
|
59
|
+
vErrors = [err4];
|
|
67
60
|
}
|
|
68
61
|
else {
|
|
69
|
-
vErrors.push(
|
|
62
|
+
vErrors.push(err4);
|
|
70
63
|
}
|
|
71
64
|
errors++;
|
|
72
65
|
}
|
|
@@ -74,12 +67,12 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
74
67
|
if (data.s !== undefined) {
|
|
75
68
|
let data1 = data.s;
|
|
76
69
|
if (!((typeof data1 == "number") && (isFinite(data1)))) {
|
|
77
|
-
const
|
|
70
|
+
const err5 = { instancePath: instancePath + "/s", schemaPath: "#/definitions/aggregatemetadatav1JsonSchema/properties/s/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
78
71
|
if (vErrors === null) {
|
|
79
|
-
vErrors = [
|
|
72
|
+
vErrors = [err5];
|
|
80
73
|
}
|
|
81
74
|
else {
|
|
82
|
-
vErrors.push(
|
|
75
|
+
vErrors.push(err5);
|
|
83
76
|
}
|
|
84
77
|
errors++;
|
|
85
78
|
}
|
|
@@ -92,71 +85,57 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
92
85
|
let data3 = data2[i0];
|
|
93
86
|
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
|
|
94
87
|
if (data3.m === undefined) {
|
|
95
|
-
const
|
|
88
|
+
const err6 = { instancePath: instancePath + "/m/" + i0, schemaPath: "#/definitions/aggregatemetadatav1JsonSchema/properties/m/items/required", keyword: "required", params: { missingProperty: "m" }, message: "must have required property '" + "m" + "'" };
|
|
96
89
|
if (vErrors === null) {
|
|
97
|
-
vErrors = [
|
|
90
|
+
vErrors = [err6];
|
|
98
91
|
}
|
|
99
92
|
else {
|
|
100
|
-
vErrors.push(
|
|
93
|
+
vErrors.push(err6);
|
|
101
94
|
}
|
|
102
95
|
errors++;
|
|
103
96
|
}
|
|
104
97
|
for (const key1 in data3) {
|
|
105
98
|
if (!((key1 === "m") || (key1 === "s"))) {
|
|
106
|
-
|
|
107
|
-
if (vErrors === null) {
|
|
108
|
-
vErrors = [err8];
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
vErrors.push(err8);
|
|
112
|
-
}
|
|
113
|
-
errors++;
|
|
99
|
+
delete data3[key1];
|
|
114
100
|
}
|
|
115
101
|
}
|
|
116
102
|
if (data3.m !== undefined) {
|
|
117
103
|
let data4 = data3.m;
|
|
118
104
|
if (data4 && typeof data4 == "object" && !Array.isArray(data4)) {
|
|
119
105
|
if (data4.s === undefined) {
|
|
120
|
-
const
|
|
106
|
+
const err7 = { instancePath: instancePath + "/m/" + i0 + "/m", schemaPath: "#/definitions/aggregatemetadatav1JsonSchema/properties/m/items/properties/m/required", keyword: "required", params: { missingProperty: "s" }, message: "must have required property '" + "s" + "'" };
|
|
121
107
|
if (vErrors === null) {
|
|
122
|
-
vErrors = [
|
|
108
|
+
vErrors = [err7];
|
|
123
109
|
}
|
|
124
110
|
else {
|
|
125
|
-
vErrors.push(
|
|
111
|
+
vErrors.push(err7);
|
|
126
112
|
}
|
|
127
113
|
errors++;
|
|
128
114
|
}
|
|
129
115
|
if (data4.us === undefined) {
|
|
130
|
-
const
|
|
116
|
+
const err8 = { instancePath: instancePath + "/m/" + i0 + "/m", schemaPath: "#/definitions/aggregatemetadatav1JsonSchema/properties/m/items/properties/m/required", keyword: "required", params: { missingProperty: "us" }, message: "must have required property '" + "us" + "'" };
|
|
131
117
|
if (vErrors === null) {
|
|
132
|
-
vErrors = [
|
|
118
|
+
vErrors = [err8];
|
|
133
119
|
}
|
|
134
120
|
else {
|
|
135
|
-
vErrors.push(
|
|
121
|
+
vErrors.push(err8);
|
|
136
122
|
}
|
|
137
123
|
errors++;
|
|
138
124
|
}
|
|
139
125
|
for (const key2 in data4) {
|
|
140
126
|
if (!((key2 === "s") || (key2 === "us"))) {
|
|
141
|
-
|
|
142
|
-
if (vErrors === null) {
|
|
143
|
-
vErrors = [err11];
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
vErrors.push(err11);
|
|
147
|
-
}
|
|
148
|
-
errors++;
|
|
127
|
+
delete data4[key2];
|
|
149
128
|
}
|
|
150
129
|
}
|
|
151
130
|
if (data4.s !== undefined) {
|
|
152
131
|
let data5 = data4.s;
|
|
153
132
|
if (!((typeof data5 == "number") && (isFinite(data5)))) {
|
|
154
|
-
const
|
|
133
|
+
const err9 = { instancePath: instancePath + "/m/" + i0 + "/m/s", schemaPath: "#/definitions/aggregatemetadatav1JsonSchema/properties/m/items/properties/m/properties/s/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
155
134
|
if (vErrors === null) {
|
|
156
|
-
vErrors = [
|
|
135
|
+
vErrors = [err9];
|
|
157
136
|
}
|
|
158
137
|
else {
|
|
159
|
-
vErrors.push(
|
|
138
|
+
vErrors.push(err9);
|
|
160
139
|
}
|
|
161
140
|
errors++;
|
|
162
141
|
}
|
|
@@ -164,24 +143,24 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
164
143
|
if (data4.us !== undefined) {
|
|
165
144
|
let data6 = data4.us;
|
|
166
145
|
if (!((typeof data6 == "number") && (isFinite(data6)))) {
|
|
167
|
-
const
|
|
146
|
+
const err10 = { instancePath: instancePath + "/m/" + i0 + "/m/us", schemaPath: "#/definitions/aggregatemetadatav1JsonSchema/properties/m/items/properties/m/properties/us/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
168
147
|
if (vErrors === null) {
|
|
169
|
-
vErrors = [
|
|
148
|
+
vErrors = [err10];
|
|
170
149
|
}
|
|
171
150
|
else {
|
|
172
|
-
vErrors.push(
|
|
151
|
+
vErrors.push(err10);
|
|
173
152
|
}
|
|
174
153
|
errors++;
|
|
175
154
|
}
|
|
176
155
|
}
|
|
177
156
|
}
|
|
178
157
|
else {
|
|
179
|
-
const
|
|
158
|
+
const err11 = { instancePath: instancePath + "/m/" + i0 + "/m", schemaPath: "#/definitions/aggregatemetadatav1JsonSchema/properties/m/items/properties/m/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
180
159
|
if (vErrors === null) {
|
|
181
|
-
vErrors = [
|
|
160
|
+
vErrors = [err11];
|
|
182
161
|
}
|
|
183
162
|
else {
|
|
184
|
-
vErrors.push(
|
|
163
|
+
vErrors.push(err11);
|
|
185
164
|
}
|
|
186
165
|
errors++;
|
|
187
166
|
}
|
|
@@ -189,48 +168,48 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
189
168
|
if (data3.s !== undefined) {
|
|
190
169
|
let data7 = data3.s;
|
|
191
170
|
if (!((typeof data7 == "number") && (isFinite(data7)))) {
|
|
192
|
-
const
|
|
171
|
+
const err12 = { instancePath: instancePath + "/m/" + i0 + "/s", schemaPath: "#/definitions/aggregatemetadatav1JsonSchema/properties/m/items/properties/s/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
193
172
|
if (vErrors === null) {
|
|
194
|
-
vErrors = [
|
|
173
|
+
vErrors = [err12];
|
|
195
174
|
}
|
|
196
175
|
else {
|
|
197
|
-
vErrors.push(
|
|
176
|
+
vErrors.push(err12);
|
|
198
177
|
}
|
|
199
178
|
errors++;
|
|
200
179
|
}
|
|
201
180
|
}
|
|
202
181
|
}
|
|
203
182
|
else {
|
|
204
|
-
const
|
|
183
|
+
const err13 = { instancePath: instancePath + "/m/" + i0, schemaPath: "#/definitions/aggregatemetadatav1JsonSchema/properties/m/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
205
184
|
if (vErrors === null) {
|
|
206
|
-
vErrors = [
|
|
185
|
+
vErrors = [err13];
|
|
207
186
|
}
|
|
208
187
|
else {
|
|
209
|
-
vErrors.push(
|
|
188
|
+
vErrors.push(err13);
|
|
210
189
|
}
|
|
211
190
|
errors++;
|
|
212
191
|
}
|
|
213
192
|
}
|
|
214
193
|
}
|
|
215
194
|
else {
|
|
216
|
-
const
|
|
195
|
+
const err14 = { instancePath: instancePath + "/m", schemaPath: "#/definitions/aggregatemetadatav1JsonSchema/properties/m/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
217
196
|
if (vErrors === null) {
|
|
218
|
-
vErrors = [
|
|
197
|
+
vErrors = [err14];
|
|
219
198
|
}
|
|
220
199
|
else {
|
|
221
|
-
vErrors.push(
|
|
200
|
+
vErrors.push(err14);
|
|
222
201
|
}
|
|
223
202
|
errors++;
|
|
224
203
|
}
|
|
225
204
|
}
|
|
226
205
|
}
|
|
227
206
|
else {
|
|
228
|
-
const
|
|
207
|
+
const err15 = { instancePath, schemaPath: "#/definitions/aggregatemetadatav1JsonSchema/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
229
208
|
if (vErrors === null) {
|
|
230
|
-
vErrors = [
|
|
209
|
+
vErrors = [err15];
|
|
231
210
|
}
|
|
232
211
|
else {
|
|
233
|
-
vErrors.push(
|
|
212
|
+
vErrors.push(err15);
|
|
234
213
|
}
|
|
235
214
|
errors++;
|
|
236
215
|
} validate10.errors = vErrors; return errors === 0; }
|