skema

OneOf

@Serializable
@SerialName(value = "OneOf")
data class OneOf(val branches: List<JsonSpec>) : JsonSpec(source)

Value must match exactly one of the listed specs.

Constructors

Link copied to clipboard
constructor(branches: List<JsonSpec>)

Properties

Link copied to clipboard

Branches; exactly one must match.

Functions

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

JSON Schema fragment describing the value this primitive validates.

OneOf

constructor(branches: List<JsonSpec>)(source)

branches

Branches; exactly one must match.