@orpc/zod 0.33.0 → 0.34.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +1 -0
- 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.
|
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.
|
32
|
+
"@orpc/openapi": "0.34.0"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
35
|
"json-schema-typed": "^8.0.1",
|