A Standard Schema instance (e.g. a Zod schema), or undefined to skip
The value to validate (args tuple for input, return value for output)
{ success: true, value } if valid (value may be transformed/coerced by the schema),
or { success: false, issues } with structured validation issues
Execute a Standard Schema validator against a value.
Calls
schema["~standard"].validate(value)per the Standard Schema spec. The spec requiresvalidate()to return aResultobject (never throw), but we wrap in try-catch defensively in case a non-conforming validator throws unexpectedly.