enum

var enum: Any?(source)

List of allowed boolean values (enumeration).

Accepts List or null. Throws IllegalArgumentException for non-boolean types to prevent semantically invalid schemas.

Example

boolean {
enum = listOf(true, false)
}