skema

Long

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

64-bit integer value, optionally bounded. Maps to {"type":"integer"} plus minimum/maximum.

Constructors

Link copied to clipboard
constructor(min: Long? = null, max: Long? = null, exclusiveMin: Long? = null, exclusiveMax: Long? = null, multipleOf: Long? = null)

Properties

Link copied to clipboard

Exclusive upper bound, or null for unbounded.

Link copied to clipboard

Exclusive lower bound, or null for unbounded.

Link copied to clipboard
val max: Long?

Inclusive upper bound, or null for unbounded.

Link copied to clipboard
val min: Long?

Inclusive lower bound, or null for unbounded.

Link copied to clipboard

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

Functions

Link copied to clipboard
fun JsonSpec.toJsonSchema(): JsonObject

JSON Schema fragment describing the value this primitive validates.

Long

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

exclusiveMax

Exclusive upper bound, or null for unbounded.

exclusiveMin

Exclusive lower bound, or null for unbounded.

max

val max: Long?(source)

Inclusive upper bound, or null for unbounded.

min

val min: Long?(source)

Inclusive lower bound, or null for unbounded.

multipleOf

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