@xuda.io/xuda-studio-checker 1.0.15 → 1.0.17
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 +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3953,7 +3953,7 @@ export const get_fields_z_schema = function (fields = {}, exclude_props = []) {
|
|
|
3953
3953
|
for (const [item_key, item_val] of Object.entries(val.items.properties)) {
|
|
3954
3954
|
prop[item_key] = get_z_item(item_key, item_val);
|
|
3955
3955
|
if (!val?.items?.required?.includes(item_key)) {
|
|
3956
|
-
prop[item_key] = prop[item_key].optional();
|
|
3956
|
+
prop[item_key] = prop[item_key].nullable(); //.optional();
|
|
3957
3957
|
}
|
|
3958
3958
|
}
|
|
3959
3959
|
}
|
|
@@ -3989,6 +3989,7 @@ export const get_fields_z_schema = function (fields = {}, exclude_props = []) {
|
|
|
3989
3989
|
if (exclude_props.includes(key)) continue;
|
|
3990
3990
|
inputSchema[key] = get_z_item(key, val);
|
|
3991
3991
|
}
|
|
3992
|
+
return inputSchema;
|
|
3992
3993
|
} catch (error) {
|
|
3993
3994
|
debugger;
|
|
3994
3995
|
}
|