BooleanPropertyBuilder

Builder for BooleanPropertyDefinition.

Configures boolean-type properties with default and constant values. Supports automatic type conversion for boolean values.

This class is part of the JSON Schema DSL and cannot be instantiated directly. Use PropertyBuilder.boolean instead within the DSL context.

Boolean Property with Default

property("enabled") {
boolean {
description = "Feature enabled"
default = true
}
}

See also

Properties

Link copied to clipboard

Constant value for this property.

Link copied to clipboard
var default: Any?

Default value for this property.

Link copied to clipboard

Human-readable description of this property.

Link copied to clipboard

Whether null values are allowed.

Link copied to clipboard

The JSON Schema type. Always "boolean" for this builder.

Functions

Link copied to clipboard