notBlank

fun StringRuleBuilder.notBlank(message: () -> String)

Validates that the string value is not blank.

Usage:

rules<String> {
notBlank { "must be not blank" }
}

Parameters

message

The message to return when the test fails.