Zod-like schema validation for Dart. Type-safe runtime validation with a fluent, declarative API.
This monorepo contains:
zema- Core validation library
dependencies:
zema: ^0.1.0import 'package:zema/zema.dart';
final userSchema = z.object({
'name': z.string().min(2),
'email': z.string().email(),
'age': z.int().positive().optional(),
});
final user = userSchema.parse({
'name': 'John',
'email': 'john@example.com',
'age': 30,
});This project uses Melos to manage the monorepo.
# Install Melos
dart pub global activate melos
# Bootstrap the workspace
melos bootstrap# Run tests
melos test
# Run analysis
melos analyze
# Format code
melos format
# Check publish readiness
melos publish:check
# Version packages
melos versionSee CONTRIBUTING.md
MIT License - see LICENSE