Companion

object Companion

Properties

Link copied to clipboard
@get:JvmName(name = "getRegisteredSchemas")
val SCHEMA_REGISTRY: Map<KClass<*>, FateSchema<*>>

Returns a map of all registered schemas.

Functions

Link copied to clipboard
inline fun <T : Any> registerSchema(schema: FateSchema<T>)

Convenience method for registering a custom schema from a reified type parameter.

fun <T : Any> registerSchema(cls: Class<T>, schema: FateSchema<T>)
fun <T : Any> registerSchema(cls: KClass<T>, schema: FateSchema<T>)

Registers a custom schema for the given class type.

Link copied to clipboard

Convenience method for creating a schema from a reified type parameter.

Automatically creates an appropriate schema for the given class type.