@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.
@@ -58,60 +58,53 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
58
58
  }
59
59
  for (const key0 in data) {
60
60
  if (!(((((key0 === "payload") || (key0 === "account")) || (key0 === "device")) || (key0 === "component")) || (key0 === "timestamp"))) {
61
- const err5 = { instancePath, schemaPath: "#/definitions/datamessageJsonSchema/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
62
- if (vErrors === null) {
63
- vErrors = [err5];
64
- }
65
- else {
66
- vErrors.push(err5);
67
- }
68
- errors++;
61
+ delete data[key0];
69
62
  }
70
63
  }
71
64
  if (data.payload !== undefined) {
72
65
  if (typeof data.payload !== "string") {
73
- const err6 = { instancePath: instancePath + "/payload", schemaPath: "#/definitions/datamessageJsonSchema/properties/payload/type", keyword: "type", params: { type: "string" }, message: "must be string" };
66
+ const err5 = { instancePath: instancePath + "/payload", schemaPath: "#/definitions/datamessageJsonSchema/properties/payload/type", keyword: "type", params: { type: "string" }, message: "must be string" };
74
67
  if (vErrors === null) {
75
- vErrors = [err6];
68
+ vErrors = [err5];
76
69
  }
77
70
  else {
78
- vErrors.push(err6);
71
+ vErrors.push(err5);
79
72
  }
80
73
  errors++;
81
74
  }
82
75
  }
83
76
  if (data.account !== undefined) {
84
77
  if (typeof data.account !== "string") {
85
- const err7 = { instancePath: instancePath + "/account", schemaPath: "#/definitions/datamessageJsonSchema/properties/account/type", keyword: "type", params: { type: "string" }, message: "must be string" };
78
+ const err6 = { instancePath: instancePath + "/account", schemaPath: "#/definitions/datamessageJsonSchema/properties/account/type", keyword: "type", params: { type: "string" }, message: "must be string" };
86
79
  if (vErrors === null) {
87
- vErrors = [err7];
80
+ vErrors = [err6];
88
81
  }
89
82
  else {
90
- vErrors.push(err7);
83
+ vErrors.push(err6);
91
84
  }
92
85
  errors++;
93
86
  }
94
87
  }
95
88
  if (data.device !== undefined) {
96
89
  if (typeof data.device !== "string") {
97
- const err8 = { instancePath: instancePath + "/device", schemaPath: "#/definitions/datamessageJsonSchema/properties/device/type", keyword: "type", params: { type: "string" }, message: "must be string" };
90
+ const err7 = { instancePath: instancePath + "/device", schemaPath: "#/definitions/datamessageJsonSchema/properties/device/type", keyword: "type", params: { type: "string" }, message: "must be string" };
98
91
  if (vErrors === null) {
99
- vErrors = [err8];
92
+ vErrors = [err7];
100
93
  }
101
94
  else {
102
- vErrors.push(err8);
95
+ vErrors.push(err7);
103
96
  }
104
97
  errors++;
105
98
  }
106
99
  }
107
100
  if (data.component !== undefined) {
108
101
  if (typeof data.component !== "string") {
109
- const err9 = { instancePath: instancePath + "/component", schemaPath: "#/definitions/datamessageJsonSchema/properties/component/type", keyword: "type", params: { type: "string" }, message: "must be string" };
102
+ const err8 = { instancePath: instancePath + "/component", schemaPath: "#/definitions/datamessageJsonSchema/properties/component/type", keyword: "type", params: { type: "string" }, message: "must be string" };
110
103
  if (vErrors === null) {
111
- vErrors = [err9];
104
+ vErrors = [err8];
112
105
  }
113
106
  else {
114
- vErrors.push(err9);
107
+ vErrors.push(err8);
115
108
  }
116
109
  errors++;
117
110
  }
@@ -119,24 +112,24 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
119
112
  if (data.timestamp !== undefined) {
120
113
  let data4 = data.timestamp;
121
114
  if (!((typeof data4 == "number") && (isFinite(data4)))) {
122
- const err10 = { instancePath: instancePath + "/timestamp", schemaPath: "#/definitions/datamessageJsonSchema/properties/timestamp/type", keyword: "type", params: { type: "number" }, message: "must be number" };
115
+ const err9 = { instancePath: instancePath + "/timestamp", schemaPath: "#/definitions/datamessageJsonSchema/properties/timestamp/type", keyword: "type", params: { type: "number" }, message: "must be number" };
123
116
  if (vErrors === null) {
124
- vErrors = [err10];
117
+ vErrors = [err9];
125
118
  }
126
119
  else {
127
- vErrors.push(err10);
120
+ vErrors.push(err9);
128
121
  }
129
122
  errors++;
130
123
  }
131
124
  }
132
125
  }
133
126
  else {
134
- const err11 = { instancePath, schemaPath: "#/definitions/datamessageJsonSchema/type", keyword: "type", params: { type: "object" }, message: "must be object" };
127
+ const err10 = { instancePath, schemaPath: "#/definitions/datamessageJsonSchema/type", keyword: "type", params: { type: "object" }, message: "must be object" };
135
128
  if (vErrors === null) {
136
- vErrors = [err11];
129
+ vErrors = [err10];
137
130
  }
138
131
  else {
139
- vErrors.push(err11);
132
+ vErrors.push(err10);
140
133
  }
141
134
  errors++;
142
135
  } validate10.errors = vErrors; return errors === 0; }
@@ -28,25 +28,18 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
28
28
  }
29
29
  for (const key0 in data) {
30
30
  if (!((key0 === "s") || (key0 === "us"))) {
31
- const err2 = { instancePath, schemaPath: "#/definitions/devicereadingmetadatav1JsonSchema/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
32
- if (vErrors === null) {
33
- vErrors = [err2];
34
- }
35
- else {
36
- vErrors.push(err2);
37
- }
38
- errors++;
31
+ delete data[key0];
39
32
  }
40
33
  }
41
34
  if (data.s !== undefined) {
42
35
  let data0 = data.s;
43
36
  if (!((typeof data0 == "number") && (isFinite(data0)))) {
44
- const err3 = { instancePath: instancePath + "/s", schemaPath: "#/definitions/devicereadingmetadatav1JsonSchema/properties/s/type", keyword: "type", params: { type: "number" }, message: "must be number" };
37
+ const err2 = { instancePath: instancePath + "/s", schemaPath: "#/definitions/devicereadingmetadatav1JsonSchema/properties/s/type", keyword: "type", params: { type: "number" }, message: "must be number" };
45
38
  if (vErrors === null) {
46
- vErrors = [err3];
39
+ vErrors = [err2];
47
40
  }
48
41
  else {
49
- vErrors.push(err3);
42
+ vErrors.push(err2);
50
43
  }
51
44
  errors++;
52
45
  }
@@ -54,24 +47,24 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
54
47
  if (data.us !== undefined) {
55
48
  let data1 = data.us;
56
49
  if (!((typeof data1 == "number") && (isFinite(data1)))) {
57
- const err4 = { instancePath: instancePath + "/us", schemaPath: "#/definitions/devicereadingmetadatav1JsonSchema/properties/us/type", keyword: "type", params: { type: "number" }, message: "must be number" };
50
+ const err3 = { instancePath: instancePath + "/us", schemaPath: "#/definitions/devicereadingmetadatav1JsonSchema/properties/us/type", keyword: "type", params: { type: "number" }, message: "must be number" };
58
51
  if (vErrors === null) {
59
- vErrors = [err4];
52
+ vErrors = [err3];
60
53
  }
61
54
  else {
62
- vErrors.push(err4);
55
+ vErrors.push(err3);
63
56
  }
64
57
  errors++;
65
58
  }
66
59
  }
67
60
  }
68
61
  else {
69
- const err5 = { instancePath, schemaPath: "#/definitions/devicereadingmetadatav1JsonSchema/type", keyword: "type", params: { type: "object" }, message: "must be object" };
62
+ const err4 = { instancePath, schemaPath: "#/definitions/devicereadingmetadatav1JsonSchema/type", keyword: "type", params: { type: "object" }, message: "must be object" };
70
63
  if (vErrors === null) {
71
- vErrors = [err5];
64
+ vErrors = [err4];
72
65
  }
73
66
  else {
74
- vErrors.push(err5);
67
+ vErrors.push(err4);
75
68
  }
76
69
  errors++;
77
70
  } validate10.errors = vErrors; return errors === 0; }
@@ -18,60 +18,46 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
18
18
  }
19
19
  for (const key0 in data) {
20
20
  if (!((key0 === "m") || (key0 === "s"))) {
21
- const err1 = { instancePath, schemaPath: "#/definitions/devicereadingv1JsonSchema/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
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.m !== undefined) {
32
25
  let data0 = data.m;
33
26
  if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
34
27
  if (data0.s === undefined) {
35
- const err2 = { instancePath: instancePath + "/m", schemaPath: "#/definitions/devicereadingv1JsonSchema/properties/m/required", keyword: "required", params: { missingProperty: "s" }, message: "must have required property '" + "s" + "'" };
28
+ const err1 = { instancePath: instancePath + "/m", schemaPath: "#/definitions/devicereadingv1JsonSchema/properties/m/required", keyword: "required", params: { missingProperty: "s" }, message: "must have required property '" + "s" + "'" };
36
29
  if (vErrors === null) {
37
- vErrors = [err2];
30
+ vErrors = [err1];
38
31
  }
39
32
  else {
40
- vErrors.push(err2);
33
+ vErrors.push(err1);
41
34
  }
42
35
  errors++;
43
36
  }
44
37
  if (data0.us === undefined) {
45
- const err3 = { instancePath: instancePath + "/m", schemaPath: "#/definitions/devicereadingv1JsonSchema/properties/m/required", keyword: "required", params: { missingProperty: "us" }, message: "must have required property '" + "us" + "'" };
38
+ const err2 = { instancePath: instancePath + "/m", schemaPath: "#/definitions/devicereadingv1JsonSchema/properties/m/required", keyword: "required", params: { missingProperty: "us" }, message: "must have required property '" + "us" + "'" };
46
39
  if (vErrors === null) {
47
- vErrors = [err3];
40
+ vErrors = [err2];
48
41
  }
49
42
  else {
50
- vErrors.push(err3);
43
+ vErrors.push(err2);
51
44
  }
52
45
  errors++;
53
46
  }
54
47
  for (const key1 in data0) {
55
48
  if (!((key1 === "s") || (key1 === "us"))) {
56
- const err4 = { instancePath: instancePath + "/m", schemaPath: "#/definitions/devicereadingv1JsonSchema/properties/m/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
57
- if (vErrors === null) {
58
- vErrors = [err4];
59
- }
60
- else {
61
- vErrors.push(err4);
62
- }
63
- errors++;
49
+ delete data0[key1];
64
50
  }
65
51
  }
66
52
  if (data0.s !== undefined) {
67
53
  let data1 = data0.s;
68
54
  if (!((typeof data1 == "number") && (isFinite(data1)))) {
69
- const err5 = { instancePath: instancePath + "/m/s", schemaPath: "#/definitions/devicereadingv1JsonSchema/properties/m/properties/s/type", keyword: "type", params: { type: "number" }, message: "must be number" };
55
+ const err3 = { instancePath: instancePath + "/m/s", schemaPath: "#/definitions/devicereadingv1JsonSchema/properties/m/properties/s/type", keyword: "type", params: { type: "number" }, message: "must be number" };
70
56
  if (vErrors === null) {
71
- vErrors = [err5];
57
+ vErrors = [err3];
72
58
  }
73
59
  else {
74
- vErrors.push(err5);
60
+ vErrors.push(err3);
75
61
  }
76
62
  errors++;
77
63
  }
@@ -79,24 +65,24 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
79
65
  if (data0.us !== undefined) {
80
66
  let data2 = data0.us;
81
67
  if (!((typeof data2 == "number") && (isFinite(data2)))) {
82
- const err6 = { instancePath: instancePath + "/m/us", schemaPath: "#/definitions/devicereadingv1JsonSchema/properties/m/properties/us/type", keyword: "type", params: { type: "number" }, message: "must be number" };
68
+ const err4 = { instancePath: instancePath + "/m/us", schemaPath: "#/definitions/devicereadingv1JsonSchema/properties/m/properties/us/type", keyword: "type", params: { type: "number" }, message: "must be number" };
83
69
  if (vErrors === null) {
84
- vErrors = [err6];
70
+ vErrors = [err4];
85
71
  }
86
72
  else {
87
- vErrors.push(err6);
73
+ vErrors.push(err4);
88
74
  }
89
75
  errors++;
90
76
  }
91
77
  }
92
78
  }
93
79
  else {
94
- const err7 = { instancePath: instancePath + "/m", schemaPath: "#/definitions/devicereadingv1JsonSchema/properties/m/type", keyword: "type", params: { type: "object" }, message: "must be object" };
80
+ const err5 = { instancePath: instancePath + "/m", schemaPath: "#/definitions/devicereadingv1JsonSchema/properties/m/type", keyword: "type", params: { type: "object" }, message: "must be object" };
95
81
  if (vErrors === null) {
96
- vErrors = [err7];
82
+ vErrors = [err5];
97
83
  }
98
84
  else {
99
- vErrors.push(err7);
85
+ vErrors.push(err5);
100
86
  }
101
87
  errors++;
102
88
  }
@@ -104,24 +90,24 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
104
90
  if (data.s !== undefined) {
105
91
  let data3 = data.s;
106
92
  if (!((typeof data3 == "number") && (isFinite(data3)))) {
107
- const err8 = { instancePath: instancePath + "/s", schemaPath: "#/definitions/devicereadingv1JsonSchema/properties/s/type", keyword: "type", params: { type: "number" }, message: "must be number" };
93
+ const err6 = { instancePath: instancePath + "/s", schemaPath: "#/definitions/devicereadingv1JsonSchema/properties/s/type", keyword: "type", params: { type: "number" }, message: "must be number" };
108
94
  if (vErrors === null) {
109
- vErrors = [err8];
95
+ vErrors = [err6];
110
96
  }
111
97
  else {
112
- vErrors.push(err8);
98
+ vErrors.push(err6);
113
99
  }
114
100
  errors++;
115
101
  }
116
102
  }
117
103
  }
118
104
  else {
119
- const err9 = { instancePath, schemaPath: "#/definitions/devicereadingv1JsonSchema/type", keyword: "type", params: { type: "object" }, message: "must be object" };
105
+ const err7 = { instancePath, schemaPath: "#/definitions/devicereadingv1JsonSchema/type", keyword: "type", params: { type: "object" }, message: "must be object" };
120
106
  if (vErrors === null) {
121
- vErrors = [err9];
107
+ vErrors = [err7];
122
108
  }
123
109
  else {
124
- vErrors.push(err9);
110
+ vErrors.push(err7);
125
111
  }
126
112
  errors++;
127
113
  } validate10.errors = vErrors; return errors === 0; }
@@ -28,25 +28,18 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
28
28
  }
29
29
  for (const key0 in data) {
30
30
  if (!((key0 === "s") || (key0 === "us"))) {
31
- const err2 = { instancePath, schemaPath: "#/definitions/readingmetadatav1JsonSchema/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
32
- if (vErrors === null) {
33
- vErrors = [err2];
34
- }
35
- else {
36
- vErrors.push(err2);
37
- }
38
- errors++;
31
+ delete data[key0];
39
32
  }
40
33
  }
41
34
  if (data.s !== undefined) {
42
35
  let data0 = data.s;
43
36
  if (!((typeof data0 == "number") && (isFinite(data0)))) {
44
- const err3 = { instancePath: instancePath + "/s", schemaPath: "#/definitions/readingmetadatav1JsonSchema/properties/s/type", keyword: "type", params: { type: "number" }, message: "must be number" };
37
+ const err2 = { instancePath: instancePath + "/s", schemaPath: "#/definitions/readingmetadatav1JsonSchema/properties/s/type", keyword: "type", params: { type: "number" }, message: "must be number" };
45
38
  if (vErrors === null) {
46
- vErrors = [err3];
39
+ vErrors = [err2];
47
40
  }
48
41
  else {
49
- vErrors.push(err3);
42
+ vErrors.push(err2);
50
43
  }
51
44
  errors++;
52
45
  }
@@ -54,24 +47,24 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
54
47
  if (data.us !== undefined) {
55
48
  let data1 = data.us;
56
49
  if (!((typeof data1 == "number") && (isFinite(data1)))) {
57
- const err4 = { instancePath: instancePath + "/us", schemaPath: "#/definitions/readingmetadatav1JsonSchema/properties/us/type", keyword: "type", params: { type: "number" }, message: "must be number" };
50
+ const err3 = { instancePath: instancePath + "/us", schemaPath: "#/definitions/readingmetadatav1JsonSchema/properties/us/type", keyword: "type", params: { type: "number" }, message: "must be number" };
58
51
  if (vErrors === null) {
59
- vErrors = [err4];
52
+ vErrors = [err3];
60
53
  }
61
54
  else {
62
- vErrors.push(err4);
55
+ vErrors.push(err3);
63
56
  }
64
57
  errors++;
65
58
  }
66
59
  }
67
60
  }
68
61
  else {
69
- const err5 = { instancePath, schemaPath: "#/definitions/readingmetadatav1JsonSchema/type", keyword: "type", params: { type: "object" }, message: "must be object" };
62
+ const err4 = { instancePath, schemaPath: "#/definitions/readingmetadatav1JsonSchema/type", keyword: "type", params: { type: "object" }, message: "must be object" };
70
63
  if (vErrors === null) {
71
- vErrors = [err5];
64
+ vErrors = [err4];
72
65
  }
73
66
  else {
74
- vErrors.push(err5);
67
+ vErrors.push(err4);
75
68
  }
76
69
  errors++;
77
70
  } validate10.errors = vErrors; return errors === 0; }
@@ -46,6 +46,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
46
46
  }
47
47
  errors++;
48
48
  }
49
+ for (const key0 in data) {
50
+ if (!((((((key0 === "data") || (key0 === "component")) || (key0 === "s")) || (key0 === "us")) || (key0 === "type")) || (key0 === "id"))) {
51
+ delete data[key0];
52
+ }
53
+ }
49
54
  if (data.data !== undefined) {
50
55
  let data0 = data.data;
51
56
  const _errs4 = errors;
@@ -93,7 +98,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
93
98
  valid2 = valid2 || _valid0;
94
99
  if (!valid2) {
95
100
  const _errs11 = errors;
96
- if (data0 && typeof data0 == "object" && !Array.isArray(data0)) { }
101
+ if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
102
+ for (const key1 in data0) {
103
+ delete data0[key1];
104
+ }
105
+ }
97
106
  else {
98
107
  const err7 = { instancePath: instancePath + "/data", schemaPath: "#/definitions/readingv1JsonSchema/properties/data/anyOf/3/type", keyword: "type", params: { type: "object" }, message: "must be object" };
99
108
  if (vErrors === null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xube/kit-aws-data-schema",
3
- "version": "0.0.91",
3
+ "version": "0.0.92",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -19,17 +19,17 @@
19
19
  "homepage": "https://github.com/XubeLtd/dev-kit#readme",
20
20
  "devDependencies": {
21
21
  "@types/node": "^22.5.4",
22
- "@xube/kit-build": "^0.0.91",
22
+ "@xube/kit-build": "^0.0.92",
23
23
  "ts-node": "^10.9.2",
24
24
  "typescript": "^5.6.2"
25
25
  },
26
26
  "dependencies": {
27
- "@xube/kit-aws-schema": "^0.0.91",
28
- "@xube/kit-constants": "^0.0.91",
29
- "@xube/kit-generator": "^0.0.91",
30
- "@xube/kit-log": "^0.0.91",
31
- "@xube/kit-schema": "^0.0.91",
32
- "zod": "^3.22.4",
27
+ "@xube/kit-aws-schema": "^0.0.92",
28
+ "@xube/kit-constants": "^0.0.92",
29
+ "@xube/kit-generator": "^0.0.92",
30
+ "@xube/kit-log": "^0.0.92",
31
+ "@xube/kit-schema": "^0.0.92",
32
+ "zod": "^3.23.8",
33
33
  "zod-validation-error": "^2.0.0"
34
34
  }
35
35
  }
@@ -1 +1 @@
1
- "use strict";export const validate = validate10;export default validate10;const schema27 = {"$ref":"#/definitions/aggregatemetadataJsonSchema","definitions":{"aggregatemetadataJsonSchema":{"type":"object","properties":{"v":{"type":"number"}},"required":["v"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-07/schema#"};const schema28 = {"type":"object","properties":{"v":{"type":"number"}},"required":["v"],"additionalProperties":false};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.v === undefined){const err0 = {instancePath,schemaPath:"#/definitions/aggregatemetadataJsonSchema/required",keyword:"required",params:{missingProperty: "v"},message:"must have required property '"+"v"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "v")){const err1 = {instancePath,schemaPath:"#/definitions/aggregatemetadataJsonSchema/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.v !== undefined){let data0 = data.v;if(!((typeof data0 == "number") && (isFinite(data0)))){const err2 = {instancePath:instancePath+"/v",schemaPath:"#/definitions/aggregatemetadataJsonSchema/properties/v/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}else {const err3 = {instancePath,schemaPath:"#/definitions/aggregatemetadataJsonSchema/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}validate10.errors = vErrors;return errors === 0;}
1
+ "use strict";export const validate = validate10;export default validate10;const schema27 = {"$ref":"#/definitions/aggregatemetadataJsonSchema","definitions":{"aggregatemetadataJsonSchema":{"type":"object","properties":{"v":{"type":"number"}},"required":["v"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-07/schema#"};const schema28 = {"type":"object","properties":{"v":{"type":"number"}},"required":["v"],"additionalProperties":false};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.v === undefined){const err0 = {instancePath,schemaPath:"#/definitions/aggregatemetadataJsonSchema/required",keyword:"required",params:{missingProperty: "v"},message:"must have required property '"+"v"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "v")){delete data[key0];}}if(data.v !== undefined){let data0 = data.v;if(!((typeof data0 == "number") && (isFinite(data0)))){const err1 = {instancePath:instancePath+"/v",schemaPath:"#/definitions/aggregatemetadataJsonSchema/properties/v/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}else {const err2 = {instancePath,schemaPath:"#/definitions/aggregatemetadataJsonSchema/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}validate10.errors = vErrors;return errors === 0;}
@@ -1 +1 @@
1
- "use strict";export const validate = validate10;export default validate10;const schema27 = {"$ref":"#/definitions/aggregatemetadatatypesJsonSchema","definitions":{"aggregatemetadatatypesJsonSchema":{"type":"object","properties":{"v":{"type":"number","const":1},"s":{"type":"number"},"m":{"type":"array","items":{"type":"object","properties":{"m":{"type":"object","properties":{"s":{"type":"number"},"us":{"type":"number"}},"required":["s","us"],"additionalProperties":false},"s":{"type":"number"}},"required":["m"],"additionalProperties":false}}},"required":["v","s","m"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-07/schema#"};const schema28 = {"type":"object","properties":{"v":{"type":"number","const":1},"s":{"type":"number"},"m":{"type":"array","items":{"type":"object","properties":{"m":{"type":"object","properties":{"s":{"type":"number"},"us":{"type":"number"}},"required":["s","us"],"additionalProperties":false},"s":{"type":"number"}},"required":["m"],"additionalProperties":false}}},"required":["v","s","m"],"additionalProperties":false};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.v === undefined){const err0 = {instancePath,schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/required",keyword:"required",params:{missingProperty: "v"},message:"must have required property '"+"v"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.s === undefined){const err1 = {instancePath,schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/required",keyword:"required",params:{missingProperty: "s"},message:"must have required property '"+"s"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.m === undefined){const err2 = {instancePath,schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/required",keyword:"required",params:{missingProperty: "m"},message:"must have required property '"+"m"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!(((key0 === "v") || (key0 === "s")) || (key0 === "m"))){const err3 = {instancePath,schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.v !== undefined){let data0 = data.v;if(!((typeof data0 == "number") && (isFinite(data0)))){const err4 = {instancePath:instancePath+"/v",schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/properties/v/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(1 !== data0){const err5 = {instancePath:instancePath+"/v",schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/properties/v/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.s !== undefined){let data1 = data.s;if(!((typeof data1 == "number") && (isFinite(data1)))){const err6 = {instancePath:instancePath+"/s",schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/properties/s/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.m !== undefined){let data2 = data.m;if(Array.isArray(data2)){const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.m === undefined){const err7 = {instancePath:instancePath+"/m/" + i0,schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/properties/m/items/required",keyword:"required",params:{missingProperty: "m"},message:"must have required property '"+"m"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}for(const key1 in data3){if(!((key1 === "m") || (key1 === "s"))){const err8 = {instancePath:instancePath+"/m/" + i0,schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/properties/m/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data3.m !== undefined){let data4 = data3.m;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.s === undefined){const err9 = {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"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data4.us === undefined){const err10 = {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"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}for(const key2 in data4){if(!((key2 === "s") || (key2 === "us"))){const err11 = {instancePath:instancePath+"/m/" + i0+"/m",schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/properties/m/items/properties/m/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data4.s !== undefined){let data5 = data4.s;if(!((typeof data5 == "number") && (isFinite(data5)))){const err12 = {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"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data4.us !== undefined){let data6 = data4.us;if(!((typeof data6 == "number") && (isFinite(data6)))){const err13 = {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"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath:instancePath+"/m/" + i0+"/m",schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/properties/m/items/properties/m/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data3.s !== undefined){let data7 = data3.s;if(!((typeof data7 == "number") && (isFinite(data7)))){const err15 = {instancePath:instancePath+"/m/" + i0+"/s",schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/properties/m/items/properties/s/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/m/" + i0,schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/properties/m/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath:instancePath+"/m",schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/properties/m/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}else {const err18 = {instancePath,schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}validate10.errors = vErrors;return errors === 0;}
1
+ "use strict";export const validate = validate10;export default validate10;const schema27 = {"$ref":"#/definitions/aggregatemetadatatypesJsonSchema","definitions":{"aggregatemetadatatypesJsonSchema":{"type":"object","properties":{"v":{"type":"number","const":1},"s":{"type":"number"},"m":{"type":"array","items":{"type":"object","properties":{"m":{"type":"object","properties":{"s":{"type":"number"},"us":{"type":"number"}},"required":["s","us"],"additionalProperties":false},"s":{"type":"number"}},"required":["m"],"additionalProperties":false}}},"required":["v","s","m"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-07/schema#"};const schema28 = {"type":"object","properties":{"v":{"type":"number","const":1},"s":{"type":"number"},"m":{"type":"array","items":{"type":"object","properties":{"m":{"type":"object","properties":{"s":{"type":"number"},"us":{"type":"number"}},"required":["s","us"],"additionalProperties":false},"s":{"type":"number"}},"required":["m"],"additionalProperties":false}}},"required":["v","s","m"],"additionalProperties":false};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.v === undefined){const err0 = {instancePath,schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/required",keyword:"required",params:{missingProperty: "v"},message:"must have required property '"+"v"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.s === undefined){const err1 = {instancePath,schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/required",keyword:"required",params:{missingProperty: "s"},message:"must have required property '"+"s"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.m === undefined){const err2 = {instancePath,schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/required",keyword:"required",params:{missingProperty: "m"},message:"must have required property '"+"m"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!(((key0 === "v") || (key0 === "s")) || (key0 === "m"))){delete data[key0];}}if(data.v !== undefined){let data0 = data.v;if(!((typeof data0 == "number") && (isFinite(data0)))){const err3 = {instancePath:instancePath+"/v",schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/properties/v/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(1 !== data0){const err4 = {instancePath:instancePath+"/v",schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/properties/v/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.s !== undefined){let data1 = data.s;if(!((typeof data1 == "number") && (isFinite(data1)))){const err5 = {instancePath:instancePath+"/s",schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/properties/s/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.m !== undefined){let data2 = data.m;if(Array.isArray(data2)){const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.m === undefined){const err6 = {instancePath:instancePath+"/m/" + i0,schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/properties/m/items/required",keyword:"required",params:{missingProperty: "m"},message:"must have required property '"+"m"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}for(const key1 in data3){if(!((key1 === "m") || (key1 === "s"))){delete data3[key1];}}if(data3.m !== undefined){let data4 = data3.m;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.s === undefined){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"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data4.us === undefined){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"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}for(const key2 in data4){if(!((key2 === "s") || (key2 === "us"))){delete data4[key2];}}if(data4.s !== undefined){let data5 = data4.s;if(!((typeof data5 == "number") && (isFinite(data5)))){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"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data4.us !== undefined){let data6 = data4.us;if(!((typeof data6 == "number") && (isFinite(data6)))){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"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {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"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data3.s !== undefined){let data7 = data3.s;if(!((typeof data7 == "number") && (isFinite(data7)))){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"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/m/" + i0,schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/properties/m/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath:instancePath+"/m",schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/properties/m/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}else {const err15 = {instancePath,schemaPath:"#/definitions/aggregatemetadatatypesJsonSchema/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}validate10.errors = vErrors;return errors === 0;}
@@ -1 +1 @@
1
- "use strict";export const validate = validate10;export default validate10;const schema27 = {"$ref":"#/definitions/aggregatemetadatav1JsonSchema","definitions":{"aggregatemetadatav1JsonSchema":{"type":"object","properties":{"v":{"type":"number","const":1},"s":{"type":"number"},"m":{"type":"array","items":{"type":"object","properties":{"m":{"type":"object","properties":{"s":{"type":"number"},"us":{"type":"number"}},"required":["s","us"],"additionalProperties":false},"s":{"type":"number"}},"required":["m"],"additionalProperties":false}}},"required":["v","s","m"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-07/schema#"};const schema28 = {"type":"object","properties":{"v":{"type":"number","const":1},"s":{"type":"number"},"m":{"type":"array","items":{"type":"object","properties":{"m":{"type":"object","properties":{"s":{"type":"number"},"us":{"type":"number"}},"required":["s","us"],"additionalProperties":false},"s":{"type":"number"}},"required":["m"],"additionalProperties":false}}},"required":["v","s","m"],"additionalProperties":false};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.v === undefined){const err0 = {instancePath,schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/required",keyword:"required",params:{missingProperty: "v"},message:"must have required property '"+"v"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.s === undefined){const err1 = {instancePath,schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/required",keyword:"required",params:{missingProperty: "s"},message:"must have required property '"+"s"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.m === undefined){const err2 = {instancePath,schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/required",keyword:"required",params:{missingProperty: "m"},message:"must have required property '"+"m"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!(((key0 === "v") || (key0 === "s")) || (key0 === "m"))){const err3 = {instancePath,schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.v !== undefined){let data0 = data.v;if(!((typeof data0 == "number") && (isFinite(data0)))){const err4 = {instancePath:instancePath+"/v",schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/properties/v/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(1 !== data0){const err5 = {instancePath:instancePath+"/v",schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/properties/v/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.s !== undefined){let data1 = data.s;if(!((typeof data1 == "number") && (isFinite(data1)))){const err6 = {instancePath:instancePath+"/s",schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/properties/s/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.m !== undefined){let data2 = data.m;if(Array.isArray(data2)){const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.m === undefined){const err7 = {instancePath:instancePath+"/m/" + i0,schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/properties/m/items/required",keyword:"required",params:{missingProperty: "m"},message:"must have required property '"+"m"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}for(const key1 in data3){if(!((key1 === "m") || (key1 === "s"))){const err8 = {instancePath:instancePath+"/m/" + i0,schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/properties/m/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data3.m !== undefined){let data4 = data3.m;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.s === undefined){const err9 = {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"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data4.us === undefined){const err10 = {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"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}for(const key2 in data4){if(!((key2 === "s") || (key2 === "us"))){const err11 = {instancePath:instancePath+"/m/" + i0+"/m",schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/properties/m/items/properties/m/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data4.s !== undefined){let data5 = data4.s;if(!((typeof data5 == "number") && (isFinite(data5)))){const err12 = {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"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data4.us !== undefined){let data6 = data4.us;if(!((typeof data6 == "number") && (isFinite(data6)))){const err13 = {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"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath:instancePath+"/m/" + i0+"/m",schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/properties/m/items/properties/m/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data3.s !== undefined){let data7 = data3.s;if(!((typeof data7 == "number") && (isFinite(data7)))){const err15 = {instancePath:instancePath+"/m/" + i0+"/s",schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/properties/m/items/properties/s/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/m/" + i0,schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/properties/m/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath:instancePath+"/m",schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/properties/m/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}else {const err18 = {instancePath,schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}validate10.errors = vErrors;return errors === 0;}
1
+ "use strict";export const validate = validate10;export default validate10;const schema27 = {"$ref":"#/definitions/aggregatemetadatav1JsonSchema","definitions":{"aggregatemetadatav1JsonSchema":{"type":"object","properties":{"v":{"type":"number","const":1},"s":{"type":"number"},"m":{"type":"array","items":{"type":"object","properties":{"m":{"type":"object","properties":{"s":{"type":"number"},"us":{"type":"number"}},"required":["s","us"],"additionalProperties":false},"s":{"type":"number"}},"required":["m"],"additionalProperties":false}}},"required":["v","s","m"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-07/schema#"};const schema28 = {"type":"object","properties":{"v":{"type":"number","const":1},"s":{"type":"number"},"m":{"type":"array","items":{"type":"object","properties":{"m":{"type":"object","properties":{"s":{"type":"number"},"us":{"type":"number"}},"required":["s","us"],"additionalProperties":false},"s":{"type":"number"}},"required":["m"],"additionalProperties":false}}},"required":["v","s","m"],"additionalProperties":false};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.v === undefined){const err0 = {instancePath,schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/required",keyword:"required",params:{missingProperty: "v"},message:"must have required property '"+"v"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.s === undefined){const err1 = {instancePath,schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/required",keyword:"required",params:{missingProperty: "s"},message:"must have required property '"+"s"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.m === undefined){const err2 = {instancePath,schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/required",keyword:"required",params:{missingProperty: "m"},message:"must have required property '"+"m"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!(((key0 === "v") || (key0 === "s")) || (key0 === "m"))){delete data[key0];}}if(data.v !== undefined){let data0 = data.v;if(!((typeof data0 == "number") && (isFinite(data0)))){const err3 = {instancePath:instancePath+"/v",schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/properties/v/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(1 !== data0){const err4 = {instancePath:instancePath+"/v",schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/properties/v/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.s !== undefined){let data1 = data.s;if(!((typeof data1 == "number") && (isFinite(data1)))){const err5 = {instancePath:instancePath+"/s",schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/properties/s/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.m !== undefined){let data2 = data.m;if(Array.isArray(data2)){const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.m === undefined){const err6 = {instancePath:instancePath+"/m/" + i0,schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/properties/m/items/required",keyword:"required",params:{missingProperty: "m"},message:"must have required property '"+"m"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}for(const key1 in data3){if(!((key1 === "m") || (key1 === "s"))){delete data3[key1];}}if(data3.m !== undefined){let data4 = data3.m;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.s === undefined){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"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data4.us === undefined){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"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}for(const key2 in data4){if(!((key2 === "s") || (key2 === "us"))){delete data4[key2];}}if(data4.s !== undefined){let data5 = data4.s;if(!((typeof data5 == "number") && (isFinite(data5)))){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"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data4.us !== undefined){let data6 = data4.us;if(!((typeof data6 == "number") && (isFinite(data6)))){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"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {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"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data3.s !== undefined){let data7 = data3.s;if(!((typeof data7 == "number") && (isFinite(data7)))){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"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/m/" + i0,schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/properties/m/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath:instancePath+"/m",schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/properties/m/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}else {const err15 = {instancePath,schemaPath:"#/definitions/aggregatemetadatav1JsonSchema/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}validate10.errors = vErrors;return errors === 0;}
@@ -1 +1 @@
1
- "use strict";export const validate = validate10;export default validate10;const schema27 = {"$ref":"#/definitions/datamessageJsonSchema","definitions":{"datamessageJsonSchema":{"type":"object","properties":{"payload":{"type":"string"},"account":{"type":"string"},"device":{"type":"string"},"component":{"type":"string"},"timestamp":{"type":"number"}},"required":["payload","account","device","component","timestamp"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-07/schema#"};const schema28 = {"type":"object","properties":{"payload":{"type":"string"},"account":{"type":"string"},"device":{"type":"string"},"component":{"type":"string"},"timestamp":{"type":"number"}},"required":["payload","account","device","component","timestamp"],"additionalProperties":false};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.payload === undefined){const err0 = {instancePath,schemaPath:"#/definitions/datamessageJsonSchema/required",keyword:"required",params:{missingProperty: "payload"},message:"must have required property '"+"payload"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.account === undefined){const err1 = {instancePath,schemaPath:"#/definitions/datamessageJsonSchema/required",keyword:"required",params:{missingProperty: "account"},message:"must have required property '"+"account"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.device === undefined){const err2 = {instancePath,schemaPath:"#/definitions/datamessageJsonSchema/required",keyword:"required",params:{missingProperty: "device"},message:"must have required property '"+"device"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.component === undefined){const err3 = {instancePath,schemaPath:"#/definitions/datamessageJsonSchema/required",keyword:"required",params:{missingProperty: "component"},message:"must have required property '"+"component"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.timestamp === undefined){const err4 = {instancePath,schemaPath:"#/definitions/datamessageJsonSchema/required",keyword:"required",params:{missingProperty: "timestamp"},message:"must have required property '"+"timestamp"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}for(const key0 in data){if(!(((((key0 === "payload") || (key0 === "account")) || (key0 === "device")) || (key0 === "component")) || (key0 === "timestamp"))){const err5 = {instancePath,schemaPath:"#/definitions/datamessageJsonSchema/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.payload !== undefined){if(typeof data.payload !== "string"){const err6 = {instancePath:instancePath+"/payload",schemaPath:"#/definitions/datamessageJsonSchema/properties/payload/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.account !== undefined){if(typeof data.account !== "string"){const err7 = {instancePath:instancePath+"/account",schemaPath:"#/definitions/datamessageJsonSchema/properties/account/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.device !== undefined){if(typeof data.device !== "string"){const err8 = {instancePath:instancePath+"/device",schemaPath:"#/definitions/datamessageJsonSchema/properties/device/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.component !== undefined){if(typeof data.component !== "string"){const err9 = {instancePath:instancePath+"/component",schemaPath:"#/definitions/datamessageJsonSchema/properties/component/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.timestamp !== undefined){let data4 = data.timestamp;if(!((typeof data4 == "number") && (isFinite(data4)))){const err10 = {instancePath:instancePath+"/timestamp",schemaPath:"#/definitions/datamessageJsonSchema/properties/timestamp/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/definitions/datamessageJsonSchema/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate10.errors = vErrors;return errors === 0;}
1
+ "use strict";export const validate = validate10;export default validate10;const schema27 = {"$ref":"#/definitions/datamessageJsonSchema","definitions":{"datamessageJsonSchema":{"type":"object","properties":{"payload":{"type":"string"},"account":{"type":"string"},"device":{"type":"string"},"component":{"type":"string"},"timestamp":{"type":"number"}},"required":["payload","account","device","component","timestamp"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-07/schema#"};const schema28 = {"type":"object","properties":{"payload":{"type":"string"},"account":{"type":"string"},"device":{"type":"string"},"component":{"type":"string"},"timestamp":{"type":"number"}},"required":["payload","account","device","component","timestamp"],"additionalProperties":false};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.payload === undefined){const err0 = {instancePath,schemaPath:"#/definitions/datamessageJsonSchema/required",keyword:"required",params:{missingProperty: "payload"},message:"must have required property '"+"payload"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.account === undefined){const err1 = {instancePath,schemaPath:"#/definitions/datamessageJsonSchema/required",keyword:"required",params:{missingProperty: "account"},message:"must have required property '"+"account"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.device === undefined){const err2 = {instancePath,schemaPath:"#/definitions/datamessageJsonSchema/required",keyword:"required",params:{missingProperty: "device"},message:"must have required property '"+"device"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.component === undefined){const err3 = {instancePath,schemaPath:"#/definitions/datamessageJsonSchema/required",keyword:"required",params:{missingProperty: "component"},message:"must have required property '"+"component"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.timestamp === undefined){const err4 = {instancePath,schemaPath:"#/definitions/datamessageJsonSchema/required",keyword:"required",params:{missingProperty: "timestamp"},message:"must have required property '"+"timestamp"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}for(const key0 in data){if(!(((((key0 === "payload") || (key0 === "account")) || (key0 === "device")) || (key0 === "component")) || (key0 === "timestamp"))){delete data[key0];}}if(data.payload !== undefined){if(typeof data.payload !== "string"){const err5 = {instancePath:instancePath+"/payload",schemaPath:"#/definitions/datamessageJsonSchema/properties/payload/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.account !== undefined){if(typeof data.account !== "string"){const err6 = {instancePath:instancePath+"/account",schemaPath:"#/definitions/datamessageJsonSchema/properties/account/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.device !== undefined){if(typeof data.device !== "string"){const err7 = {instancePath:instancePath+"/device",schemaPath:"#/definitions/datamessageJsonSchema/properties/device/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.component !== undefined){if(typeof data.component !== "string"){const err8 = {instancePath:instancePath+"/component",schemaPath:"#/definitions/datamessageJsonSchema/properties/component/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.timestamp !== undefined){let data4 = data.timestamp;if(!((typeof data4 == "number") && (isFinite(data4)))){const err9 = {instancePath:instancePath+"/timestamp",schemaPath:"#/definitions/datamessageJsonSchema/properties/timestamp/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}else {const err10 = {instancePath,schemaPath:"#/definitions/datamessageJsonSchema/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}validate10.errors = vErrors;return errors === 0;}
@@ -1 +1 @@
1
- "use strict";export const validate = validate10;export default validate10;const schema27 = {"$ref":"#/definitions/devicereadingmetadatav1JsonSchema","definitions":{"devicereadingmetadatav1JsonSchema":{"type":"object","properties":{"s":{"type":"number"},"us":{"type":"number"}},"required":["s","us"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-07/schema#"};const schema28 = {"type":"object","properties":{"s":{"type":"number"},"us":{"type":"number"}},"required":["s","us"],"additionalProperties":false};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.s === undefined){const err0 = {instancePath,schemaPath:"#/definitions/devicereadingmetadatav1JsonSchema/required",keyword:"required",params:{missingProperty: "s"},message:"must have required property '"+"s"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.us === undefined){const err1 = {instancePath,schemaPath:"#/definitions/devicereadingmetadatav1JsonSchema/required",keyword:"required",params:{missingProperty: "us"},message:"must have required property '"+"us"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "s") || (key0 === "us"))){const err2 = {instancePath,schemaPath:"#/definitions/devicereadingmetadatav1JsonSchema/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.s !== undefined){let data0 = data.s;if(!((typeof data0 == "number") && (isFinite(data0)))){const err3 = {instancePath:instancePath+"/s",schemaPath:"#/definitions/devicereadingmetadatav1JsonSchema/properties/s/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.us !== undefined){let data1 = data.us;if(!((typeof data1 == "number") && (isFinite(data1)))){const err4 = {instancePath:instancePath+"/us",schemaPath:"#/definitions/devicereadingmetadatav1JsonSchema/properties/us/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath,schemaPath:"#/definitions/devicereadingmetadatav1JsonSchema/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}validate10.errors = vErrors;return errors === 0;}
1
+ "use strict";export const validate = validate10;export default validate10;const schema27 = {"$ref":"#/definitions/devicereadingmetadatav1JsonSchema","definitions":{"devicereadingmetadatav1JsonSchema":{"type":"object","properties":{"s":{"type":"number"},"us":{"type":"number"}},"required":["s","us"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-07/schema#"};const schema28 = {"type":"object","properties":{"s":{"type":"number"},"us":{"type":"number"}},"required":["s","us"],"additionalProperties":false};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.s === undefined){const err0 = {instancePath,schemaPath:"#/definitions/devicereadingmetadatav1JsonSchema/required",keyword:"required",params:{missingProperty: "s"},message:"must have required property '"+"s"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.us === undefined){const err1 = {instancePath,schemaPath:"#/definitions/devicereadingmetadatav1JsonSchema/required",keyword:"required",params:{missingProperty: "us"},message:"must have required property '"+"us"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "s") || (key0 === "us"))){delete data[key0];}}if(data.s !== undefined){let data0 = data.s;if(!((typeof data0 == "number") && (isFinite(data0)))){const err2 = {instancePath:instancePath+"/s",schemaPath:"#/definitions/devicereadingmetadatav1JsonSchema/properties/s/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.us !== undefined){let data1 = data.us;if(!((typeof data1 == "number") && (isFinite(data1)))){const err3 = {instancePath:instancePath+"/us",schemaPath:"#/definitions/devicereadingmetadatav1JsonSchema/properties/us/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}else {const err4 = {instancePath,schemaPath:"#/definitions/devicereadingmetadatav1JsonSchema/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}validate10.errors = vErrors;return errors === 0;}