zema 0.0.1-dev.1
zema: ^0.0.1-dev.1 copied to clipboard
A high-performance, type-safe schema validation library for Dart & Flutter.
Zema #
Zod-like schema validation for Dart. Type-safe runtime validation with a fluent, declarative API.
📦 Packages #
This monorepo contains:
zema- Core validation library
🚀 Quick Start #
dependencies:
zema: ^0.1.0
import 'package:zema/zema.dart';
final userSchema = z.object({
'name': z.string().min(2),
'email': z.string().email(),
'age': z.number().positive().optional(),
});
final user = userSchema.parse({
'name': 'John',
'email': 'john@example.com',
'age': 30,
});
🛠️ Development #
This project uses Melos to manage the monorepo.
Setup #
# Install Melos
dart pub global activate melos
# Bootstrap the workspace
melos bootstrap
Common Commands #
# Run tests
melos test
# Run analysis
melos analyze
# Format code
melos format
# Check publish readiness
melos publish:check
# Version packages
melos version
📚 Documentation #
🤝 Contributing #
See CONTRIBUTING.md
📄 License #
MIT License - see LICENSE