How to use safeParse to produce a message #413
Unanswered
jdgamble555
asked this question in
Q&A
Replies: 1 comment 7 replies
-
Have you read this guide? https://valibot.dev/guides/issues/ |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to see how to produce a message:
flatten
does not seem to take anyresult.error
(I'm aware its depreciated) orresult.issues
etc.Obviously
result.issues[0].message
will produce a simple message, but I need to know where it is coming from etc.Also, there doesn't even seem to be a way with
issues
to get the name of the form value the error is thrown on?J
Beta Was this translation helpful? Give feedback.
All reactions