Schema with refinements
Add `Schema.pipe(Schema.minLength(n))`, `Schema.email()`, etc. to refine schemas. Compose validation rules.
Each pipe adds a constraint. Validation is declarative.
- Use `Schema.pipe(Schema.minLength(n))` for strings
- Use `Schema.pattern(regex)` for format validation
- Compose schemas for complex types
Loading code editor...