Package-level declarations

Types

Link copied to clipboard
@MetaSerializable
annotation class JsonSchema
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class KojaEntry
Link copied to clipboard
data class KojaMeta(val description: String?, val parameterDescriptions: Map<String, String>)
Link copied to clipboard
Link copied to clipboard
@Serializable
sealed class Schema

Represents a JSON Schema definition.

Properties

Link copied to clipboard
val kojaJson: Json

Functions

Link copied to clipboard
inline fun <T : Any> jsonSchema(): Schema

Returns a JSON Schema representation of the specified type T.

Link copied to clipboard
fun Schema.toJsonElement(): JsonElement

Converts this Schema instance into a JsonElement.

Link copied to clipboard
fun SerialDescriptor.toSchema(): Schema