enum

var enum: Any?(source)

List of allowed string values (enumeration).

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

Example

string {
enum = listOf("active", "inactive", "pending")
}