skema

AnyOf

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

Value must match at least one of the listed specs.

Constructors

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

Properties

Link copied to clipboard

Branches; at least one must match.

Functions

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

JSON Schema fragment describing the value this primitive validates.

AnyOf

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

branches

Branches; at least one must match.