range

fun range(min: Long = Long.MIN_VALUE, max: Long = Long.MAX_VALUE)

Sets a range validator for the configuration field.

The range validator ensures that the field value is within the specified minimum and maximum bounds. If the field value is out of the defined range, a validation error is triggered. This validation applies to numeric types (e.g., Int, Long, Float, Double).

Parameters

min

the minimum permissible value for the field (default is Long.MIN_VALUE)

max

the maximum permissible value for the field (default is Long.MAX_VALUE)