generateKontent

inline fun <T> generateKontent(cache: SchemaMap = emptyMap()): SchemaMap

Analyzes a type T for its top-level and any nested schemas, and adds them to a SchemaMap, if provided

Return

an updated schema map containing all type information for T

Parameters

T

type to analyze

cache

Existing schema map to append to


fun generateKontent(type: KType, cache: SchemaMap = emptyMap()): SchemaMap

Analyzes a KType for its top-level and any nested schemas, and adds them to a SchemaMap, if provided

Return

an updated schema map containing all type information for KType type

Parameters

type

KType to analyze

cache

Existing schema map to append to