requireString

fun requireString(name: String, description: String? = null): String

Requires a string argument. Returns the value if present, or an empty string if missing (error is collected).