Việt An
Việt An
ZZod
Created by Việt An on 3/13/2024 in #questions
Việt An - How to get better error messages?I h...
Thanks a lot
10 replies
ZZod
Created by Việt An on 3/13/2024 in #questions
Việt An - How to get better error messages?I h...
Invalid enum value. Expected 'Conan' | 'Jordan' | 'Sona', received 'Sonax'
10 replies
ZZod
Created by Việt An on 3/13/2024 in #questions
Việt An - How to get better error messages?I h...
Anyway you're right, I'm using z.enum and the message gets clearer
10 replies
ZZod
Created by Việt An on 3/13/2024 in #questions
Việt An - How to get better error messages?I h...
I'm using react-hook-form, and the errors are extracted from that, so maybe it sees one error and forget the other two?
10 replies