We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 853634d + 8942ae0 commit 7e84774Copy full SHA for 7e84774
src/main/kotlin/com/papsign/ktor/openapigen/schema/builder/provider/NothingSchemaProvider.kt
@@ -14,8 +14,14 @@ import kotlin.reflect.jvm.jvmErasure
14
15
object NothingSchemaProvider: SchemaBuilderProviderModule, OpenAPIGenModuleExtension {
16
17
+ private object NothingNullableProvider {
18
+ private val value: Nothing? = null
19
+ val type: KType = this::value.returnType
20
+ }
21
+
22
private object Builder: SchemaBuilder {
- override val superType: KType = Nothing::class.createType()
23
+ // Currently we can't do it in a more concise way because of https://youtrack.jetbrains.com/issue/KT-37848
24
+ override val superType: KType = NothingNullableProvider.type
25
26
override fun build(
27
type: KType,
0 commit comments