ZodArt introduction
ZodArt is a type-safe, parse-first schema validation package with static type inference for Dart and Flutter.
Parse unstructured data from APIs, Flutter forms, config files, and more โ with type safety and static type inference. ZodArt provides a powerful and expressive API to define validation schemas and parse unknown data into strongly typed Dart values.
Featuresโ
- ๐ก๏ธ Rock-solid type safety with optional code generation (no more magic strings!)
- ๐ง Static type inference
- ๐งฑ Define schemas for both primitive and complex types
- ๐ฆ Parse unknown or unstructured data into strongly typed Dart values
- ๐ค Seamless integration with
freezedmodels - โป๏ธ Composable and reusable schemas for easy code sharing and modularity
- ๐งฉ Supports nested objects, arrays, optional and nullable fields
- ๐ Built-in various validation rules (e.g.
.min(),.max(), etc.) - ๐งช Support for user-defined custom rules via
.refine() - ๐ฌ Rich, localizable, developer-friendly error messages
- ๐ Designed for use with REST APIs, GraphQL, JSON files, and form input
Comparisonโ
| โ Without ZodArt | โ With Zodart |
|---|---|
![]() | ![]() |
You can check the planned features and report bugs or request features by opening an issue on the GitHub page.

