Repository navigation
Added:
- Validation — core interface that defines how to validate values of type T, returning validation results.
- ValidationRule — A functional interface representing a single validation check that returns either Valid or Invalid reason(s).
- ValidationRulesComposition — An interface allowing dynamic generation of validation rule sets depending on the current value, enabling flexible and context-aware validation.
- InvalidValueReason — A marker interface for reasons why a value does not pass validation, supporting multiple error reporting.
- Validated — The core class that wraps a value and validates it automatically upon creation or update, providing up-to-date validity status and error details.
- Extension functions for easy rule combination and creation, making the validation DSL clear and concise.
- Support for querying validation state through isValid and isInvalid flags.
- Comprehensive error accumulation to provide detailed feedback on multiple validation failures.