notBlank

@JvmName(name = "notBlank")
fun notBlank(): FieldConfigScope<V>

Validates that a String field is not blank (not empty and not just whitespace).

This validator only applies to String fields. For other types, it is silently ignored.

Example:

field(AppConfig::apiKey).notBlank()

Return

this FieldConfigScope for method chaining

Throws

if the field value is blank