How to extend the schema for custom validation? #215
-
There is a basic schema: const schema = object({id:number()}) How can I extend the schema with some custom validation? I don't get it how to do it. :( |
Beta Was this translation helpful? Give feedback.
Answered by
fabian-hiller
Oct 17, 2023
Replies: 1 comment 5 replies
-
Have a look at this guide: https://valibot.dev/guides/pipelines/ |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We work on this feature in PR #211. At the moment it is not possible to access the pipeline of a schema afterwards. As a workaround, you can store the pipeline in a separate variable to reuse it in other places.