r

    rodolpho.couto

    2 years ago
    Valiktor 0.11.0 is out! Now it supports coroutines and custom exception handlershttps://github.com/valiktor/valiktor/releases/tag/0.11.0
    t

    thana

    2 years ago
    This library targets jvm only, doesn't it? Are there plans to support multiplatform usage?
    i

    Ihar S

    2 years ago
    And also just a question, any library with uniqueness in the DB table check?
    r

    rodolpho.couto

    2 years ago
    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.
    t

    thana

    2 years ago
    thank you!
    r

    rodolpho.couto

    2 years ago
    @Ihar S you can do it easily by implementing a custom validation or just using
    isValid
    with anonymous function, something like this:
    validate(Class::property).isValid {
        !repository.exists(obj)
    }
    if your repository function is
    suspend
    , you can use isCoValid:
    validate(Class::property).isCoValid {
        !repository.exists(obj)
    }
    i

    Ihar S

    2 years ago
    @rodolpho.couto thank you 🙂