konform-kt / konform

Portable validations for Kotlin
https://www.konform.io
MIT License
652 stars 39 forks source link

Check a custom condition command #126

Closed mahramane closed 1 month ago

mahramane commented 1 month ago

Hi Please add the possibility to validate a custom conditional command like following code:

EditModel::id required {
    minimum(1)
    valid { it % 2 == 0 }
}
mahramane commented 1 month ago

addConstraint