alepha@docs:~/docs/reference/providers$
cat SchemaValidator.md | pretty
1 min read
Last commit:

#SchemaValidator

#Import

typescript
1import { SchemaValidator } from "alepha";

#Overview

Validates + coerces a value against a zod schema.

Trimming / lowercasing / defaults / unknown-key stripping all live in the schema itself now (zod), so this is a thin wrapper over schema.parse. No typebox Compile, no eval — safe inside Cloudflare Workers.