Repository navigation
1.5.0
Full Changelog: 1.1.0...1.5.0
Features:
ValidationExceptionExtension:ValidationException?.onInvalid: Executes given lambda if the receiver is not null, returns receiver unchangedValidationException?.onValid: Executes given lambda if the receiver is null, returns receiver unchangedValidationException?.fold: Takes two lambdasonValid,onInvalid. Has same logic as two functions above. Returns the result from those lambdasValidationException?.throwIfPresent: Throws the receiver exception if it is not null
Breaking changes:
ThrowingValidator: object -> classvalidateFirstnow returnsValidationException?