input_validate library

A Dart package for validating nested map data structures.

Provides a comprehensive validation system inspired by Laravel's request validation, supporting deeply nested maps with wildcard path notation.

Classes

EmailRule
A validation rule that checks if a string value matches email format.
FieldPath
Represents a field path segment in dot notation validation.
InputValidate
Main class for validating input data against a set of validation rules.
InRule
A validation rule that checks if a value is in a set of allowed values.
IsBooleanRule
A validation rule that checks if a value is a boolean.
IsListRule
A validation rule that checks if a value is a list.
IsMapRule
A validation rule that checks if a value is a map.
IsNumberRule
A validation rule that checks if a value is a number (int or double).
IsStringRule
A validation rule that checks if a value is a string.
MaxRule
A validation rule that checks if a value meets a maximum constraint.
MinRule
A validation rule that checks if a value meets a minimum constraint.
NullableRule
A special validation rule that allows null values to pass validation.
RequiredRule
A validation rule that checks if a value is present (not null or empty).
ValidationRule
Abstract base class for all validation rules.

Exceptions / Errors

FieldValidationException
Exception thrown when a single field fails validation.
MultipleValidationException
Exception thrown when multiple fields fail validation.
ValidationException
Abstract base class for all validation exceptions.