skema

Int

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

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

Constructors

Link copied to clipboard
constructor(min: Int? = null, max: Int? = null, exclusiveMin: Int? = null, exclusiveMax: Int? = null, multipleOf: Int? = 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: Int?

Inclusive upper bound, or null for unbounded.

Link copied to clipboard
val min: Int?

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.

Int

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

exclusiveMax

Exclusive upper bound, or null for unbounded.

exclusiveMin

Exclusive lower bound, or null for unbounded.

max

val max: Int?(source)

Inclusive upper bound, or null for unbounded.

min

val min: Int?(source)

Inclusive lower bound, or null for unbounded.

multipleOf

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