We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As a part of this issue, we need to propose a way to compatibility of zod API.
issue motivated from #32
here is a list of features that zod has:
superRefine
void
undefined
function
Set
Map
NaN
z.custom
literal
const
date
string().date()
z.string
nativeEnum
enum
schema
shape
s.deepPartial
z.strip
z.catchall
z.array.element
z.nullish
z.lazy
transform
z.ZodType<T>
z.promise
$async
z.instanceOf
z.preprocess
s.preprocess
z.parseAsync
refine
z.catch
z.brand
z.pipe
Add comments if I missed something
The text was updated successfully, but these errors were encountered:
As an additional note, I see 2 alternative ways of doing this:
Both approaches would work, just thought it might be good on deciding on one before pursuing this refactor 👍🏼
Sorry, something went wrong.
zod
I like aliasing since current implementations are pretty close to JSON-schema naming.
vitalics
No branches or pull requests
As a part of this issue, we need to propose a way to compatibility of zod API.
issue motivated from #32
here is a list of features that zod has:
superRefine
void
,undefined
,function
,Set
,Map
,NaN
- possibly it's never be released, since it is not a part of JSON-schema standard - expose empty functions?z.custom
)literal
asconst
since it's the same #41date
asstring().date()
z.string
- datetime, it's parametersnativeEnum
as a part of theenum
(we already handle it, just expose) #38schema
with nameshape
(zod exposesshape
instead ofschema
) #43s.deepPartial
need to researchz.strip
z.catchall
z.array.element
#46z.nullish
- researchz.lazy
- need to researchtransform
functionz.ZodType<T>
typez.promise
- uses$async
schema?z.instanceOf
- researchz.preprocess
port tos.preprocess
z.parseAsync
refine
compatibilityz.catch
z.brand
z.pipe
Add comments if I missed something
The text was updated successfully, but these errors were encountered: