isTrue

fun BooleanRuleBuilder.isTrue(message: () -> String)

Validates that the boolean value is true.

Usage:

rules<Boolean> {
isTrue { "must be true" }
}

Parameters

message

The message to return when the test fails.