@orpc/zod 0.33.0 → 0.34.0

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/dist/index.js +1 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -724,6 +724,7 @@ function zodToJsonSchema(schema, options) {
724
724
  const schema_ = schema__;
725
725
  const def = schema_._def;
726
726
  const json = { type: "array" };
727
+ json.items = zodToJsonSchema(def.type, childOptions);
727
728
  if (def.exactLength) {
728
729
  json.maxItems = def.exactLength.value;
729
730
  json.minItems = def.exactLength.value;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/zod",
3
3
  "type": "module",
4
- "version": "0.33.0",
4
+ "version": "0.34.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.unnoq.com",
7
7
  "repository": {
@@ -29,7 +29,7 @@
29
29
  "dist"
30
30
  ],
31
31
  "peerDependencies": {
32
- "@orpc/openapi": "0.33.0"
32
+ "@orpc/openapi": "0.34.0"
33
33
  },
34
34
  "dependencies": {
35
35
  "json-schema-typed": "^8.0.1",