Multiple error messages
I'm trying to migrate a zod schema to arktype. This is the zod schema I have:
If any of these checks fail, Superforms will provide me with a
I'm trying to achieve the same behaviour with Arktype, but I can't have a different error being reported, or even trim the error message down to a word, for my i18n layer.
This is what I have so far, which I know it does not work:
any thoughts on how I can achieve this?
If any of these checks fail, Superforms will provide me with a
$allErrors for the password field that will be an array like ['lenght', 'uppercase'], which in turn I can use in my i18n layer.I'm trying to achieve the same behaviour with Arktype, but I can't have a different error being reported, or even trim the error message down to a word, for my i18n layer.
This is what I have so far, which I know it does not work:
any thoughts on how I can achieve this?
