luthor 0.13.1 copy "luthor: ^0.13.1" to clipboard
luthor: ^0.13.1 copied to clipboard

A Dart validation library inspired by https://zod.dev with support for code generation.

Luthor #

Luthor is a validation library, heavily inspired by zod

Installation #

Dart:

dart pub add luthor

Flutter:

flutter pub add luthor

Code Generation (Optional) #

Luthor supports code generation for enhanced type safety and developer experience:

dart pub add dev:build_runner dev:luthor_generator

Features include:

  • Type-safe ErrorKeys - Generated constants for accessing validation errors
  • Type-safe SchemaKeys - Generated constants for defining schemas
  • Cross-field validation - Validate fields against other fields in the same schema

See the documentation for usage.

21
likes
150
points
1.02k
downloads

Publisher

verified publisherex3.dev

Weekly Downloads

A Dart validation library inspired by https://zod.dev with support for code generation.

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on luthor