Valiktor 0.11.0 is out! Now it supports coroutines...
# feed
r
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
This library targets jvm only, doesn't it? Are there plans to support multiplatform usage?
i
And also just a question, any library with uniqueness in the DB table check?
r
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
thank you!
r
@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
@rodolpho.couto thank you 🙂