Not Blank
Validates that a String value is not blank when present.
Missing nullable values remain null. Use a non-nullable parameter without a default value when the field must be present.
Example:
data class MyConfig(
@NotBlank val apiKey: String? = null
)Content copied to clipboard