@xuda.io/xuda-studio-checker 1.0.16 → 1.0.18

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.
Files changed (2) hide show
  1. package/index.mjs +2 -2
  2. 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
  }
@@ -3965,7 +3965,7 @@ export const get_fields_z_schema = function (fields = {}, exclude_props = []) {
3965
3965
  let _z = z[val.type](prop);
3966
3966
 
3967
3967
  if (!val.mandatory) {
3968
- _z = _z.optional();
3968
+ _z = _z.nullable(); //.optional();
3969
3969
  }
3970
3970
 
3971
3971
  if (val.enum) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-studio-checker",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "main": "index.mjs",
5
5
  "type": "module",
6
6
  "description": "Auto-generated build for xuda-studio-checker.mjs",