v4.1.3
Breaking Changes📦 zodView on GitHub →
⚠ 1 breaking🐛 5 fixes🔧 3 symbols
Summary
Version 4.1.3 focuses on fixing JSON Schema generation bugs for OpenAPI 3.0 and Draft-7, while also removing the stringToBoolean utility.
⚠️ Breaking Changes
- The utility function 'stringToBoolean' has been removed from the codebase. Replace any direct imports or calls to this function with native boolean parsing or custom logic.
Migration Steps
- Remove all references to 'stringToBoolean' as it has been dropped.
- Update any JSON Schema generation logic targeting openapi-3.0 to benefit from corrected record and numeric range outputs.
🐛 Bug Fixes
- Fixed toJSONSchema tuple conversion to include missing 'oneOf' inside items.
- Fixed toJSONSchema tuple path handling for draft-7 when using metadata IDs.
- Fixed incorrect record output in toJSONSchema when targeting openapi-3.0.
- Fixed toJSONSchema to correctly output numbers with exclusive ranges when targeting openapi-3.0.
- Fixed a typo in the codebase.
🔧 Affected Symbols
stringToBooleantoJSONSchemapayloadSchema