Valibot
Schemas in the sidebar, and a jump from parse or safeParse to the schema they check.
What you can do
- See every
v.object, v.strictObject, v.looseObject, and v.objectWithRest assigned to a const. A v.pipe whose first step is an object is included.
- Click a schema to open it. The CodeLens on
v.parse and v.safeParse jumps to that schema.
- A warning appears when the same file declares two schemas with the same name.
- A schema in another file is followed when it is
export const and the name is unique.
- Snippet:
vobject.
It stays quiet until a package.json in the workspace depends on valibot. Nothing is sent out of the editor.
Settings
| Setting |
Default |
|
valibot.codeLens |
on |
Links a parse call to its schema. |
valibot.diagnostics |
on |
Warns when two schemas in one file share a name. |
Commands
Open the Command Palette and type Valibot.
- Valibot: Refresh — rescan after adding the dependency.
- Valibot: Focus Schemas
| |