@xuda.io/xuda-studio-checker 1.0.41 → 1.0.43
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/index.mjs +3 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -528,7 +528,7 @@ export const check_structure = function (doc, critical_error) {
|
|
|
528
528
|
continue;
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
-
if (!item.id && item?.type !== 'comment') {
|
|
531
|
+
if (!item.id && item?.type !== 'comment' && item?.type !== 'text') {
|
|
532
532
|
addValidationError('CHK_MSG_OBJ_GEN_712', 'missing progUi id item property');
|
|
533
533
|
}
|
|
534
534
|
|
|
@@ -4190,8 +4190,8 @@ export const get_fields_z_schema = function (fields = {}, exclude_props = [], da
|
|
|
4190
4190
|
_z = z.enum(val.enum);
|
|
4191
4191
|
}
|
|
4192
4192
|
|
|
4193
|
-
if (data
|
|
4194
|
-
_z =
|
|
4193
|
+
if (Object.prototype.hasOwnProperty.call(data, key)) {
|
|
4194
|
+
_z = _z.default(data[key]);
|
|
4195
4195
|
}
|
|
4196
4196
|
|
|
4197
4197
|
let valid_values = '';
|