Skip to content

Multiplatform Ktor schema declarationopensavvy.spine.apiFailureSpecOr

Or

class Or<out A : FailureSpec, out B : FailureSpec>(val a: A, val b: B) : FailureSpec

Combines multiple failure specifications into a single one.

This type is used to type-safely represent an endpoint that can failure in multiple different ways. It is not expected that end-users need to use this type, though you may see it appear in inlay hints.

Constructors

Or

constructor(a: A, b: B)

Properties

a

val a: A

b

val b: B