Releases: DZakh/sury
Releases · DZakh/sury
v10.0.4
v10.0.3
Fix S.void
for CommonJS
Full Changelog: v10.0.2...v10.0.3
v10.0.2
v10.0.1
v10.0.0
v10.0.0-rc.7
- Improve JSON Schema of
S.port
to includeminimum
andmaximum
- Expose
port
asformat
field onnumber
schemas - (rescript) Deprecate
Port
refinement metadata in favor offormat
field onnumber
schemas - Fix port refinement not to allow decimal numbers
- Improved the default error message for
S.port
- (typescript) Add
S.void
- Fix
S.union
case with a catch all item without transformations and refinements - Fix
S.union
case when there are multiple objects with the identical discriminant literals - (rescript) Add OpenAPI module from rescript-openapi
Full Changelog: v10.0.0-rc.6...v10.0.0-rc.7
v10.0.0-rc.6
What's Changed
- Add
title
field to schema and allow to set it viaS.meta
- Fix union bug with
S.unknown
(#121) - (rescript) Renamed
S.nullish
back toS.nullable
- (rescript) Added
S.nullableAsOption
to replaceS.nullable
from V9 - (ppx) Returned back
@s.nullable
attribute - (ppx) Added support for
Js.nullable
type
New Contributors
Full Changelog: v10.0.0-rc.5...v10.0.0-rc.6
v10.0.0-rc.5
- Fix
S.union
for multipleS.instance
schemas - Add
S.fromJSONSchema
- Rename
S.Json
type toS.JSON
for consistency - Include
/docs
in the JSR release
Full Changelog: v10.0.0-rc.4...v10.0.0-rc.5
v10.0.0-rc.4
- Fixed edge-cases with
S.union
ofS.number
andNaN
schemas together. As well asS.array
orS.instance
schemas together with object schemas - Added
S.instance
- Fixed
S.schema
for literal instances - Added
S.symbol
- Fixed function literal type inference
S.custom
is removed in favor ofS.unknown
+S.transform
+S.meta
. The goal is to try to avoidS.unknown
as much as possible. Try to useS.instance
or any other built-in schemas as much as possible.
Full Changelog: v10.0.0-rc.3...v10.0.0-rc.4
v10.0.0-rc.3
S.to
support from literal to non-literal of the same type- Fix the
S.union
case with parsing schemas of the same type - Export
UnknownToOutput
andUnknownToInput
and add GenType support forS.schema
type - Fixed
S.toJSONSchema
to error with invalid optional object fields - Display expected and received values in the same format
- Update validation to start by deeply checking the object and literal fields. This might resolve in a less detailed error path, but allows nested literals to act as union discriminators.
- Stopped validating literals in conversion mode
- Support reverse parsing for
S.object
with nested discriminants
Full Changelog: v10.0.0-rc.2...v10.0.0-rc.3