Z
Zod5mo ago
Aidan647

Aidan647 - how can I do validation of zod in zo...

how can I do validation of zod in zod
z.object({
description: z.string(),
example: z.string(),
validate: z.any(),
})
// validate is any zod type

// i.e.
x = {
description: "any",
example: "any",
validate: z.string().nullable(),
}
z.object({
description: z.string(),
example: z.string(),
validate: z.any(),
})
// validate is any zod type

// i.e.
x = {
description: "any",
example: "any",
validate: z.string().nullable(),
}
Solution:
Message Not Public
Sign In & Join Server To View
Jump to solution
1 Reply
Solution
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View