zod-to-json-schema
Advanced tools
Comparing version 3.6.0 to 3.6.1
@@ -5,2 +5,3 @@ # Changelog | ||
| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| 3.6.1 | Realised intersection had another potential ref pathing bug. Fixed. | ||
| 3.6.0 | Added support for default & effects (refine). Broke out changelog.md | ||
@@ -7,0 +8,0 @@ | 3.5.0 | Added support for CUID string validation |
{ | ||
"name": "zod-to-json-schema", | ||
"version": "3.6.0", | ||
"version": "3.6.1", | ||
"description": "Converts Zod schemas to Json Schemas", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,12 +10,5 @@ "use strict"; | ||
].filter((x) => !!x); | ||
switch (allOf.length) { | ||
case 2: | ||
// @ts-expect-error | ||
return { allOf }; | ||
case 1: | ||
return allOf[0]; | ||
default: | ||
return {}; | ||
} | ||
// @ts-expect-error | ||
return allOf.length ? { allOf } : undefined; | ||
} | ||
exports.parseIntersectionDef = parseIntersectionDef; |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
39730
771