Cies Breijs
04/03/2026, 12:59 AMCies Breijs
04/03/2026, 1:04 AMCies Breijs
04/03/2026, 1:05 AMAndrew O'Hara
04/04/2026, 2:09 AMOpenApi3ApiRenderer. Just plug in a Json backend; KotlinxSerialization should work.
contract {
// ....
renderer = OpenApi3(
apiInfo = ApiInfo("My App", "1"),
apiRenderer = OpenApi3ApiRenderer(KotlinxSerialization),
json = KotlinxSerialization
)
}Andrew O'Hara
04/04/2026, 2:12 AMCies Breijs
04/04/2026, 2:23 PMany in the ReDoc for request and response bodies. The openapi.json contains:
"requestBody": {
"content": {
"application/json": {
"schema": {}
}
},
"required": true
},
"responses": {},
no errors or otherwise hints on what adapters i'm missing... I'm not sure how to fix it.Andrew O'Hara
04/04/2026, 4:18 PMkotlinx-serialization has the worst compatibility with http4k. iirc, even it's Json adapter is flawed. Moshi is what I use.
You can even manually exclude the kotlin-reflect dependency from the http4k-format-moshi module. It shouldn't be needed, since the renderer just uses Moshi as a Json.Cies Breijs
04/13/2026, 2:19 PM