validate

fun validate(key: String, value: Any, validator: Any)