enum

var enum: Any?(source)

List of allowed numeric values (enumeration).

Accepts List or null. Values are converted to Double. Throws IllegalArgumentException for non-numeric types to prevent semantically invalid schemas.

Example

number {
enum = listOf(1, 2, 3, 5, 8, 13)
}
integer {
enum = listOf(0, 1)
}