Output

sealed class Output<T>(source)

Since

0.3.0-beta01

Inheritors

Types

Link copied to clipboard
class Arr<T>(val elementSerializer: KSerializer<T>, val name: String = elementSerializer.descriptor.serialName.substringAfterLast('.') + "[]", val schemaDescription: String? = null) : Output<List<T>>
Link copied to clipboard
class Choice<T>(val options: List<T>, val encode: (T) -> String, val decodeChoice: (String) -> T, val name: String = "choice", val schemaDescription: String? = null) : Output<T>
Link copied to clipboard
object Companion
Link copied to clipboard
class JsonTree(val name: String = "json", val schemaDescription: String? = null) : Output<JsonElement>
Link copied to clipboard
class Obj<T>(val serializer: KSerializer<T>, val name: String = serializer.descriptor.serialName.substringAfterLast('.'), val schemaDescription: String? = null) : Output<T>

Output.object() in v6, renamed to obj because object is a Kotlin keyword.

Properties

Link copied to clipboard
Link copied to clipboard
open val schemaDescription: String? = null
Link copied to clipboard
abstract val schemaJson: String
Link copied to clipboard
abstract val schemaName: String

Functions

Link copied to clipboard
abstract fun decode(text: String): T
Link copied to clipboard