Getting a list of schema fields with validation rules #391
Unanswered
yudinmaxim
asked this question in
Q&A
Replies: 2 comments 5 replies
-
|
What is your use case? Fields are required by default in Valibot, but you can make them optional with |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
I'm looking for that exact thing but, I'm using unions and variants, ho can I do it? Any idea? Thanks. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I couldn't find a way to programmatically determine which fields are required and which can be ignored based on the schema. For example, if using yup, it is done in the following way:
How can the same be achieved using valibot?
Beta Was this translation helpful? Give feedback.
All reactions