<https://ktor.io/docs/swagger-ui.html> Is there a ...
# ktor
b
https://ktor.io/docs/swagger-ui.html Is there a way to do add headers to openapi automatically?
a
Could you please explain to what request/response you want to add headers?
b
Copy code
get("/report/{reportType}") {
    val reportType = call.parameters["reportType"]
    val accountId = call.request.headers["accountId"]
    call.respond(service.getHistory(accountId, reportType))
}
openapi generator dedects report type but not header
a
Unfortunately, this isn’t supported yet. Please follow this issue.