- 
                Notifications
    
You must be signed in to change notification settings  - Fork 13
 
Closed
Labels
DSLAPI design and its DSLAPI design and its DSLcoreThe core of the library is involvedThe core of the library is involvedenhancementNew feature or requestNew feature or request
Description
It could be useful to transform a value before validating it, for example:
Validator<String> {
    this.map { it.trim('.') }.isNotBlank()
}By "transforming" the value, the path remains the same, until overridden by withPath.
Essentially, it would work like Optional.map() in Java, or Either.map() with Arrow, but instead of returning an Optional or an Either, it returns a Validatable.
Metadata
Metadata
Assignees
Labels
DSLAPI design and its DSLAPI design and its DSLcoreThe core of the library is involvedThe core of the library is involvedenhancementNew feature or requestNew feature or request
Projects
Status
✅ Done