Skip to content

how to to validate based on a second object #12

@dnltsk

Description

@dnltsk

Is it possible to validate the following rule?

a string value needs to be in a given list of strings

val validNames = listOf("a", "b", "c")
val validUser = User(name = "a")
val invalidUser = User(name = "x")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions