GloballyValidatable extension
extension to make every object validatable
Just call: someObject.validate()
NOTE: this only work with an already initialized winter-server with a previously configured ValidationService instance
- on
Methods
-
validate(
{String? parentFieldName, String? fieldSeparator, bool? throwExceptionOnFail}) → List< ConstrainViolation> -
Available on Object, provided by the GloballyValidatable extension