context/validation/validation_service library
Classes
- ConstrainViolation
- Class that represent a fail validation (Details and examples in docs)
- ValidationService
- Default class to define the validation
Mixins
- Validatable
- mixin to implement in every class where the validation want to be done it by hand
Extensions
- GloballyValidatable on Object
-
extension to make every object validatable
Just call:
someObject.validate()