getName

open fun getName(type: KType): String?(source)

Provides a name for the given type to be used as a title in the JSON schema. By default, returns the qualified name for non-generic classes.

Report a problem


open fun getName(property: KProperty1<*, *>): String(source)

Returns the schema property name for the given property. By default, returns the Kotlin property name.

Report a problem