Dawson - Can someone sanity check this for me? ...
Torbjørn - Hi!We use zod to validate data com...
@vercel/stega
a package that encodes invisible strings into its output....Haddok - hi , i have defined a schema where i a...
unnreaal - tsconst schema = z.coerce.string()....
Steve - Is there any data on performance compar...
@effect/schema
preferably specifically to recursive types? ^[1] ^[2] Steve - Would this be valid, or would it possib...
Bence (Arzen) - Hi guys 🙂 Is there a way to cr...
recursive
record
schema? I know how to make recursive schema using an object
, but I am curious if it is currently possible to do with records
. The keys can be anything in my data, that's why I'm trying to use a record.Steve - We have some performance issues with bi...
transform()
and lazy()
. Any general tips and tricks to make it more performant?Z4RM - Hello! I'm going to write a fullstack ap...
error
object returned from the parse
method, but I don't find how I can "include" it in a z.object
.
I'm not sure if what I say is very clear, so here is an explanation in code:
```ts...Whimsy - is there any function or way to make s...
Steve - How much overhead does Zod have? How pe...
Steve - I was wondering if there is a certain w...
.refine
. And if possible, also improve the typing of it.
Basically also wondering I would be able to type TipTapTextDto['marks']
In a way that I define it to be an array of TipTapMarkDto
but also it to have at least one IdentifierMarkDto
, no matter the order in which the TipTapMarkDto
present themselves.
```ts...Steve - I have this unique case where I want to...
z.union([ ... ]).strip()
...Discriminated union default value on the discriminator
Stephan Meijer - What was the deal with union a...
Whimsy - .optional() makes the type optional? l...
z.boolean().default(false)
makes it boolean | undefined
Stephan Meijer - How does Zod's transform funct...
transform
on them?CommandMC - z.function().args() seems to forget...
z.function().args()
seems to forget brand
s?
Hello. Using a brand
ed schema as an argument to a Zod function (z.function()
) & then inferring the type of that function doesn't seem to be working correctly, the argument type just reverts to its non-branded type
TS Playground example of my issue...Stephan Meijer - When exporting myschema's and ...
ESLint: Unsafe member access .parseAsync on an `error` typed value.(@typescript-eslint/no-unsafe-member-access)
ESLint: Unsafe member access .parseAsync on an `error` typed value.(@typescript-eslint/no-unsafe-member-access)
Whimsy - hey is there a way to tell zod what ki...