zod-to-json-schema
Advanced tools
Comparing version 3.22.3 to 3.22.4
@@ -5,2 +5,4 @@ # Changelog | ||
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| 3.22.4 | Adds fix for nullable references in OpenAPI mode | | ||
| 3.22.3 | Adjust root path from "#/" to "#" according to RFC 6901 | | ||
| 3.22.2 | Adds "output" pipe strategy | | ||
@@ -7,0 +9,0 @@ | 3.22.1 | Fixes broken imports when using some bundlers | |
@@ -27,2 +27,4 @@ "use strict"; | ||
}); | ||
if (base && '$ref' in base) | ||
return { allOf: [base], nullable: true }; | ||
return base && { ...base, nullable: true }; | ||
@@ -29,0 +31,0 @@ } |
@@ -24,2 +24,4 @@ import { parseDef } from "../parseDef.js"; | ||
}); | ||
if (base && '$ref' in base) | ||
return { allOf: [base], nullable: true }; | ||
return base && { ...base, nullable: true }; | ||
@@ -26,0 +28,0 @@ } |
{ | ||
"name": "zod-to-json-schema", | ||
"version": "3.22.3", | ||
"version": "3.22.4", | ||
"description": "Converts Zod schemas to Json Schemas", | ||
@@ -49,3 +49,4 @@ "types": "./dist/types/index.d.ts", | ||
"Santiago Cammi (https://github.com/scammi)", | ||
"Philipp Burckhardt (https://github.com/Planeshifter)" | ||
"Philipp Burckhardt (https://github.com/Planeshifter)", | ||
"Bram del Canho (https://github.com/Bram-dc)" | ||
], | ||
@@ -52,0 +53,0 @@ "repository": { |
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
160705
2979