1.0.0-beta.0 (2021-12-29)
- feat!: add json() method and remove default object/array coercion (94b73c4)
Features
- Make Array generic consistent with others (a82353f)
BREAKING CHANGES
- types only,
ArraySchema
initial generic is the array type not the type of the array element.array<T>()
is still the inner type. - object and array schema no longer parse JSON strings by default, nor do they return
null
for invalid casts.
object().json().cast('{}')
array().json().cast('[]')
to mimic the previous behavior