ofString

fun ofString(block: StringPropertyBuilder.() -> Unit = {})(source)

Specifies that array items are strings.

Example

array {
ofString {
minLength = 1
}
}