This commit is contained in:
Ryan Brink
2021-04-14 19:50:46 -04:00
committed by GitHub
parent 6eebaf15ea
commit 98a7a0a369
5 changed files with 18 additions and 2 deletions

View File

@ -1,5 +1,11 @@
# Changelog
## [0.0.7] - April 16th, 2021
### Added
- Include sources in publish 📚
## [0.0.6] - April 15th, 2021
### Added

View File

@ -1,5 +1,5 @@
# Kompendium
project.version=0.0.6
project.version=0.0.7
# Kotlin
kotlin.code.style=official
# Gradle

View File

@ -13,6 +13,10 @@ dependencies {
testImplementation("io.ktor:ktor-server-test-host:1.5.3")
}
java {
withSourcesJar()
}
publishing {
repositories {
maven {
@ -27,6 +31,7 @@ publishing {
publications {
create<MavenPublication>("kompendium") {
from(components["kotlin"])
artifact(tasks.sourcesJar)
}
}
}

View File

@ -85,7 +85,6 @@ object Kompendium {
): Route {
if (TResp::class != Unit::class) openApiSpec.components.schemas.putPairIfAbsent(objectSchemaPair(TResp::class))
if (TReq::class != Unit::class) openApiSpec.components.schemas.putPairIfAbsent(objectSchemaPair(TReq::class))
// openApiSpec.components.schemas.putPairIfAbsent(objectSchemaPair(TParam::class))
return block.invoke()
}

View File

@ -50,3 +50,9 @@ enum class SimpleEnum {
ONE,
TWO
}
sealed class TestSealedClass(open val a: String)
data class SimpleTSC(val b: Int) : TestSealedClass("hey")
open class MediumTSC(override val a: String, val b: Int) : TestSealedClass(a)
data class WildTSC(val c: Boolean, val d: String, val e: Int) : MediumTSC(d, e)