fix: Allow for injectable ObjectMapper to resolve serialization issues for Java 8 date type

This commit is contained in:
Adrián Garcia
2021-10-24 18:25:55 +02:00
committed by GitHub
parent c8d56e62a2
commit d9d0f129b5
5 changed files with 42 additions and 5 deletions

View File

@ -4,6 +4,7 @@ import io.bkbn.kompendium.annotations.KompendiumField
import io.bkbn.kompendium.annotations.KompendiumParam
import io.bkbn.kompendium.annotations.ParamType
import io.bkbn.kompendium.annotations.UndeclaredField
import kotlinx.serialization.Serializable
import org.joda.time.DateTime
data class ExampleParams(
@ -27,6 +28,7 @@ data class ExampleRequest(
val aaa: List<Long>
)
@Serializable
data class ExampleResponse(val c: String)
data class ExceptionResponse(val message: String)