@halsystems/red-bacnet 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/common/job/read_point.js +9 -2
- package/common/job/write_point.js +8 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/common/job/read_point.js
CHANGED
|
@@ -96,7 +96,11 @@ module.exports = {
|
|
|
96
96
|
|
|
97
97
|
this.devices.forEach(d => {
|
|
98
98
|
// validate device schema
|
|
99
|
-
const { error } = bacnetDeviceSchema.validate(
|
|
99
|
+
const { error } = bacnetDeviceSchema.validate(
|
|
100
|
+
d,
|
|
101
|
+
{ stripUnknown: true }
|
|
102
|
+
);
|
|
103
|
+
|
|
100
104
|
if (error) {
|
|
101
105
|
deviceSchemaErrList.push(error);
|
|
102
106
|
return
|
|
@@ -132,7 +136,10 @@ module.exports = {
|
|
|
132
136
|
const dupPointNames = [];
|
|
133
137
|
this.points.forEach(p => {
|
|
134
138
|
// validate point schema
|
|
135
|
-
const { error } = bacnetPointSchema.validate(
|
|
139
|
+
const { error } = bacnetPointSchema.validate(
|
|
140
|
+
p,
|
|
141
|
+
{ stripUnknown: true }
|
|
142
|
+
);
|
|
136
143
|
if (error) {
|
|
137
144
|
pointSchemaErrList.push(error);
|
|
138
145
|
return
|
|
@@ -116,7 +116,10 @@ module.exports = {
|
|
|
116
116
|
const dupDeviceNames = [];
|
|
117
117
|
this.devices.forEach(d => {
|
|
118
118
|
// validate device schema
|
|
119
|
-
const { error } = bacnetDeviceSchema.validate(
|
|
119
|
+
const { error } = bacnetDeviceSchema.validate(
|
|
120
|
+
d,
|
|
121
|
+
{ stripUnknown: true }
|
|
122
|
+
);
|
|
120
123
|
if (error) {
|
|
121
124
|
deviceSchemaErrList.push(error);
|
|
122
125
|
return
|
|
@@ -152,7 +155,10 @@ module.exports = {
|
|
|
152
155
|
const dupPointNames = [];
|
|
153
156
|
this.points.forEach(p => {
|
|
154
157
|
// validate point schema
|
|
155
|
-
const { error } = bacnetPointSchema.validate(
|
|
158
|
+
const { error } = bacnetPointSchema.validate(
|
|
159
|
+
p,
|
|
160
|
+
{ stripUnknown: true }
|
|
161
|
+
);
|
|
156
162
|
if (error) {
|
|
157
163
|
pointSchemaErrList.push(error);
|
|
158
164
|
return
|