@bazo/openapi-client-generator 3.0.15 → 3.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/bin.js +4 -4
  2. package/package.json +1 -1
package/bin.js CHANGED
@@ -18899,10 +18899,10 @@ function schemaToZod(schema, ctx) {
18899
18899
  if (schema.refName && ctx.namedSchemas.has(schema.refName)) {
18900
18900
  return schema.refName;
18901
18901
  }
18902
- if (schema.allOf) return convertAllOf(schema, ctx);
18903
- if (schema.oneOf) return convertOneOf(schema, ctx);
18904
- if (schema.anyOf) return convertAnyOf(schema, ctx);
18905
- if (schema.enum) return convertEnum(schema);
18902
+ if (schema.allOf) return maybeNullable(convertAllOf(schema, ctx), schema);
18903
+ if (schema.oneOf) return maybeNullable(convertOneOf(schema, ctx), schema);
18904
+ if (schema.anyOf) return maybeNullable(convertAnyOf(schema, ctx), schema);
18905
+ if (schema.enum) return maybeNullable(convertEnum(schema), schema);
18906
18906
  switch (normalizeType(schema)) {
18907
18907
  case "string":
18908
18908
  return convertString(schema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bazo/openapi-client-generator",
3
- "version": "3.0.15",
3
+ "version": "3.0.18",
4
4
  "bin": {
5
5
  "openapi-client-generator": "bin.js"
6
6
  },