API reference > @kontsedal/olas-zod
olas-zod package
Functions
Function | Description |
|---|---|
Walk a Zod schema and emit the equivalent Olas Form / FieldArray / Field tree, with validators auto-attached.
Each leaf's initial value is the Zod default if present, otherwise an empty value for that type ( A rule on an object or an array is enforced too. A root The return type is structurally precise — | |
Run the schema and report only its first **root-level** issue, one with an empty For a hand-built | |
Wrap a Zod schema as an Olas validator. Zod 4 implements Standard Schema v1, so this is now a thin alias over the cross-library | |
Async variant for schemas with Zod has no native cancellation surface, so we race |
Type Aliases
Type Alias | Description |
|---|---|
Per-leaf extra validators keyed by dotted path. Match the leaf field's position inside the schema:
A path names a position in the SCHEMA, not in the value, and an array contributes no segment to it. So a path at or under an array applies to every element:
There is no path that addresses the Validators run alongside | |
A Zod schema with its | |
Options for | |
Recursively map a Zod schema to its Olas form leaf: -
|