TypeInfo

data class TypeInfo(val name: String, val nullable: Boolean = false, val arguments: List<TypeInfo> = emptyList(), val restrictions: Map<String, Any?> = emptyMap())(source)

Type of value represented by a schema.

Constructors

Link copied to clipboard
constructor(name: String, nullable: Boolean = false, arguments: List<TypeInfo> = emptyList(), restrictions: Map<String, Any?> = emptyMap())
constructor(kClass: KClass<*>?, nullable: Boolean = false, arguments: List<TypeInfo> = emptyList(), restrictions: Map<String, Any?> = emptyMap())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Type arguments.

Link copied to clipboard

Name of the type.

Link copied to clipboard

Whether the type is nullable.

Link copied to clipboard

Type and validation related "simple" restrictions, e.g. ("required", "min", "max", etc.).

Functions

Link copied to clipboard
open override fun toString(): String