A schema, in whatever shape the application already writes them.
Anything @stone-js/validation accepts is accepted here: a Standard Schema (Zod, Valibot, ArkType
and others), a Zod-like safeParse, or a native Stone.js schema. Resources do not define a schema
language; they use the one the application already validates its input with, so a contract is
written once in one dialect on both sides of the boundary.
A schema, in whatever shape the application already writes them.
Anything
@stone-js/validationaccepts is accepted here: a Standard Schema (Zod, Valibot, ArkType and others), a Zod-likesafeParse, or a native Stone.js schema. Resources do not define a schema language; they use the one the application already validates its input with, so a contract is written once in one dialect on both sides of the boundary.