ktor-swagger
ktor-swagger copied to clipboard
0.6.0 doesn't work with Ktor 1.3
The signature of the io.ktor.client.call.TypeInfo class was changed in KTor 1.3, from
data class TypeInfo(val type: KClass<*>, val reifiedType: Type)
to
data class TypeInfo(
val type: KClass<*>,
val reifiedType: Type,
val kotlinType: KType? = null
)
As a result, when running 0.6.0 on Ktor 1.3+ you will get this runtime error when calling anything which reads class metadata for Json:
java.lang.NoSuchMethodError: io.ktor.client.call.TypeInfo.<init>(Lkotlin/reflect/KClass;Ljava/lang/reflect/Type;)V
The solution would probably be to do a new release compiled against Ktor 1.3.
Version : 0.6.0 is not in maven repo. I tired with version: 0.5.0 , ktor:1.3.x and kotlin: 1.3.x. I get same error:
java.lang.NoSuchMethodError: io.ktor.client.call.TypeInfo.<init>(Lkotlin/reflect/KClass;Ljava/lang/reflect/Type;)V
Any plans on adressing the issue anytime soon? Thanks in advance..
I reported the similar issue before: https://github.com/nielsfalk/ktor-swagger/issues/49. The master branch has now updated the ktor and kotlin versions, but the author hasn't launched a new release yet. You could use the version master-SNAPSHOT to get the library working. Hopefully we could get a new release soon
Please open a pull request to resolve this issue if it's impacting you. I'm no longer actively maintaining this project, I'm limited to merging PRs and performing version bumps.
I'm also seeking a user to take over maintenance of this project.