Skip to content
Valibot logo

Valibot

OfficialBetav0.4.3

@kubb/plugin-valibot

kubb add plugin-valibot

How-to guides

4 guides
Coerce input with Valibot
Set coercion to convert form data and query strings before Valibot validates them, and see which checks each key changes.
Customize generated schemas
Prefix inferred types, change Valibot calls, and encode custom request types.
Valibot schemas for OpenAPI formats
Look up the Valibot call Kubb writes for each OpenAPI type and format, such as v.uuid() for format: uuid, and the keywords that add a v.check.
Infer TypeScript types from Valibot schemas
Set inferred to export a type next to each Valibot schema, so you can skip @kubb/plugin-ts.