Adding more zod validators #1630
james-tindal
started this conversation in
General
Replies: 1 comment
-
you can call import { UserCreateSchema } from '@zenstackhq/runtime/zod';
// refine the generated zod schema and use it to validate in your code before the data reaches the enhanced client
UserCreateSchema.refine(...).parse(...) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to extend the available zod validation attributes and have them affect the output of the built-in zod plugin?
Or, alternatively, to disable @core/zod and replace it with a fork?
Beta Was this translation helpful? Give feedback.
All reactions