zod .refine() equivalent? min/max validation
Hello!
I'm currently exploring arktype to replace zod and was wondering if it was possible to replicate the functionality that zod provides via
eg, performing a validation using multiple fields that relate to one another in an object. in this case, letting a user set a custom min/max range in two different inputs:
Thanks for the cool library!
I'm currently exploring arktype to replace zod and was wondering if it was possible to replicate the functionality that zod provides via
.refine() in arktype.eg, performing a validation using multiple fields that relate to one another in an object. in this case, letting a user set a custom min/max range in two different inputs:
Thanks for the cool library!