zod-to-json-schema
Advanced tools
Comparing version 3.20.4 to 3.20.5
{ | ||
"name": "zod-to-json-schema", | ||
"version": "3.20.4", | ||
"version": "3.20.5", | ||
"description": "Converts Zod schemas to Json Schemas", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,2 +7,3 @@ import { ZodSchema } from "zod"; | ||
effectStrategy: "input" | "any"; | ||
pipeStrategy: "input" | "all"; | ||
target: Target; | ||
@@ -9,0 +10,0 @@ strictUnions: boolean; |
@@ -9,2 +9,3 @@ "use strict"; | ||
effectStrategy: "input", | ||
pipeStrategy: "all", | ||
definitionPath: "definitions", | ||
@@ -11,0 +12,0 @@ target: "jsonSchema7", |
@@ -6,2 +6,5 @@ "use strict"; | ||
const parsePipelineDef = (def, refs) => { | ||
if (refs.pipeStrategy === "input") { | ||
return (0, parseDef_1.parseDef)(def.in._def, refs); | ||
} | ||
const a = (0, parseDef_1.parseDef)(def.in._def, Object.assign(Object.assign({}, refs), { currentPath: [...refs.currentPath, "allOf", "0"] })); | ||
@@ -8,0 +11,0 @@ const b = (0, parseDef_1.parseDef)(def.out._def, Object.assign(Object.assign({}, refs), { currentPath: [...refs.currentPath, "allOf", a ? "1" : "0"] })); |
@@ -7,2 +7,3 @@ import { ZodSetDef } from "zod"; | ||
type: "array"; | ||
uniqueItems: true; | ||
items?: JsonSchema7Type; | ||
@@ -9,0 +10,0 @@ minItems?: number; |
@@ -10,2 +10,3 @@ "use strict"; | ||
type: "array", | ||
uniqueItems: true, | ||
items, | ||
@@ -12,0 +13,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
86299
1207