Skip to content

meragix/zema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zema

pub package Build Status Coverage License: MIT

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.int().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

🔗 Links

About

The Zod-like schema validation for Dart.

Resources

License

Stars

Watchers

Forks

Packages

No packages published