https://kotlinlang.org logo
#feed
Title
r

rodolpho.couto

04/07/2020, 6:55 PM
Valiktor 0.11.0 is out! Now it supports coroutines and custom exception handlers https://github.com/valiktor/valiktor/releases/tag/0.11.0
👏 1
👍 2
t

thana

04/08/2020, 7:55 AM
This library targets jvm only, doesn't it? Are there plans to support multiplatform usage?
i

Ihar S

04/08/2020, 9:27 AM
And also just a question, any library with uniqueness in the DB table check?
r

rodolpho.couto

04/08/2020, 1:23 PM
Yes, Valiktor currently targets JVM only. I have plans to support multiplatform, but that is not so easy because the Java standard library is very powerful, especially with locales and formatters. Anyway, I'll put some effort on that soon.
❤️ 1
t

thana

04/08/2020, 1:26 PM
thank you!
r

rodolpho.couto

04/08/2020, 1:30 PM
@Ihar S you can do it easily by implementing a custom validation or just using
isValid
with anonymous function, something like this:
Copy code
validate(Class::property).isValid {
    !repository.exists(obj)
}
if your repository function is
suspend
, you can use `isCoValid`:
Copy code
validate(Class::property).isCoValid {
    !repository.exists(obj)
}
i

Ihar S

04/08/2020, 1:47 PM
@rodolpho.couto thank you 🙂
8 Views