ofObject

fun ofObject(block: ObjectPropertyBuilder.() -> Unit = {})(source)

Specifies that array items are objects.

Example

array {
ofObject {
property("name") {
required = true
string()
}
}
}