Learn how to use schemas for type-safety and payload validation
v.optional()
, it is required and cannot be null
or undefined
. Generally, all top-level fields are required, nested fields may be optional, and you may provide additional data in the extra
field.
valibot
because it is a required peer dependency: