skema

Num

@Serializable
@SerialName(value = "Number")
data class Num(val min: Double? = null, val max: Double? = null, val exclusiveMin: Double? = null, val exclusiveMax: Double? = null, val multipleOf: Double? = null) : JsonSpec(source)

Floating-point value, optionally bounded. Maps to {"type":"number"} plus minimum/maximum.

Constructors

Num

constructor(min: Double? = null, max: Double? = null, exclusiveMin: Double? = null, exclusiveMax: Double? = null, multipleOf: Double? = null)(source)

Properties

exclusiveMax

Exclusive upper bound, or null for unbounded.

exclusiveMin

Exclusive lower bound, or null for unbounded.

max

Inclusive upper bound, or null for unbounded.

min

Inclusive lower bound, or null for unbounded.

multipleOf

Value must be a multiple of this, or null for no constraint.