Multiplatform Ktor schema declaration • opensavvy.spine.api • FailureSpec • Or
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.