Adapts a Zod-style schema (anything exposing a synchronous safeParse) to the Stone.js NativeSchema contract. Structural — never imports Zod, so it works with any compatible engine and keeps the module dependency-free.
safeParse
The Zod-like schema.
A Stone.js validation schema.
Adapts a Zod-style schema (anything exposing a synchronous
safeParse) to the Stone.js NativeSchema contract. Structural — never imports Zod, so it works with any compatible engine and keeps the module dependency-free.